dcscreen.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/motif/dcscreen.h
  3. // Purpose: wxScreenDCImpl class
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 17/09/98
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_DCSCREEN_H_
  11. #define _WX_DCSCREEN_H_
  12. #include "wx/motif/dcclient.h"
  13. class WXDLLIMPEXP_CORE wxScreenDCImpl : public wxWindowDCImpl
  14. {
  15. public:
  16. // Create a DC representing the whole screen
  17. wxScreenDCImpl(wxScreenDC *owner);
  18. virtual ~wxScreenDCImpl();
  19. // Compatibility with X's requirements for
  20. // drawing on top of all windows
  21. static bool StartDrawingOnTop(wxWindow* window);
  22. static bool StartDrawingOnTop(wxRect* rect = NULL);
  23. static bool EndDrawingOnTop();
  24. private:
  25. static WXWindow sm_overlayWindow;
  26. // If we have started transparent drawing at a non-(0,0) point
  27. // then we will have to adjust the device origin in the
  28. // constructor.
  29. static int sm_overlayWindowX;
  30. static int sm_overlayWindowY;
  31. DECLARE_DYNAMIC_CLASS(wxScreenDCImpl)
  32. };
  33. #endif // _WX_DCSCREEN_H_