Table Of Contents

Previous topic

GraphicsBitmap

Next topic

GraphicsContext

This Page

phoenix_title GraphicsBrush

A Brush 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.


class_hierarchy Inheritance Diagram

Inheritance diagram for class GraphicsBrush

Inheritance diagram of GraphicsBrush


super_classes Known Superclasses

lib.graphics.GraphicsObject


method_summary Methods Summary

__init__  
Apply  
CreateFromBrush Converts a wx.Brush to a GraphicsBrush
CreateFromPattern Create a Brush directly from a Cairo Pattern object. This is

property_summary Properties Summary

Colour  
Pattern  
Stipple  
Style  

api Class API



class GraphicsBrush(GraphicsObject)

A Brush 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



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


Apply(self, ctx)


static CreateFromBrush(brush)

Converts a wx.Brush to a GraphicsBrush



static CreateFromPattern(pattern)

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


Properties



Colour

See fset , fget



Pattern

See fset , fget



Stipple

See fset , fget



Style

See fset , fget