GooCanvas.CanvasItemSimpleClass

Fields

Name

Type

Access

Description

parent_class

GObject.ObjectClass

r

simple_create_path

object

r

GooCanvas.simple subclasses that draw basic shapes and paths only need to override this one method. It creates the path for the item. All updating, painting and hit-testing is provided automatically by the GooCanvas.CanvasItemSimple class. (This method is used by the builtin GooCanvas.CanvasEllipse, GooCanvas.CanvasRect and GooCanvas.CanvasPath items.) More complicated subclasses must override simple_update, simple_paint and simple_is_item_at instead.

simple_is_item_at

object

r

subclasses should override this to do hit-testing.

simple_paint

object

r

subclasses should override this to paint their item.

simple_update

object

r

subclasses should override this to calculate their new bounds, in user space.

Methods

None

Details

class GooCanvas.CanvasItemSimpleClass

The GooCanvas.CanvasItemSimpleClass-struct struct contains several methods that subclasses can override.

Simple items need only implement the create_path() method. More complex items must override the update(), paint() and is_item_at() methods instead.