]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/evtloopsrc.h
Fix typo in definitions of BEGIN_EVENT_TABLE_TEMPLATEn() macros with n>=2.
[wxWidgets.git] / include / wx / osx / evtloopsrc.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/evtloopsrc.h
3 // Purpose: wxCFEventLoopSource class
4 // Author: Vadim Zeitlin
5 // Created: 2009-10-21
6 // RCS-ID: $Id$
7 // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_OSX_EVTLOOPSRC_H_
12 #define _WX_OSX_EVTLOOPSRC_H_
13
14 typedef struct __CFFileDescriptor *CFFileDescriptorRef;
15
16 // ----------------------------------------------------------------------------
17 // wxCFEventLoopSource: CoreFoundation-based wxEventLoopSource for OS X
18 // ----------------------------------------------------------------------------
19
20 class wxCFEventLoopSource : public wxEventLoopSource
21 {
22 public:
23 wxCFEventLoopSource(wxEventLoopSourceHandler *handler, int flags)
24 : wxEventLoopSource(handler, flags)
25 {
26 m_cffd = NULL;
27 }
28
29 // we take ownership of this CFFileDescriptorRef
30 void SetFileDescriptor(CFFileDescriptorRef cffd);
31
32 virtual ~wxCFEventLoopSource();
33
34 private:
35 CFFileDescriptorRef m_cffd;
36
37 wxDECLARE_NO_COPY_CLASS(wxCFEventLoopSource);
38 };
39
40 #endif // _WX_OSX_EVTLOOPSRC_H_
41