]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/stubs/pen.h
New scrolling for GTK
[wxWidgets.git] / include / wx / stubs / pen.h
index 74e961c1d30837e3abb335cddab53b9b4d473b95..da7b165e380542e600cb27e7ae4d09ed496563b7 100644 (file)
 #endif
 
 #include "wx/gdiobj.h"
+#include "wx/colour.h"
+#include "wx/bitmap.h"
 
-typedef    WXDWORD  wxDash ;
+typedef    long wxDash ;
 
 class WXDLLEXPORT wxPen;
 
@@ -27,6 +29,7 @@ class WXDLLEXPORT wxPenRefData: public wxGDIRefData
     friend class WXDLLEXPORT wxPen;
 public:
     wxPenRefData();
+    wxPenRefData(const wxPenRefData& data);
     ~wxPenRefData();
 
 protected:
@@ -86,6 +89,15 @@ public:
   }
 
   inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : NULL); };
+
+// Implementation
+
+  // Useful helper: create the brush resource
+  bool RealizeResource();
+
+  // When setting properties, we must make sure we're not changing
+  // another object
+  void Unshare();
 };
 
 #endif