]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/osx/cocoa/evtloop.h
Don't create multiple parent-less top level frames in layout sample.
[wxWidgets.git] / include / wx / osx / cocoa / evtloop.h
... / ...
CommitLineData
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
14class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop
15{
16public:
17 wxGUIEventLoop();
18 ~wxGUIEventLoop();
19
20 void BeginModalSession( wxWindow* modalWindow );
21
22 void EndModalSession();
23
24 virtual void WakeUp();
25
26 void OSXUseLowLevelWakeup(bool useIt)
27 { m_osxLowLevelWakeUp = useIt ; }
28
29protected:
30 virtual int DoDispatchTimeout(unsigned long timeout);
31
32 virtual void DoRun();
33
34 virtual void DoStop();
35
36 virtual CFRunLoopRef CFGetCurrentRunLoop() const;
37
38 void* m_modalSession;
39
40 wxWindow* m_modalWindow;
41
42 WXWindow m_dummyWindow;
43
44 int m_modalNestedLevel;
45
46 bool m_osxLowLevelWakeUp;
47};
48
49#endif // _WX_OSX_COCOA_EVTLOOP_H_
50