~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to include/wx/osx/evtloopsrc.h

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////////
 
2
// Name:        wx/osx/evtloopsrc.h
 
3
// Purpose:     wxCFEventLoopSource class
 
4
// Author:      Vadim Zeitlin
 
5
// Created:     2009-10-21
 
6
// RCS-ID:      $Id: evtloopsrc.h 64140 2010-04-25 21:33:16Z FM $
 
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