/**
@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.
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;
};
/**
/**
@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