X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f045c7f52dfcfebcd0ea6a7b689ccb8a25021d1f..97929f6bd992c185834656b5e3fff5a50ba7360a:/interface/wx/app.h diff --git a/interface/wx/app.h b/interface/wx/app.h index ab2d90b964..307a697bc7 100644 --- a/interface/wx/app.h +++ b/interface/wx/app.h @@ -35,7 +35,7 @@ @library{wxbase} @category{appmanagement} - @see @ref overview_app, wxApp, wxAppTraits, wxEventLoop + @see @ref overview_app, wxApp, wxAppTraits, wxEventLoopBase */ class wxAppConsole : public wxEvtHandler { @@ -176,6 +176,11 @@ public: */ static bool IsMainLoopRunning(); + /** + Returns @true if called from inside Yield(). + */ + bool IsYielding() const; + /** Process all pending events; it is necessary to call this function to process posted events. @@ -466,6 +471,7 @@ public: user to perform actions which are not compatible with the current task. Disabling menu items or whole menus during processing can avoid unwanted reentrance of code: see ::wxSafeYield for a better function. + You can avoid unwanted reentrancies also using IsYielding(). Note that Yield() will not flush the message logs. This is intentional as calling Yield() is usually done to quickly update the screen and popping up @@ -511,12 +517,12 @@ public: video modes (see SetVideoMode()). In general, application-wide settings for GUI-only apps are accessible - from wxApp (or from wxSystemSettings). + from wxApp (or from wxSystemSettings or wxSystemOptions classes). @library{wxbase} @category{appmanagement} - @see @ref overview_app, wxAppTraits, wxEventLoop, wxSystemSettings + @see @ref overview_app, wxAppTraits, wxEventLoopBase, wxSystemSettings */ class wxApp : public wxAppConsole { @@ -704,7 +710,7 @@ public: // ============================================================================ -/** @ingroup group_funcmacro_rtti */ +/** @addtogroup group_funcmacro_rtti */ //@{ /** @@ -752,7 +758,7 @@ wxApp *wxTheApp; -/** @ingroup group_funcmacro_appinitterm */ +/** @addtogroup group_funcmacro_appinitterm */ //@{ /** @@ -894,7 +900,7 @@ int wxEntry(HINSTANCE hInstance, -/** @ingroup group_funcmacro_procctrl */ +/** @addtogroup group_funcmacro_procctrl */ //@{ /**