X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce3b4b90c51756092f1db8e5d87d07adb0a96e73..a7f8eb6d0fe67f96eb6b7e3a88ba27d80756162b:/include/wx/msw/pen.h diff --git a/include/wx/msw/pen.h b/include/wx/msw/pen.h index aa50b49cf6..95c50c06ab 100644 --- a/include/wx/msw/pen.h +++ b/include/wx/msw/pen.h @@ -22,10 +22,10 @@ class WXDLLEXPORT wxPen : public wxGDIObject { public: - wxPen(); + wxPen() { } wxPen(const wxColour& col, int width = 1, int style = wxSOLID); wxPen(const wxBitmap& stipple, int width); - virtual ~wxPen(); + virtual ~wxPen() { } bool operator==(const wxPen& pen) const; bool operator!=(const wxPen& pen) const { return !(*this == pen); } @@ -54,16 +54,19 @@ public: int GetDashCount() const; wxBitmap* GetStipple() const; - // Internal - bool RealizeResource(); - bool FreeResource(bool force = false); - WXHANDLE GetResourceHandle() const; - bool IsFree() const; + // internal: wxGDIObject methods + virtual bool RealizeResource(); + virtual bool FreeResource(bool force = false); + virtual WXHANDLE GetResourceHandle() const; + virtual bool IsFree() const; protected: virtual wxObjectRefData* CreateRefData() const; virtual wxObjectRefData* CloneRefData(const wxObjectRefData* data) const; + // same as FreeResource() + RealizeResource() + bool Recreate(); + DECLARE_DYNAMIC_CLASS(wxPen) };