1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/mac/carbon/evtloop.h
3 // Purpose: declaration of wxEventLoop for wxMac
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_MAC_CARBON_EVTLOOP_H_
13 #define _WX_MAC_CARBON_EVTLOOP_H_
15 struct OpaqueEventRef
;
16 typedef OpaqueEventRef
*EventRef
;
18 class WXDLLIMPEXP_CORE wxGUIEventLoop
: public wxCFEventLoop
23 // implement/override base class pure virtual
24 virtual bool Pending() const;
25 virtual bool Dispatch();
26 virtual int DispatchTimeout(unsigned long timeout
);
28 virtual void WakeUp();
29 virtual bool YieldFor(long eventsToProcess
);
32 virtual CFRunLoopRef
CFGetCurrentRunLoop() const;
35 // dispatch an event and release it
36 void DispatchAndReleaseEvent(EventRef event
);
41 #endif // _WX_MAC_CARBON_EVTLOOP_H_