Table Of Contents

Previous topic

GraphicsPath

Next topic

gridmovers

This Page

phoenix_title GraphicsPen

A Pen is used to define the properties of how a stroke is drawn.


class_hierarchy Inheritance Diagram

Inheritance diagram for class GraphicsPen

Inheritance diagram of GraphicsPen


super_classes Known Superclasses

lib.graphics.GraphicsObject


method_summary Methods Summary

__init__  
Apply  
CreateFromPattern Create a Pen directly from a Cairo Pattern object. This is
CreateFromPen Convert a wx.Pen to a GraphicsPen

property_summary Properties Summary

Cap  
Colour  
Dashes  
Join  
Pattern  
Stipple  
Style  
Width  

api Class API



class GraphicsPen(GraphicsObject)

A Pen is used to define the properties of how a stroke is drawn.


Methods



__init__(self, colour=BLACK, width=1, style=SOLID)


Apply(self, ctx)


static CreateFromPattern(pattern, width=1)

Create a Pen directly from a Cairo Pattern object. This is similar to using a stipple bitmap, but saves a step, and patterns can include gradients, etc.



static CreateFromPen(pen)

Convert a wx.Pen to a GraphicsPen


Properties



Cap

See fset , fget



Colour

See fset , fget



Dashes

See fset , fget



Join

See fset , fget



Pattern

See fset , fget



Stipple

See fset , fget



Style

See fset , fget



Width

See fset , fget