| Version: 3.2.8

Classes | Macros | Functions | Variables
app.h File Reference

## Classes
class | wxAppConsole
| This class is essential for writing console-only or hybrid apps without having to define `wxUSE_GUI=0`. More...
class | wxApp
| The wxApp class represents the application itself when `wxUSE_GUI=1`. More...

## Macros
#define | wxDECLARE_APP(className)
| This is used in headers to create a forward declaration of the wxGetApp() function implemented by wxIMPLEMENT_APP(). More...
#define | wxIMPLEMENT_APP(className)
| This macro defines the application entry point and tells wxWidgets which application class should be used. More...
#define | wxIMPLEMENT_APP_CONSOLE(className)
| This macro defines the application entry point for non-GUI applications and tells wxWidgets which application class should be used. More...
#define | wxIMPLEMENT_WXWIN_MAIN
| This macro defines the application entry point appropriate for the current platform. More...
#define | wxIMPLEMENT_WXWIN_MAIN_CONSOLE
| This macro defines the application entry point for console applications. More...
#define | wxDISABLE_DEBUG_SUPPORT()
| Use this macro to disable all debugging code in release build when not using wxIMPLEMENT_APP(). More...

## Functions
wxAppDerivedClass & | wxGetApp ()
| This function doesn't exist in wxWidgets but it is created by using the wxIMPLEMENT_APP() macro. More...
bool | wxHandleFatalExceptions (bool doIt=true)
| If doIt is true, the fatal exceptions (also known as general protection faults under Windows or segmentation violations in the Unix world) will be caught and passed to wxApp::OnFatalException. More...
bool | wxInitialize ()
| This function is used in wxBase only and only if you don't create wxApp object at all. More...
void | wxUninitialize ()
| This function is for use in console (wxBase) programs only. More...
void | wxWakeUpIdle ()
| This function wakes up the (internal and platform dependent) idle system, i.e. More...
bool | wxYield ()
| Calls wxAppConsole::Yield if there is an existing application object. More...
bool | wxSafeYield (wxWindow *win=NULL, bool onlyIfNeeded=false)
| Calls wxApp::SafeYield. More...
int | wxEntry (int &argc, wxChar **argv)
| This function initializes wxWidgets in a platform-dependent way. More...
int | wxEntry (HINSTANCE hInstance, HINSTANCE hPrevInstance=NULL, char *pCmdLine=NULL, int nCmdShow=SW_SHOWNORMAL)
| See wxEntry(int&,wxChar**) for more info about this function. More...
void | wxExit ()
| Exits application after calling wxApp::OnExit. More...

## Variables
wxApp * | wxTheApp
| The global pointer to the singleton wxApp object. More...

## Variable Documentation

## ◆ wxTheApp

wxApp* wxTheApp

The global pointer to the singleton wxApp object.

This pointer can only be used in the GUI applications.

See also
  wxAppConsole::GetInstance(), wxApp::GetGUIInstance()