]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/evtloop.h
Forgot to commit the header change too.
[wxWidgets.git] / include / wx / gtk / evtloop.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/evtloop.h
3 // Purpose: wxGTK event loop implementation
4 // Author: Vadim Zeitlin
5 // Created: 2008-12-27
6 // RCS-ID: $Id$
7 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_GTK_EVTLOOP_H_
12 #define _WX_GTK_EVTLOOP_H_
13
14 // ----------------------------------------------------------------------------
15 // wxGUIEventLoop for wxGTK
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase
19 {
20 public:
21 wxGUIEventLoop();
22
23 virtual int Run();
24 virtual void Exit(int rc = 0);
25 virtual bool Pending() const;
26 virtual bool Dispatch();
27 virtual int DispatchTimeout(unsigned long timeout);
28 virtual void WakeUp();
29 virtual bool YieldFor(long eventsToProcess);
30
31 protected:
32
33 // the exit code of this event loop
34 int m_exitcode;
35
36 // used to temporarily store events in DoYield()
37 wxArrayPtrVoid m_arrGdkEvents;
38
39 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
40 };
41
42 #endif // _WX_GTK_EVTLOOP_H_