GooCanvas.CanvasItemModelIface

Fields

Name

Type

Access

Description

add_child

object

r

adds a child.

animation_finished

object

r

signal emitted when the model’s animation has finished.

base_iface

GObject.TypeInterface

r

changed

object

r

signal emitted when the model has changed.

child_added

object

r

signal emitted when a child is added.

child_moved

object

r

signal emitted when a child is moved in the stacking order.

child_notify

object

r

signal emitted when a child property has changed.

child_removed

object

r

signal emitted when a child is removed.

create_item

object

r

creates a default canvas item to view the model.

get_child

object

r

returns the child at the given index.

get_child_property

object

r

gets a child property of a given child model, e.g. the “row” or “column” property of a model in a GooCanvas.CanvasTableModel.

get_n_children

object

r

returns the number of children of the model.

get_parent

object

r

gets the model’s parent.

get_style

object

r

gets the model’s style.

get_transform

object

r

gets the model’s transformation matrix.

move_child

object

r

moves a child up or down the stacking order.

remove_child

object

r

removes a child.

set_child_property

object

r

sets a child property for a given child model.

set_parent

object

r

sets the model’s parent.

set_style

object

r

sets the model’s style.

set_transform

object

r

sets the model’s transformation matrix.

Methods

None

Details

class GooCanvas.CanvasItemModelIface

#GooCanvasItemModelIFace holds the virtual methods that make up the GooCanvas.CanvasItemModel interface.

Simple item models only need to implement the get_parent(), set_parent() and create_item() methods.

Items that support transforms should also implement get_transform() and set_transform(). Items that support styles should implement get_style() and set_style().

Container items must implement get_n_children() and get_child(). Containers that support dynamic changes to their children should implement add_child(), move_child() and remove_child(). Layout containers like GooCanvas.CanvasTable may implement get_child_property() and set_child_property().