X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9ce8d6a2b0fec3ce3f6e838445fdea3445d2ce8d..1981118d4bcd47bdbe4de66aba3e5db6368c7517:/include/wx/x11/app.h?ds=sidebyside diff --git a/include/wx/x11/app.h b/include/wx/x11/app.h index f61e293a66..fb7e97cffc 100644 --- a/include/wx/x11/app.h +++ b/include/wx/x11/app.h @@ -12,7 +12,7 @@ #ifndef _WX_APP_H_ #define _WX_APP_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "app.h" #endif @@ -55,24 +55,17 @@ public: virtual bool Initialized(); virtual bool Pending(); virtual void Dispatch(); + + virtual void Exit(); + virtual bool Yield(bool onlyIfNeeded = FALSE); - virtual bool ProcessIdle(); + virtual void WakeUpIdle(); virtual bool OnInitGui(); // implementation from now on // -------------------------- - void OnIdle(wxIdleEvent& event); - - // Send idle event to all top-level windows. - // Returns TRUE if more idle time is requested. - bool SendIdleEvents(); - - // Send idle event to window and all subwindows - // Returns TRUE if more idle time is requested. - bool SendIdleEvents(wxWindow* win); - // Processes an X event. virtual bool ProcessXEvent(WXEvent* event); @@ -85,10 +78,8 @@ protected: public: // Implementation - static bool Initialize(); - static void CleanUp(); - - void DeletePendingObjects(); + virtual bool Initialize(int& argc, wxChar **argv); + virtual void CleanUp(); WXWindow GetTopLevelWidget() const { return m_topLevelWidget; } WXColormap GetMainColormap(WXDisplay* display); @@ -140,8 +131,5 @@ protected: DECLARE_EVENT_TABLE() }; -int WXDLLEXPORT wxEntry( int argc, char *argv[] ); - -#endif -// _WX_APP_H_ +#endif // _WX_APP_H_