GooCanvas.CanvasItemModelIface

Fields

Name

Type

Access

Description

add_child

object

r

animation_finished

object

r

base_iface

GObject.TypeInterface

r

changed

object

r

child_added

object

r

child_moved

object

r

child_notify

object

r

child_removed

object

r

create_item

object

r

get_child

object

r

get_child_property

object

r

get_n_children

object

r

get_parent

object

r

get_style

object

r

get_transform

object

r

move_child

object

r

remove_child

object

r

set_child_property

object

r

set_parent

object

r

set_style

object

r

set_transform

object

r

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().