dcscreen.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/cocoa/dcscreen.h
  3. // Purpose: wxScreenDCImpl class
  4. // Author: David Elliott
  5. // Modified by:
  6. // Created: 2003/03/16
  7. // Copyright: (c) 2003 David Elliott
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef __WX_COCOA_DCSCREEN_H__
  11. #define __WX_COCOA_DCSCREEN_H__
  12. #include "wx/dcscreen.h"
  13. #include "wx/cocoa/dc.h"
  14. class WXDLLIMPEXP_CORE wxScreenDCImpl: public wxCocoaDCImpl
  15. {
  16. DECLARE_DYNAMIC_CLASS(wxScreenDCImpl)
  17. public:
  18. wxScreenDCImpl(wxScreenDC *owner);
  19. wxScreenDCImpl(wxScreenDC *owner, wxDC *dc ); // Create compatible DC
  20. virtual ~wxScreenDCImpl(void);
  21. // Compatibility with X's requirements for drawing on top of all windows
  22. static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return true; }
  23. static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return true; }
  24. static bool EndDrawingOnTop() { return true; }
  25. };
  26. #endif // __WX_COCOA_DCSCREEN_H__