evtloop.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/dfb/evtloop.h
  3. // Purpose: declares wxEventLoop class
  4. // Author: Vaclav Slavik
  5. // Created: 2006-08-16
  6. // Copyright: (c) 2006 REA Elektronik GmbH
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_DFB_EVTLOOP_H_
  10. #define _WX_DFB_EVTLOOP_H_
  11. #include "wx/dfb/dfbptr.h"
  12. #include "wx/unix/evtloop.h"
  13. wxDFB_DECLARE_INTERFACE(IDirectFBEventBuffer);
  14. // ----------------------------------------------------------------------------
  15. // wxEventLoop
  16. // ----------------------------------------------------------------------------
  17. class WXDLLIMPEXP_CORE wxGUIEventLoop : public wxConsoleEventLoop
  18. {
  19. public:
  20. wxGUIEventLoop();
  21. virtual bool YieldFor(long eventsToProcess);
  22. // returns DirectFB event buffer used by wx
  23. static wxIDirectFBEventBufferPtr GetDirectFBEventBuffer();
  24. private:
  25. static void InitBuffer();
  26. static void CleanUp();
  27. friend class wxApp; // calls CleanUp()
  28. private:
  29. static wxIDirectFBEventBufferPtr ms_buffer;
  30. static int ms_bufferFd;
  31. wxDECLARE_NO_COPY_CLASS(wxGUIEventLoop);
  32. };
  33. #endif // _WX_DFB_EVTLOOP_H_