This class is a helper used for wxGraphicsPen creation using named parameter idiom: it allows specifying various wxGraphicsPen attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to wxGraphicsPen constructors.
Typically you would use wxGraphicsPenInfo with a wxGraphicsContext, e.g. to start drawing with a dotted blue pen slightly wider than normal you could write the following:
A wxGraphicsContext instance is the object that is drawn upon.
Definition: graphics.h:429
static wxGraphicsContext * Create()
Create a lightweight context that can be used only for measuring text.
void SetPen(const wxPen &pen)
Sets the pen used for stroking.
wxGraphicsPenInfo(const wxColour &colour=wxColour(), wxDouble width=1.0, wxPenStyle style=wxPENSTYLE_SOLID)
@ wxPENSTYLE_DOT
Dotted style.
Definition: pen.h:21
- Since
- 3.1.1
|
| wxGraphicsPenInfo (const wxColour &colour=wxColour(), wxDouble width=1.0, wxPenStyle style=wxPENSTYLE_SOLID) |
|
wxGraphicsPenInfo & | Colour (const wxColour &col) |
|
wxGraphicsPenInfo & | Width (wxDouble width) |
|
wxGraphicsPenInfo & | Style (wxPenStyle style) |
|
wxGraphicsPenInfo & | Stipple (const wxBitmap &stipple) |
|
wxGraphicsPenInfo & | Dashes (int nb_dashes, const wxDash *dash) |
|
wxGraphicsPenInfo & | Join (wxPenJoin join) |
|
wxGraphicsPenInfo & | Cap (wxPenCap cap) |
|
wxGraphicsPenInfo & | LinearGradient (wxDouble x1, wxDouble y1, wxDouble x2, wxDouble y2, const wxColour &c1, const wxColour &c2, const wxGraphicsMatrix &matrix=wxNullGraphicsMatrix) |
|
wxGraphicsPenInfo & | LinearGradient (wxDouble x1, wxDouble y1, wxDouble x2, wxDouble y2, const wxGraphicsGradientStops &stops, const wxGraphicsMatrix &matrix=wxNullGraphicsMatrix) |
|
wxGraphicsPenInfo & | RadialGradient (wxDouble startX, wxDouble startY, wxDouble endX, wxDouble endY, wxDouble radius, const wxColour &oColor, const wxColour &cColor, const wxGraphicsMatrix &matrix=wxNullGraphicsMatrix) |
|
wxGraphicsPenInfo & | RadialGradient (wxDouble startX, wxDouble startY, wxDouble endX, wxDouble endY, wxDouble radius, const wxGraphicsGradientStops &stops, const wxGraphicsMatrix &matrix=wxNullGraphicsMatrix) |
|
wxColour | GetColour () const |
|
wxBitmap | GetStipple () const |
|
wxPenStyle | GetStyle () const |
|
wxPenJoin | GetJoin () const |
|
wxPenCap | GetCap () const |
|
int | GetDashes (wxDash **ptr) |
|
int | GetDashCount () const |
|
wxDash * | GetDash () const |
|
bool | IsTransparent () const |
|
wxDouble | GetWidth () const |
|
wxGradientType | GetGradientType () const |
|
wxDouble | GetX1 () const |
|
wxDouble | GetY1 () const |
|
wxDouble | GetX2 () const |
|
wxDouble | GetY2 () const |
|
wxDouble | GetStartX () const |
|
wxDouble | GetStartY () const |
|
wxDouble | GetEndX () const |
|
wxDouble | GetEndY () const |
|
wxDouble | GetRadius () const |
|
const wxGraphicsGradientStops & | GetStops () const |
|