1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/cocoa/evtloop.h
3 // Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_OSX_COCOA_EVTLOOP_H_
11 #define _WX_OSX_COCOA_EVTLOOP_H_
13 class WXDLLIMPEXP_BASE wxGUIEventLoop
: public wxCFEventLoop
21 void BeginModalSession( wxWindow
* modalWindow
);
23 void EndModalSession();
25 virtual void WakeUp();
27 void OSXUseLowLevelWakeup(bool useIt
)
28 { m_osxLowLevelWakeUp
= useIt
; }
30 void OSXOnWillTerminate();
33 virtual int DoDispatchTimeout(unsigned long timeout
);
35 virtual void OSXDoRun();
36 virtual void OSXDoStop();
38 virtual CFRunLoopRef
CFGetCurrentRunLoop() const;
42 wxWindow
* m_modalWindow
;
44 WXWindow m_dummyWindow
;
46 int m_modalNestedLevel
;
48 bool m_osxLowLevelWakeUp
;
51 #endif // _WX_OSX_COCOA_EVTLOOP_H_