]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/evtloop.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / gtk / evtloop.h
CommitLineData
564c7fc4
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/evtloop.h
3// Purpose: wxGTK event loop implementation
4// Author: Vadim Zeitlin
5// Created: 2008-12-27
564c7fc4
VZ
6// Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
7// Licence: wxWindows licence
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_GTK_EVTLOOP_H_
11#define _WX_GTK_EVTLOOP_H_
12
13// ----------------------------------------------------------------------------
14// wxGUIEventLoop for wxGTK
15// ----------------------------------------------------------------------------
16
387e72ba
FM
17typedef union _GdkEvent GdkEvent;
18
5cd99866 19class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase
564c7fc4
VZ
20{
21public:
22 wxGUIEventLoop();
23
d3ad22bd 24 virtual void ScheduleExit(int rc = 0);
564c7fc4
VZ
25 virtual bool Pending() const;
26 virtual bool Dispatch();
27 virtual int DispatchTimeout(unsigned long timeout);
28 virtual void WakeUp();
dde19c21 29 virtual bool YieldFor(long eventsToProcess);
564c7fc4 30
5cd99866
VZ
31 void StoreGdkEventForLaterProcessing(GdkEvent* ev)
32 { m_arrGdkEvents.Add(ev); }
dde19c21 33
c738d187
VZ
34protected:
35 virtual int DoRun();
36
5cd99866 37private:
564c7fc4
VZ
38 // the exit code of this event loop
39 int m_exitcode;
40
dde19c21
FM
41 // used to temporarily store events in DoYield()
42 wxArrayPtrVoid m_arrGdkEvents;
43
c0c133e1 44 wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
564c7fc4
VZ
45};
46
47#endif // _WX_GTK_EVTLOOP_H_