GooCanvas.CanvasItemIface¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
add_child |
r |
||
allocate_area |
r |
||
animation_finished |
r |
||
base_iface |
r |
||
button_press_event |
r |
||
button_release_event |
r |
||
child_notify |
r |
||
enter_notify_event |
r |
||
focus_in_event |
r |
||
focus_out_event |
r |
||
get_bounds |
r |
||
get_canvas |
r |
||
get_child |
r |
||
get_child_property |
r |
||
get_is_static |
r |
||
get_items_at |
r |
||
get_model |
r |
||
get_n_children |
r |
||
get_parent |
r |
||
get_requested_area |
r |
||
get_requested_area_for_width |
r |
||
get_requested_height |
r |
||
get_style |
r |
||
get_transform |
r |
||
get_transform_for_child |
r |
||
grab_broken_event |
r |
||
is_visible |
r |
||
key_press_event |
r |
||
key_release_event |
r |
||
leave_notify_event |
r |
||
motion_notify_event |
r |
||
move_child |
r |
||
paint |
r |
||
query_tooltip |
r |
||
remove_child |
r |
||
request_update |
r |
||
scroll_event |
r |
||
set_canvas |
r |
||
set_child_property |
r |
||
set_is_static |
r |
||
set_model |
r |
||
set_parent |
r |
||
set_style |
r |
||
set_transform |
r |
||
update |
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().