]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/cocoa/evtloop.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / osx / cocoa / evtloop.h
CommitLineData
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 13class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop
91407318
VZ
14{
15public:
16 wxGUIEventLoop();
902ddbfd
SC
17 ~wxGUIEventLoop();
18
19 void BeginModalSession( wxWindow* modalWindow );
20
21 void EndModalSession();
ce00f59b 22
85a74f93
SC
23 virtual void WakeUp();
24
4b0a48db
SC
25 void OSXUseLowLevelWakeup(bool useIt)
26 { m_osxLowLevelWakeUp = useIt ; }
27
6b8ef0b3 28protected:
0056673c 29 virtual int DoDispatchTimeout(unsigned long timeout);
ce00f59b 30
8d40c05f
VZ
31 virtual void OSXDoRun();
32 virtual void OSXDoStop();
ce00f59b 33
7934e447 34 virtual CFRunLoopRef CFGetCurrentRunLoop() const;
902ddbfd
SC
35
36 void* m_modalSession;
0aff141c
SC
37
38 wxWindow* m_modalWindow;
39
902ddbfd 40 WXWindow m_dummyWindow;
0aff141c
SC
41
42 int m_modalNestedLevel;
4b0a48db
SC
43
44 bool m_osxLowLevelWakeUp;
91407318
VZ
45};
46
47#endif // _WX_OSX_COCOA_EVTLOOP_H_
48