2008-12-28 09:32:49 -05:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/osx/cocoa/evtloop.h
|
|
|
|
// Purpose: declaration of wxGUIEventLoop for wxOSX/Cocoa
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 2008-12-28
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_OSX_COCOA_EVTLOOP_H_
|
|
|
|
#define _WX_OSX_COCOA_EVTLOOP_H_
|
|
|
|
|
2009-10-22 07:36:35 -04:00
|
|
|
class WXDLLIMPEXP_BASE wxGUIEventLoop : public wxCFEventLoop
|
2008-12-28 09:32:49 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxGUIEventLoop();
|
|
|
|
|
|
|
|
// implement/override base class pure virtual
|
|
|
|
virtual bool Pending() const;
|
|
|
|
virtual bool Dispatch();
|
|
|
|
virtual int DispatchTimeout(unsigned long timeout);
|
|
|
|
|
|
|
|
virtual void WakeUp();
|
2009-02-15 09:25:08 -05:00
|
|
|
virtual bool YieldFor(long eventsToProcess);
|
2008-12-28 09:32:49 -05:00
|
|
|
|
2009-10-22 07:35:43 -04:00
|
|
|
protected:
|
2009-10-22 07:36:35 -04:00
|
|
|
virtual CFRunLoopRef CFGetCurrentRunLoop() const;
|
2009-10-22 07:35:43 -04:00
|
|
|
|
2008-12-28 09:32:49 -05:00
|
|
|
private:
|
|
|
|
double m_sleepTime;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_OSX_COCOA_EVTLOOP_H_
|
|
|
|
|