X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee31c392ac73dcd67fb25ac368e2ffb7d4c9c0e7..af01f1ba0d697c07173f436ab661b4c833258a91:/include/wx/motif/app.h diff --git a/include/wx/motif/app.h b/include/wx/motif/app.h index 7787929380..092e6515a7 100644 --- a/include/wx/motif/app.h +++ b/include/wx/motif/app.h @@ -29,7 +29,7 @@ class WXDLLEXPORT wxFrame; class WXDLLEXPORT wxWindow; -class WXDLLEXPORT wxApp ; +class WXDLLEXPORT wxApp; class WXDLLEXPORT wxKeyEvent; class WXDLLEXPORT wxLog; @@ -51,8 +51,9 @@ public: virtual int MainLoop(); virtual void ExitMainLoop(); virtual bool Initialized(); - virtual bool Pending() ; - virtual void Dispatch() ; + virtual bool Pending(); + virtual void Dispatch(); + virtual bool Yield(bool onlyIfNeeded = FALSE); virtual bool OnInitGui(); @@ -82,6 +83,9 @@ public: // Returns TRUE if a key down event has been processed virtual bool CheckForKeyDown(WXEvent* event); + // Returns TRUE if a key up event has been processed + virtual bool CheckForKeyUp(WXEvent* event); + protected: bool m_showOnInit; @@ -92,14 +96,11 @@ public: void DeletePendingObjects(); bool ProcessIdle(); -#if wxUSE_THREADS - void ProcessPendingEvents(); -#endif // Motif-specific WXAppContext GetAppContext() const { return m_appContext; } WXWidget GetTopLevelWidget() const { return m_topLevelWidget; } - WXColormap GetMainColormap(WXDisplay* display) ; + WXColormap GetMainColormap(WXDisplay* display); WXDisplay* GetInitialDisplay() const { return m_initialDisplay; } long GetMaxRequestSize() const { return m_maxRequestSize; } @@ -111,7 +112,7 @@ public: int m_nCmdShow; protected: - bool m_keepGoing ; + bool m_keepGoing; // Motif-specific WXAppContext m_appContext;