X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..86ac84b8ce086e6bbda58f422d41f84268606e35:/include/wx/gtk/evtloop.h?ds=sidebyside diff --git a/include/wx/gtk/evtloop.h b/include/wx/gtk/evtloop.h index d19cd557c1..79cb753185 100644 --- a/include/wx/gtk/evtloop.h +++ b/include/wx/gtk/evtloop.h @@ -15,6 +15,8 @@ // wxGUIEventLoop for wxGTK // ---------------------------------------------------------------------------- +typedef union _GdkEvent GdkEvent; + class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopBase { public: @@ -26,11 +28,19 @@ public: virtual bool Dispatch(); virtual int DispatchTimeout(unsigned long timeout); virtual void WakeUp(); + virtual bool YieldFor(long eventsToProcess); + void StoreGdkEventForLaterProcessing(GdkEvent* ev) + { m_arrGdkEvents.Add(ev); } + protected: + // the exit code of this event loop int m_exitcode; + // used to temporarily store events in DoYield() + wxArrayPtrVoid m_arrGdkEvents; + wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop); };