]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/cocoa/evtloop.h
Add "OSX" prefix to wxCFEventLoop::DoRun() and DoStop() methods.
[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
6// RCS-ID: $Id$
7// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_OSX_COCOA_EVTLOOP_H_
12#define _WX_OSX_COCOA_EVTLOOP_H_
13
5cd99866 14class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop
91407318
VZ
15{
16public:
17 wxGUIEventLoop();
902ddbfd
SC
18 ~wxGUIEventLoop();
19
20 void BeginModalSession( wxWindow* modalWindow );
21
22 void EndModalSession();
ce00f59b 23
85a74f93
SC
24 virtual void WakeUp();
25
4b0a48db
SC
26 void OSXUseLowLevelWakeup(bool useIt)
27 { m_osxLowLevelWakeUp = useIt ; }
28
6b8ef0b3 29protected:
0056673c 30 virtual int DoDispatchTimeout(unsigned long timeout);
ce00f59b 31
8d40c05f
VZ
32 virtual void OSXDoRun();
33 virtual void OSXDoStop();
ce00f59b 34
7934e447 35 virtual CFRunLoopRef CFGetCurrentRunLoop() const;
902ddbfd
SC
36
37 void* m_modalSession;
0aff141c
SC
38
39 wxWindow* m_modalWindow;
40
902ddbfd 41 WXWindow m_dummyWindow;
0aff141c
SC
42
43 int m_modalNestedLevel;
4b0a48db
SC
44
45 bool m_osxLowLevelWakeUp;
91407318
VZ
46};
47
48#endif // _WX_OSX_COCOA_EVTLOOP_H_
49