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