GooCanvas.CanvasItemIface

Fields

Name

Type

Access

Description

add_child

object

r

allocate_area

object

r

animation_finished

object

r

base_iface

GObject.TypeInterface

r

button_press_event

object

r

button_release_event

object

r

child_notify

object

r

enter_notify_event

object

r

focus_in_event

object

r

focus_out_event

object

r

get_bounds

object

r

get_canvas

object

r

get_child

object

r

get_child_property

object

r

get_is_static

object

r

get_items_at

object

r

get_model

object

r

get_n_children

object

r

get_parent

object

r

get_requested_area

object

r

get_requested_area_for_width

object

r

get_requested_height

object

r

get_style

object

r

get_transform

object

r

get_transform_for_child

object

r

grab_broken_event

object

r

is_visible

object

r

key_press_event

object

r

key_release_event

object

r

leave_notify_event

object

r

motion_notify_event

object

r

move_child

object

r

paint

object

r

query_tooltip

object

r

remove_child

object

r

request_update

object

r

scroll_event

object

r

set_canvas

object

r

set_child_property

object

r

set_is_static

object

r

set_model

object

r

set_parent

object

r

set_style

object

r

set_transform

object

r

update

object

r

Methods

None

Details

class GooCanvas.CanvasItemIface

#GooCanvasItemIFace holds the virtual methods that make up the GooCanvas.CanvasItem interface.

Simple canvas items only need to implement the get_parent(), set_parent(), get_bounds(), get_items_at(), update() and paint() methods (and also get_requested_area() and allocate_area() if they are going to be used inside a layout container like GooCanvas.CanvasTable).

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_canvas(), set_canvas(), get_n_children(), get_child() and request_update(). 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(), set_child_property() and get_transform_for_child().