goocanvas.ItemViewSimple

goocanvas.ItemViewSimple — The base class for the standard canvas item views.

Synopsis

class goocanvas.ItemView(gobject.GObject):
    def setup_accessibility()
Functions
    def goocanvas.item_view_simple_item_changed(item, recompute_bounds, simple_view)

Ancestry

+-- gobject.GObject
    +-- goocanvas.ItemViewSimple

Implemented Interfaces

goocanvas.ItemViewSimple implements goocanvas.ItemView

Description

goocanvas.ItemViewSimple is used as a base class for the standard canvas item views.It provides default implementations for many of the goocanvas.ItemView methods.

Methods

goocanvas.ItemViewSimple.setup_accessibility

    def setup_accessibility()

Sets the accessible name and description of the view based on the "title" and "description" settings of the underlying canvas item. It also connects to the "notify::title" and "notify::description" signals to update the name and description when they are changed.

Functions

goocanvas.item_view_simple_item_changed

    def goocanvas.item_view_simple_item_changed(item, recompute_bounds, simple_view)
item :The goocanvas.ItemView that has changed.
recompute_bounds :True if the bounds need to be recomputed.
simple_view :The item view.

This function is intended to be used by subclasses of goocanvas.ItemViewSimple only. It is used as a callback for the "changed" signal of the canvas items. It requests an update or redraw of the item view as appropriate.