]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/evtloop.h
Add lambda-friendly wxDialog::ShowWindowModalThenDo().
[wxWidgets.git] / include / wx / cocoa / evtloop.h
CommitLineData
1df4b194
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/evtloop.h
3// Purpose: declaration of wxGUIEventLoop for wxCocoa
4// Author: Vadim Zeitlin
5// Created: 2008-12-28
1df4b194
VZ
6// Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_COCOA_EVTLOOP_H_
11#define _WX_COCOA_EVTLOOP_H_
12
13// ----------------------------------------------------------------------------
14// wxGUIEventLoop for wxCocoa
15// ----------------------------------------------------------------------------
16
17class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase
18{
19public:
20 wxGUIEventLoop() { m_exitcode = 0; }
21
d3ad22bd 22 virtual void ScheduleExit(int rc = 0);
1df4b194
VZ
23 virtual bool Pending() const;
24 virtual bool Dispatch();
25 virtual int DispatchTimeout(unsigned long timeout);
26 virtual void WakeUp() { }
dde19c21 27 virtual bool YieldFor(long eventsToProcess);
1df4b194
VZ
28
29protected:
c738d187
VZ
30 virtual int DoRun();
31
1df4b194
VZ
32 int m_exitcode;
33
c0c133e1 34 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
1df4b194
VZ
35};
36
37#endif // _WX_COCOA_EVTLOOP_H_
38