Contents Up Previous Next

wxPen is-a wxObject

A pen is used to control the colour and style of subsequent drawing operations on a device context.

wxPen colour
wxPen style
wxPen create


wxPen colour

string colour

The colour for initializing the wxPen.


wxPen style

symbol style

The style for initializing the wxPen. May be one of wxSOLID, wxDOT, wxLONG_DASH, wxSHORT_DASH, wxTRANSPARENT.


wxPen create

void ( create)

Creates a pen for use in a device context. A pen is used for the outlines of graphic shapes. A brush must be set to fill the shapes.

The following slots may be initialized.