git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| ///////////////////////////////////////////////////////////////////////////////
 | |
| // Name:        wx/osx/evtloopsrc.h
 | |
| // Purpose:     wxCFEventLoopSource class
 | |
| // Author:      Vadim Zeitlin
 | |
| // Created:     2009-10-21
 | |
| // RCS-ID:      $Id$
 | |
| // Copyright:   (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
 | |
| // Licence:     wxWindows licence
 | |
| ///////////////////////////////////////////////////////////////////////////////
 | |
| 
 | |
| #ifndef _WX_OSX_EVTLOOPSRC_H_
 | |
| #define _WX_OSX_EVTLOOPSRC_H_
 | |
| 
 | |
| typedef struct __CFFileDescriptor *CFFileDescriptorRef;
 | |
| 
 | |
| // ----------------------------------------------------------------------------
 | |
| // wxCFEventLoopSource: CoreFoundation-based wxEventLoopSource for OS X
 | |
| // ----------------------------------------------------------------------------
 | |
| 
 | |
| class wxCFEventLoopSource : public wxEventLoopSource
 | |
| {
 | |
| public:
 | |
|     wxCFEventLoopSource(wxEventLoopSourceHandler *handler, int flags)
 | |
|         : wxEventLoopSource(handler, flags)
 | |
|     {
 | |
|         m_cffd = NULL;
 | |
|     }
 | |
| 
 | |
|     // we take ownership of this CFFileDescriptorRef
 | |
|     void SetFileDescriptor(CFFileDescriptorRef cffd);
 | |
| 
 | |
|     virtual ~wxCFEventLoopSource();
 | |
| 
 | |
| private:
 | |
|     CFFileDescriptorRef m_cffd;
 | |
| 
 | |
|     wxDECLARE_NO_COPY_CLASS(wxCFEventLoopSource);
 | |
| };
 | |
| 
 | |
| #endif // _WX_OSX_EVTLOOPSRC_H_
 | |
| 
 |