X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..5267aefd85739afd26bd19bfba998005119db446:/interface/wx/pen.h diff --git a/interface/wx/pen.h b/interface/wx/pen.h index 02368092d5..38a652feed 100644 --- a/interface/wx/pen.h +++ b/interface/wx/pen.h @@ -98,7 +98,6 @@ enum wxPenCap /** @class wxPen - @wxheader{pen.h} A pen is a drawing tool for drawing outlines. It is used for drawing lines and painting the outline of rectangles, ellipses, etc. @@ -202,7 +201,7 @@ public: pointer to the pen object is stored in an application data structure, and there is a risk of double deletion. */ - ~wxPen(); + virtual ~wxPen(); /** Returns the pen cap style, which may be one of @c wxCAP_ROUND, @c @@ -266,7 +265,7 @@ public: /** Returns @true if the pen is initialised. */ - bool IsOk() const; + virtual bool IsOk() const; /** Sets the pen cap style, which may be one of @c wxCAP_ROUND, @c wxCAP_PROJECTING @@ -296,7 +295,7 @@ public: @see GetDashes() */ - virtual void SetDashes(int n, wxDash* dashes); + virtual void SetDashes(int n, const wxDash* dash); /** Sets the pen join style, which may be one of @c wxJOIN_BEVEL, @c wxJOIN_ROUND @@ -313,7 +312,7 @@ public: @see GetStipple() */ - virtual void SetStipple(wxBitmap* stipple); + virtual void SetStipple(const wxBitmap& stipple); /** Set the pen style. @@ -335,12 +334,12 @@ public: See @ref overview_refcount_equality "reference-counted object comparison" for more info. */ - bool operator !=(const wxPen& pen); + bool operator!=(const wxPen& pen) const; /** Assignment operator, using @ref overview_refcount. */ - wxPen operator =(const wxPen& pen); + wxPen& operator=(const wxPen& pen); /** Equality operator. @@ -348,7 +347,7 @@ public: See @ref overview_refcount_equality "reference-counted object comparison" for more info. */ - bool operator ==(const wxPen& pen); + bool operator==(const wxPen& pen) const; }; /** @@ -410,7 +409,6 @@ wxPen* wxLIGHT_GREY_PEN; /** @class wxPenList - @wxheader{gdicmn.h} There is only one instance of this class: ::wxThePenList. Use this object to search for a previously created pen of the desired