X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a131b460ac4a9a51fe3cdc6a5833a6d2ad9a7dc6..efdea9c39e905e3a449f0374daf03330ec3d2b7a:/include/wx/app.h diff --git a/include/wx/app.h b/include/wx/app.h index d01c877acf..ef542febc3 100644 --- a/include/wx/app.h +++ b/include/wx/app.h @@ -198,6 +198,13 @@ public: // allows us to abstract the differences behind the common facade wxAppTraits *GetTraits(); + // this function provides safer access to traits object than + // wxTheApp->GetTraits() during startup or termination when the global + // application object itself may be unavailable + // + // of course, it still returns NULL in this case and the caller must check + // for it + static wxAppTraits *GetTraitsIfExists(); // event processing functions // -------------------------- @@ -509,6 +516,9 @@ public: // if it's unknown virtual wxLayoutDirection GetLayoutDirection() const; + // Change the theme used by the application, return true on success. + virtual bool SetNativeTheme(const wxString& WXUNUSED(theme)) { return false; } + // command line parsing (GUI-specific) // ------------------------------------------------------------------------ @@ -593,7 +603,7 @@ protected: #elif defined(__WXX11__) #include "wx/x11/app.h" #elif defined(__WXMAC__) - #include "wx/mac/app.h" + #include "wx/osx/app.h" #elif defined(__WXCOCOA__) #include "wx/cocoa/app.h" #elif defined(__WXPM__)