]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/evtloop.h
simplifying code, removing outdated API
[wxWidgets.git] / include / wx / osx / evtloop.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: include/wx/osx/evtloop.h
3 // Purpose: simply forwards to wx/mac/carbon/evtloop.h for consistency with
4 // the other Mac headers
5 // Author: Vadim Zeitlin
6 // Modified by:
7 // Created: 2006-01-12
8 // RCS-ID: $Id$
9 // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_OSX_EVTLOOP_H_
14 #define _WX_OSX_EVTLOOP_H_
15
16 typedef struct __CFRunLoop * CFRunLoopRef;
17
18 class WXDLLIMPEXP_BASE wxCFEventLoop : public wxEventLoopManual
19 {
20 public:
21 #if wxUSE_EVENTLOOP_SOURCE
22 virtual wxEventLoopSource *
23 AddSourceForFD(int fd, wxEventLoopSourceHandler *handler, int flags);
24 #endif // wxUSE_EVENTLOOP_SOURCE
25
26 protected:
27 // get the currently executing CFRunLoop
28 virtual CFRunLoopRef CFGetCurrentRunLoop() const = 0;
29 };
30
31 #if wxUSE_GUI
32 #ifdef __WXOSX_COCOA__
33 #include "wx/osx/cocoa/evtloop.h"
34 #else
35 #include "wx/osx/carbon/evtloop.h"
36 #endif
37 #endif // wxUSE_GUI
38
39 #endif // _WX_OSX_EVTLOOP_H_