wxWidgets: wxInitializer Class Reference

| Version: 3.1.5

Loading...
Searching...
No Matches
Public Member Functions | List of all members
wxInitializer Class Reference
Class List by Category » Application and Process Management

`#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.1/wxWidgets3.1-3.1.5-4.x86_64/src/wxWidgets-3.1.5/interface/wx/init.h>`

## Detailed Description

Create an object of this class on the stack to initialize/cleanup the library automatically.

##

Library: wxBase

<>< =''>:</>&;&;< =''>\ </></>

See also
  wxGLContext

## Public Member Functions
| wxInitializer (int argc=0, wxChar **argv=NULL)
| Initializes the library.
bool | IsOk () const
| Has the initialization been successful?
| ~wxInitializer ()
| This dtor only does clean up if we initialized the library properly.

## Constructor & Destructor Documentation

## ◆ wxInitializer()

wxInitializer::wxInitializer | ( | int | argc = 0,
|  | wxChar ** | argv = NULL )

Initializes the library.

Calls wxInitialize().

## ◆ ~wxInitializer()

wxInitializer::~wxInitializer | ( |  | ) |

This dtor only does clean up if we initialized the library properly.

Calls wxUninitialize().

## Member Function Documentation

## ◆ IsOk()

bool wxInitializer::IsOk | ( |  | ) | const

Has the initialization been successful?

(explicit test)