2006-08-27 05:42:42 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/dfb/evtloop.h
|
|
|
|
// Purpose: declares wxEventLoop class
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Created: 2006-08-16
|
|
|
|
// Copyright: (c) 2006 REA Elektronik GmbH
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DFB_EVTLOOP_H_
|
|
|
|
#define _WX_DFB_EVTLOOP_H_
|
|
|
|
|
2006-09-06 05:40:31 -04:00
|
|
|
#include "wx/dfb/dfbptr.h"
|
2009-01-30 10:21:47 -05:00
|
|
|
#include "wx/unix/evtloop.h"
|
2006-08-27 05:42:42 -04:00
|
|
|
|
|
|
|
wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer);
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxEventLoop
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2009-01-30 10:21:47 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxConsoleEventLoop
|
2006-08-27 05:42:42 -04:00
|
|
|
{
|
|
|
|
public:
|
2007-05-14 19:43:39 -04:00
|
|
|
wxGUIEventLoop();
|
2006-08-27 05:42:42 -04:00
|
|
|
|
2009-02-15 09:25:08 -05:00
|
|
|
virtual bool YieldFor(long eventsToProcess);
|
|
|
|
|
2006-08-27 05:42:42 -04:00
|
|
|
// returns DirectFB event buffer used by wx
|
2006-09-06 05:40:31 -04:00
|
|
|
static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer();
|
2006-08-27 05:42:42 -04:00
|
|
|
|
2009-01-30 10:21:47 -05:00
|
|
|
private:
|
2006-08-27 05:42:42 -04:00
|
|
|
static void InitBuffer();
|
2006-09-30 15:22:40 -04:00
|
|
|
static void CleanUp();
|
|
|
|
|
2009-01-30 10:21:47 -05:00
|
|
|
friend class wxApp; // calls CleanUp()
|
2006-08-27 05:42:42 -04:00
|
|
|
|
|
|
|
private:
|
2006-09-06 05:40:31 -04:00
|
|
|
static wxIDirectFBEventBufferPtr ms_buffer;
|
2009-01-30 10:21:47 -05:00
|
|
|
static int ms_bufferFd;
|
2006-08-27 05:42:42 -04:00
|
|
|
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
|
2006-08-27 05:42:42 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_DFB_EVTLOOP_H_
|