]>
Commit | Line | Data |
---|---|---|
91407318 VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/osx/cocoa/evtloop.h | |
3 | // Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 2008-12-28 | |
91407318 VZ |
6 | // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org> |
7 | // Licence: wxWindows licence | |
8 | /////////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | #ifndef _WX_OSX_COCOA_EVTLOOP_H_ | |
11 | #define _WX_OSX_COCOA_EVTLOOP_H_ | |
12 | ||
5cd99866 | 13 | class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop |
91407318 VZ |
14 | { |
15 | public: | |
16 | wxGUIEventLoop(); | |
902ddbfd SC |
17 | ~wxGUIEventLoop(); |
18 | ||
a8123c13 SC |
19 | int Run(); |
20 | ||
902ddbfd SC |
21 | void BeginModalSession( wxWindow* modalWindow ); |
22 | ||
23 | void EndModalSession(); | |
ce00f59b | 24 | |
85a74f93 SC |
25 | virtual void WakeUp(); |
26 | ||
4b0a48db SC |
27 | void OSXUseLowLevelWakeup(bool useIt) |
28 | { m_osxLowLevelWakeUp = useIt ; } | |
29 | ||
a8123c13 SC |
30 | void OSXOnWillTerminate(); |
31 | ||
6b8ef0b3 | 32 | protected: |
0056673c | 33 | virtual int DoDispatchTimeout(unsigned long timeout); |
ce00f59b | 34 | |
8d40c05f VZ |
35 | virtual void OSXDoRun(); |
36 | virtual void OSXDoStop(); | |
ce00f59b | 37 | |
7934e447 | 38 | virtual CFRunLoopRef CFGetCurrentRunLoop() const; |
902ddbfd SC |
39 | |
40 | void* m_modalSession; | |
0aff141c SC |
41 | |
42 | wxWindow* m_modalWindow; | |
43 | ||
902ddbfd | 44 | WXWindow m_dummyWindow; |
0aff141c SC |
45 | |
46 | int m_modalNestedLevel; | |
4b0a48db SC |
47 | |
48 | bool m_osxLowLevelWakeUp; | |
91407318 VZ |
49 | }; |
50 | ||
51 | #endif // _WX_OSX_COCOA_EVTLOOP_H_ | |
52 |