Version: 3.1.3
wxGraphicsPenInfo Class Reference

#include <wx/graphics.h>

Detailed Description

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:


Public Member Functions

 wxGraphicsPenInfo (const wxColour &colour=wxColour(), wxDouble width=1.0, wxPenStyle style=wxPENSTYLE_SOLID)
wxGraphicsPenInfoColour (const wxColour &col)
wxGraphicsPenInfoWidth (wxDouble width)
wxGraphicsPenInfoStyle (wxPenStyle style)
wxGraphicsPenInfoStipple (const wxBitmap &stipple)
wxGraphicsPenInfoDashes (int nb_dashes, const wxDash *dash)
wxGraphicsPenInfoJoin (wxPenJoin join)
wxGraphicsPenInfoCap (wxPenCap cap)

Constructor & Destructor Documentation

wxGraphicsPenInfo::wxGraphicsPenInfo ( const wxColour colour = wxColour(),
wxDouble  width = 1.0,
wxPenStyle  style = wxPENSTYLE_SOLID 

Member Function Documentation

wxGraphicsPenInfo& wxGraphicsPenInfo::Cap ( wxPenCap  cap)
wxGraphicsPenInfo& wxGraphicsPenInfo::Colour ( const wxColour col)
wxGraphicsPenInfo& wxGraphicsPenInfo::Dashes ( int  nb_dashes,
const wxDash *  dash 
wxGraphicsPenInfo& wxGraphicsPenInfo::Join ( wxPenJoin  join)
wxGraphicsPenInfo& wxGraphicsPenInfo::Stipple ( const wxBitmap stipple)
wxGraphicsPenInfo& wxGraphicsPenInfo::Style ( wxPenStyle  style)
wxGraphicsPenInfo& wxGraphicsPenInfo::Width ( wxDouble  width)