A GraphicsPen
is used to define the properties of how a stroke is drawn.
The properties and features of this class are similar to wx.Pen
,
and a wx.Pen
can be used to initialize a GraphicsPen
using the
GraphicsPen.CreateFromPen
staticmethod.
wx.lib.graphics.GraphicsObject
Create a new |
|
Apply this pen’s properties to the given context. |
|
Create a |
|
Convert a |
The style of the end cap used when drawing with the pen. |
|
The color associated with this pen, to be used when drawing the line. |
|
Dashes is a sequence of values defining the size of line segments and blanks |
|
The pen’s join style, used when drawing connected lines. |
|
A pattern to be used when drawing a line with the pen. |
|
Stipple is a bitmap to use as a pattern when drawing a line with the pen. |
|
Defines the type of pen, including things like solid, dashed, stipple, etc. |
|
The width of the line to be drawn with this pen. |
A GraphicsPen
is used to define the properties of how a stroke is drawn.
The properties and features of this class are similar to wx.Pen
,
and a wx.Pen
can be used to initialize a GraphicsPen
using the
GraphicsPen.CreateFromPen
staticmethod.
Create a new GraphicsPen
Apply this pen’s properties to the given context.
Called by GraphicsContext
as needed.
Create a GraphicsPen
directly from a Cairo Pattern object.
This is similar to using a stipple bitmap, but saves a step, and
patterns can include gradients, etc.
Convert a wx.Pen
or wx.GraphicsPenInfo
to a GraphicsPen
Dashes is a sequence of values defining the size of line segments and blanks to use when drawing a line.
The pen’s join style, used when drawing connected lines.
The default is wx.JOIN_ROUND
.
A pattern to be used when drawing a line with the pen.
Cairo Pattern
Stipple is a bitmap to use as a pattern when drawing a line with the pen.
This will be converted to a Cairo Pattern
when applied to
a GraphicsContext
.
Defines the type of pen, including things like solid, dashed, stipple, etc.
The width of the line to be drawn with this pen.
int or float