GOffice.CanvasItemClass

Fields

Name

Type

Access

Description

base

GObject.ObjectClass

r

the parent class

button2_pressed

object

r

callback for a double click event.

button_pressed

object

r

callback for a button press event.

button_released

object

r

callback for a button release event.

copy

object

r

method for copying an item.

distance

object

r

returns the distance between the item and the point defined by x and y. When the distance is larger than a few pixels, the result is not relevant, so an approximate GOffice.value or even GObject.G_MAXDOUBLE might be returned.

draw

object

r

draws the item to the cairo context.

draw_region

object

r

draws the item in the region defined by x0, y0, x1 and y1. Should return True when successfull. If False is returned, draw will be called. There is no need to implement both methods for an item. Large items should implement draw_region.

enter_notify

object

r

callback for an enter notify event.

get_window

object

r

returns the Gdk.Window for the item if any.

key_pressed

object

r

callback for a key press event.

key_released

object

r

callback for a key release event.

leave_notify

object

r

callback for a leave notify event.

motion

object

r

callback for a motion event.

notify_scrolled

object

r

callback for a notify scrolled event. This is useful to reposition children of the Gtk.Layout parent of the canvas to their new position.

realize

object

r

callback for a realizes event.

reserved2

object

r

reserved3

object

r

reserved4

object

r

unrealize

object

r

callback for an unrealize event.

update_bounds

object

r

updates the bounds stored in GOffice.CanvasItem as fields #x0, #y0, #x1,and #y1.

Methods

None

Details

class GOffice.CanvasItemClass

The base class for all canvas items.