X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7934e44732bddea8e4c5491e8db17cd0326d5957..8d40c05f411b794cce6bddb835be30d7ba4d643a:/include/wx/osx/cocoa/evtloop.h diff --git a/include/wx/osx/cocoa/evtloop.h b/include/wx/osx/cocoa/evtloop.h index ed64e651eb..c388d32ce6 100644 --- a/include/wx/osx/cocoa/evtloop.h +++ b/include/wx/osx/cocoa/evtloop.h @@ -15,15 +15,34 @@ class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop { public: wxGUIEventLoop(); + ~wxGUIEventLoop(); -protected: - virtual int DoDispatchTimeout(unsigned long timeout); + void BeginModalSession( wxWindow* modalWindow ); - virtual void DoRun(); + void EndModalSession(); + + virtual void WakeUp(); - virtual void DoStop(); + void OSXUseLowLevelWakeup(bool useIt) + { m_osxLowLevelWakeUp = useIt ; } +protected: + virtual int DoDispatchTimeout(unsigned long timeout); + + virtual void OSXDoRun(); + virtual void OSXDoStop(); + virtual CFRunLoopRef CFGetCurrentRunLoop() const; + + void* m_modalSession; + + wxWindow* m_modalWindow; + + WXWindow m_dummyWindow; + + int m_modalNestedLevel; + + bool m_osxLowLevelWakeUp; }; #endif // _WX_OSX_COCOA_EVTLOOP_H_