1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/cocoa/evtloop.h
3 // Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_OSX_COCOA_EVTLOOP_H_
12 #define _WX_OSX_COCOA_EVTLOOP_H_
14 class WXDLLIMPEXP_BASE wxGUIEventLoop
: public wxCFEventLoop
20 void BeginModalSession( wxWindow
* modalWindow
);
22 void EndModalSession();
24 virtual void WakeUp();
26 void OSXUseLowLevelWakeup(bool useIt
)
27 { m_osxLowLevelWakeUp
= useIt
; }
30 virtual int DoDispatchTimeout(unsigned long timeout
);
32 virtual void OSXDoRun();
33 virtual void OSXDoStop();
35 virtual CFRunLoopRef
CFGetCurrentRunLoop() const;
39 wxWindow
* m_modalWindow
;
41 WXWindow m_dummyWindow
;
43 int m_modalNestedLevel
;
45 bool m_osxLowLevelWakeUp
;
48 #endif // _WX_OSX_COCOA_EVTLOOP_H_