X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c23a0b01b3fb667ec41fc8271ce1ee5b5aa4e19..8fdca65cf20ae4dba861fa6667d6e233cbb900cf:/include/wx/stubs/pen.h diff --git a/include/wx/stubs/pen.h b/include/wx/stubs/pen.h index 74e961c1d3..da7b165e38 100644 --- a/include/wx/stubs/pen.h +++ b/include/wx/stubs/pen.h @@ -17,8 +17,10 @@ #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