]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/x11/dcscreen.h
avoid GCC warning about type-punned pointer breaking strict aliasing rules
[wxWidgets.git] / include / wx / x11 / dcscreen.h
index 667ea6dcc5fd40c211ae92d58652e97abf0332dc..07cc7dac214dcf8172aafc94947cae3cd06f6321 100644 (file)
 #define _WX_DCSCREEN_H_
 
 #include "wx/dcclient.h"
+#include "wx/x11/dcclient.h"
 
 //-----------------------------------------------------------------------------
 // wxScreenDC
 //-----------------------------------------------------------------------------
 
-class WXDLLIMPEXP_CORE wxScreenDC : public wxPaintDC
+class WXDLLIMPEXP_CORE wxScreenDCImpl : public wxPaintDCImpl
 {
 public:
-    wxScreenDC();
-    virtual ~wxScreenDC();
-
-    static bool StartDrawingOnTop( wxWindow *window );
-    static bool StartDrawingOnTop( wxRect *rect = (wxRect *) NULL );
-    static bool EndDrawingOnTop();
-
-    // implementation
-
-    static WXWindow   *sm_overlayWindow;
-    static int         sm_overlayWindowX;
-    static int         sm_overlayWindowY;
+    wxScreenDCImpl( wxDC *owner);
+    virtual ~wxScreenDCImpl();
 
 protected:
     virtual void DoGetSize(int *width, int *height) const;
 
 private:
-    DECLARE_DYNAMIC_CLASS(wxScreenDC)
+    DECLARE_CLASS(wxScreenDCImpl)
 };