X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..5953e7c7d67c212f3513de0d660888c5668441ea:/interface/wx/apptrait.h?ds=sidebyside diff --git a/interface/wx/apptrait.h b/interface/wx/apptrait.h index 0df97f5c6e..5e8fd7ae66 100644 --- a/interface/wx/apptrait.h +++ b/interface/wx/apptrait.h @@ -40,6 +40,17 @@ public: */ virtual wxConfigBase* CreateConfig(); + /** + Used by wxWidgets to create the main event loop used by wxApp::OnRun(). + + The default implementation of this method in wxGUIAppTraits returns the + usual platform-specific GUI event loop. The version in wxConsoleAppTraits + returns a console-specific event loop which can be used to handle timer + and socket events in console programs under Unix and MSW or @NULL under + the other platforms where console event loops are not supported yet. + */ + virtual wxEventLoopBase *CreateEventLoop() = 0; + /** Creates the global font mapper object used for encodings/charset mapping. */