evtloopsrc.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk/evtloopsrc.h
  3. // Purpose: wxGTKEventLoopSource class
  4. // Author: Vadim Zeitlin
  5. // Created: 2009-10-21
  6. // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_GTK_EVTLOOPSRC_H_
  10. #define _WX_GTK_EVTLOOPSRC_H_
  11. // ----------------------------------------------------------------------------
  12. // wxGTKEventLoopSource: wxEventLoopSource for GTK port
  13. // ----------------------------------------------------------------------------
  14. class wxGTKEventLoopSource : public wxEventLoopSource
  15. {
  16. public:
  17. // sourceId is the id of the watch in GTK context, not the FD of the file
  18. // this source corresponds to
  19. wxGTKEventLoopSource(unsigned sourceId,
  20. wxEventLoopSourceHandler *handler,
  21. int flags)
  22. : wxEventLoopSource(handler, flags),
  23. m_sourceId(sourceId)
  24. {
  25. }
  26. virtual ~wxGTKEventLoopSource();
  27. private:
  28. const unsigned m_sourceId;
  29. wxDECLARE_NO_COPY_CLASS(wxGTKEventLoopSource);
  30. };
  31. #endif // _WX_GTK_EVTLOOPSRC_H_