X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/232806507ba60bd768605f0d7e8ae8e27dc17e8b..ab20a9a95a8bbed75bfc6ecba20f013eb9dcff46:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index 06ec920cc3..7deb0a45a7 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -209,8 +209,8 @@ public: { return m_appInitFn; } // access to the command line arguments - int argc; - char **argv; + int argc; + wxChar **argv; //private: protected: @@ -246,10 +246,32 @@ protected: #include "wx/gtk/app.h" #elif defined(__WXMAC__) #include "wx/mac/app.h" +#elif defined(__WXPM__) + #include "wx/os2/app.h" #elif defined(__WXSTUBS__) #include "wx/stubs/app.h" #endif +// ---------------------------------------------------------------------------- +// the global data +// ---------------------------------------------------------------------------- + +// the one and only application object - use of wxTheApp in application code +// is discouraged, consider using DECLARE_APP() after which you may call +// wxGetApp() which will return the object of the correct type (i.e. MyApp and +// not wxApp) +WXDLLEXPORT_DATA(extern wxApp*) wxTheApp; + +// ---------------------------------------------------------------------------- +// global functions +// ---------------------------------------------------------------------------- + +// Force an exit from main loop +void WXDLLEXPORT wxExit(); + +// Yield to other apps/messages +bool WXDLLEXPORT wxYield(); + // ---------------------------------------------------------------------------- // macros for dynamic creation of the application object // ----------------------------------------------------------------------------