2008-06-11 12:30:48 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/mac/carbon/evtloop.h
|
|
|
|
// Purpose: declaration of wxEventLoop for wxMac
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2006-01-12
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MAC_CARBON_EVTLOOP_H_
|
|
|
|
#define _WX_MAC_CARBON_EVTLOOP_H_
|
|
|
|
|
2008-12-26 17:28:34 -05:00
|
|
|
class OpaqueEventRef;
|
|
|
|
typedef OpaqueEventRef *EventRef;
|
|
|
|
|
2008-06-11 12:30:48 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxEventLoopManual
|
|
|
|
{
|
|
|
|
public:
|
2008-09-02 12:53:23 -04:00
|
|
|
wxGUIEventLoop();
|
2008-06-11 12:30:48 -04:00
|
|
|
|
2008-12-26 17:28:34 -05:00
|
|
|
// implement/override base class pure virtual
|
2008-06-11 12:30:48 -04:00
|
|
|
virtual bool Pending() const;
|
|
|
|
virtual bool Dispatch();
|
2008-12-26 17:28:34 -05:00
|
|
|
virtual int DispatchTimeout(unsigned long timeout);
|
2008-06-11 12:30:48 -04:00
|
|
|
|
|
|
|
virtual void WakeUp();
|
2008-12-26 17:28:34 -05:00
|
|
|
|
2008-09-02 12:53:23 -04:00
|
|
|
private:
|
2008-12-26 17:28:34 -05:00
|
|
|
// dispatch an event and release it
|
|
|
|
void DispatchAndReleaseEvent(EventRef event);
|
|
|
|
|
2008-09-02 12:53:23 -04:00
|
|
|
double m_sleepTime;
|
2008-06-11 12:30:48 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MAC_CARBON_EVTLOOP_H_
|
|
|
|
|