]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/evtloopsrc.h
Test using wxString::ToCDouble() in wxAny.
[wxWidgets.git] / include / wx / osx / evtloopsrc.h
CommitLineData
5cd99866
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/osx/evtloopsrc.h
3// Purpose: wxCFEventLoopSource class
4// Author: Vadim Zeitlin
5// Created: 2009-10-21
b1153ed6 6// RCS-ID: $Id$
5cd99866
VZ
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
14typedef struct __CFFileDescriptor *CFFileDescriptorRef;
15
16// ----------------------------------------------------------------------------
17// wxCFEventLoopSource: CoreFoundation-based wxEventLoopSource for OS X
18// ----------------------------------------------------------------------------
19
20class wxCFEventLoopSource : public wxEventLoopSource
21{
22public:
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
34private:
35 CFFileDescriptorRef m_cffd;
36
37 wxDECLARE_NO_COPY_CLASS(wxCFEventLoopSource);
38};
39
40#endif // _WX_OSX_EVTLOOPSRC_H_
41