 
       wx.lib.graphics.GraphicsBrush¶
  wx.lib.graphics.GraphicsBrush¶A GraphicsBrush is used to define how fills are painted.
They can have either a solid fill (colors with or without alpha), a
stipple created from a wx.Bitmap, or a Cairo Pattern
object.
 Methods Summary¶
 Methods Summary¶| __init__ | Create a new GraphicsBrush. | 
| Apply | Apply this brush’s properties to the given context. | 
| CreateFromBrush | Converts a wx.Brushto aGraphicsBrush. | 
| CreateFromPattern | Create a GraphicsBrushdirectly from a CairoPatternobject. | 
 Properties Summary¶
 Properties Summary¶| Colour | The color to use when filling with the brush. | 
| Pattern | A pattern to be used when filling with this brush. | 
| Stipple | The Stipple is a bitmap to be used as a pattern when filling with this brush. | 
| Style | The style of the brush to be used when filling. | 
 Class API¶
 Class API¶GraphicsBrush(GraphicsObject)¶A GraphicsBrush is used to define how fills are painted.
They can have either a solid fill (colors with or without alpha), a
stipple created from a wx.Bitmap, or a Cairo Pattern
object.
__init__(self, colour=wx.BLACK, style=wx.BRUSHSTYLE_SOLID)¶Create a new GraphicsBrush.
Apply(self, ctx)¶Apply this brush’s properties to the given context.
Called by GraphicsContext as needed.
CreateFromPattern(pattern)¶Create a GraphicsBrush directly from a Cairo Pattern object.
This is similar to using a stipple bitmap, but saves a step, and
patterns can include gradients, etc.
Pattern¶A pattern to be used when filling with this brush.
| Type: | Cairo Pattern | 
|---|
Stipple¶The Stipple is a bitmap to be used as a pattern when filling with this brush.
This will be converted to a Cairo Pattern when applied to
a GraphicsContext.
| Type: | wx.Bitmap | 
|---|
Style¶The style of the brush to be used when filling.
Currently, wx.BRUSHSTYLE_SOLID and wx.BRUSHSTYLE_STIPPLE
are supported.
| Type: | wx.BrushStyle | 
|---|