]>
Commit | Line | Data |
---|---|---|
5c6eb3a8 SC |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/mac/carbon/evtloop.h | |
3 | // Purpose: declaration of wxEventLoop for wxMac | |
4 | // Author: Vadim Zeitlin | |
5 | // Modified by: | |
6 | // Created: 2006-01-12 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org> | |
9 | // Licence: wxWindows licence | |
10 | /////////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_MAC_CARBON_EVTLOOP_H_ | |
13 | #define _WX_MAC_CARBON_EVTLOOP_H_ | |
14 | ||
65391c8f | 15 | struct OpaqueEventRef; |
9af42efd VZ |
16 | typedef OpaqueEventRef *EventRef; |
17 | ||
5cd99866 | 18 | class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxCFEventLoop |
5c6eb3a8 SC |
19 | { |
20 | public: | |
524c47aa | 21 | wxGUIEventLoop(); |
5c6eb3a8 | 22 | |
9af42efd | 23 | // implement/override base class pure virtual |
5c6eb3a8 SC |
24 | virtual bool Pending() const; |
25 | virtual bool Dispatch(); | |
9af42efd | 26 | virtual int DispatchTimeout(unsigned long timeout); |
5c6eb3a8 | 27 | |
5c6eb3a8 | 28 | virtual void WakeUp(); |
dde19c21 | 29 | virtual bool YieldFor(long eventsToProcess); |
9af42efd | 30 | |
5cd99866 VZ |
31 | protected: |
32 | virtual CFRunLoopRef CFGetCurrentRunLoop() const; | |
33 | ||
524c47aa | 34 | private: |
9af42efd VZ |
35 | // dispatch an event and release it |
36 | void DispatchAndReleaseEvent(EventRef event); | |
37 | ||
524c47aa | 38 | double m_sleepTime; |
5c6eb3a8 SC |
39 | }; |
40 | ||
5c6eb3a8 SC |
41 | #endif // _WX_MAC_CARBON_EVTLOOP_H_ |
42 |