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
19 void BeginModalSession( wxWindow
* modalWindow
);
21 void EndModalSession();
23 virtual void WakeUp();
25 void OSXUseLowLevelWakeup(bool useIt
)
26 { m_osxLowLevelWakeUp
= useIt
; }
29 virtual int DoDispatchTimeout(unsigned long timeout
);
31 virtual void OSXDoRun();
32 virtual void OSXDoStop();
34 virtual CFRunLoopRef
CFGetCurrentRunLoop() const;
38 wxWindow
* m_modalWindow
;
40 WXWindow m_dummyWindow
;
42 int m_modalNestedLevel
;
44 bool m_osxLowLevelWakeUp
;
47 #endif // _WX_OSX_COCOA_EVTLOOP_H_