]>
Commit | Line | Data |
---|---|---|
91407318 VZ |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/osx/cocoa/evtloop.h | |
3 | // Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 2008-12-28 | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org> | |
8 | // Licence: wxWindows licence | |
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_OSX_COCOA_EVTLOOP_H_ | |
12 | #define _WX_OSX_COCOA_EVTLOOP_H_ | |
13 | ||
5cd99866 | 14 | class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop |
91407318 VZ |
15 | { |
16 | public: | |
17 | wxGUIEventLoop(); | |
18 | ||
19 | // implement/override base class pure virtual | |
20 | virtual bool Pending() const; | |
21 | virtual bool Dispatch(); | |
22 | virtual int DispatchTimeout(unsigned long timeout); | |
23 | ||
24 | virtual void WakeUp(); | |
dde19c21 | 25 | virtual bool YieldFor(long eventsToProcess); |
91407318 | 26 | |
6b8ef0b3 | 27 | protected: |
5cd99866 | 28 | virtual CFRunLoopRef CFGetCurrentRunLoop() const; |
6b8ef0b3 | 29 | |
91407318 VZ |
30 | private: |
31 | double m_sleepTime; | |
32 | }; | |
33 | ||
34 | #endif // _WX_OSX_COCOA_EVTLOOP_H_ | |
35 |