]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/evtloop.h
make sure ShowEvent doesn't get triggered to early during construction
[wxWidgets.git] / include / wx / osx / evtloop.h
CommitLineData
5c6eb3a8 1///////////////////////////////////////////////////////////////////////////////
5cd99866 2// Name: include/wx/osx/evtloop.h
5c6eb3a8
SC
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
5cd99866
VZ
13#ifndef _WX_OSX_EVTLOOP_H_
14#define _WX_OSX_EVTLOOP_H_
5c6eb3a8 15
5cd99866
VZ
16typedef struct __CFRunLoop * CFRunLoopRef;
17
18class WXDLLIMPEXP_BASE wxCFEventLoop : public wxEventLoopManual
19{
20public:
21#if wxUSE_EVENTLOOP_SOURCE
22 virtual wxEventLoopSource *
23 AddSourceForFD(int fd, wxEventLoopSourceHandler *handler, int flags);
24#endif // wxUSE_EVENTLOOP_SOURCE
25
26protected:
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_