#include <wx/pen.h>
This class is a helper used for wxPen creation using named parameter idiom: it allows specifying 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) |
| wxPenInfo & | Quality (wxPenQuality quality) |
| Set the pen quality. More... | |
| wxPenInfo & | LowQuality () |
| Set low pen quality. More... | |
| wxPenInfo & | HighQuality () |
| Set high pen quality. More... | |
| wxColour | GetColour () const |
| wxBitmap | GetStipple () const |
| wxPenStyle | GetStyle () const |
| wxPenJoin | GetJoin () const |
| wxPenCap | GetCap () const |
| wxPenQuality | GetQuality () const |
| int | GetDashes (wxDash **ptr) |
| int | GetDashCount () const |
| wxDash * | GetDash () const |
| bool | IsTransparent () const |
| int | GetWidth () const |
|
explicit |
| wxPenInfo& wxPenInfo::Dashes | ( | int | nb_dashes, |
| const wxDash * | dash | ||
| ) |
| wxPenCap wxPenInfo::GetCap | ( | ) | const |
| wxColour wxPenInfo::GetColour | ( | ) | const |
| wxDash* wxPenInfo::GetDash | ( | ) | const |
| int wxPenInfo::GetDashCount | ( | ) | const |
| int wxPenInfo::GetDashes | ( | wxDash ** | ptr | ) |
| wxPenJoin wxPenInfo::GetJoin | ( | ) | const |
| wxPenQuality wxPenInfo::GetQuality | ( | ) | const |
| wxBitmap wxPenInfo::GetStipple | ( | ) | const |
| wxPenStyle wxPenInfo::GetStyle | ( | ) | const |
| int wxPenInfo::GetWidth | ( | ) | const |
| wxPenInfo& wxPenInfo::HighQuality | ( | ) |
| bool wxPenInfo::IsTransparent | ( | ) | const |
| wxPenInfo& wxPenInfo::LowQuality | ( | ) |
| wxPenInfo& wxPenInfo::Quality | ( | wxPenQuality | quality | ) |
Set the pen quality.
Using LowQuality() or HighQuality() is usually more convenient.
| wxPenInfo& wxPenInfo::Style | ( | wxPenStyle | style | ) |
| wxPenInfo& wxPenInfo::Width | ( | int | width | ) |