#include <wx/pen.h>
This class is a helper used for wxPen creation using named parameter idiom: it allows to specify various wxPen attributes using the chained calls to its clearly named methods instead of passing them in the fixed order to wxPen constructors.
For instance, to create a dotted blue pen with the given join style you could do
Public Member Functions | |
wxPenInfo (const wxColour &colour=wxColour(), int width=1, wxPenStyle style=wxPENSTYLE_SOLID) | |
wxPenInfo & | Colour (const wxColour &col) |
wxPenInfo & | Width (int width) |
wxPenInfo & | Style (wxPenStyle style) |
wxPenInfo & | Stipple (const wxBitmap &stipple) |
wxPenInfo & | Dashes (int nb_dashes, const wxDash *dash) |
wxPenInfo & | Join (wxPenJoin join) |
wxPenInfo & | Cap (wxPenCap cap) |
|
explicit |
wxPenInfo& wxPenInfo::Dashes | ( | int | nb_dashes, |
const wxDash * | dash | ||
) |
wxPenInfo& wxPenInfo::Style | ( | wxPenStyle | style | ) |
wxPenInfo& wxPenInfo::Width | ( | int | width | ) |