1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/evtloop.h
3 // Purpose: wxGTK event loop implementation
4 // Author: Vadim Zeitlin
6 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_EVTLOOP_H_
11 #define _WX_GTK_EVTLOOP_H_
13 // ----------------------------------------------------------------------------
14 // wxGUIEventLoop for wxGTK
15 // ----------------------------------------------------------------------------
17 typedef union _GdkEvent GdkEvent
;
19 class WXDLLIMPEXP_CORE wxGUIEventLoop
: public wxEventLoopBase
24 virtual void ScheduleExit(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
);
31 void StoreGdkEventForLaterProcessing(GdkEvent
* ev
)
32 { m_arrGdkEvents
.Add(ev
); }
38 // the exit code of this event loop
41 // used to temporarily store events in DoYield()
42 wxArrayPtrVoid m_arrGdkEvents
;
44 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop
);
47 #endif // _WX_GTK_EVTLOOP_H_