The style may be one of the ::wxPenStyle values.
@remarks Different versions of Windows and different versions of other
- platforms support very different subsets of the styles
- above - there is no similarity even between Windows95
- and Windows98 - so handle with care.
+ platforms support very different subsets of the styles above
+ - there is no similarity even between Windows95 and Windows98 -
+ so handle with care.
@see SetStyle(), SetColour(), SetWidth()
*/
@param stipple
A stipple bitmap.
+ @onlyfor{wxmsw,wxmac}
+
@see SetWidth(), SetStipple()
*/
wxPen(const wxBitmap& stipple, int width);
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
/**
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
@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
@see GetStipple()
*/
- virtual void SetStipple(wxBitmap* stipple);
+ virtual void SetStipple(const wxBitmap& stipple);
/**
Set the pen style.
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.
See @ref overview_refcount_equality "reference-counted object comparison" for
more info.
*/
- bool operator ==(const wxPen& pen);
+ bool operator==(const wxPen& pen) const;
};
/**