GooCanvas.CanvasGroupModel

g GObject.GInterface GObject.GInterface GooCanvas.CanvasItemModel GooCanvas.CanvasItemModel GObject.GInterface->GooCanvas.CanvasItemModel GObject.Object GObject.Object GooCanvas.CanvasItemModelSimple GooCanvas.CanvasItemModelSimple GObject.Object->GooCanvas.CanvasItemModelSimple GooCanvas.CanvasGroupModel GooCanvas.CanvasGroupModel GooCanvas.CanvasItemModel->GooCanvas.CanvasItemModelSimple GooCanvas.CanvasItemModelSimple->GooCanvas.CanvasGroupModel

Subclasses:

GooCanvas.CanvasTableModel

Methods

Inherited:

GObject.Object (37), GooCanvas.CanvasItemModel (30)

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

GObject.Object (7), GooCanvas.CanvasItemModel (19)

Properties

Inherited:

GooCanvas.CanvasItemModelSimple (23), GooCanvas.CanvasItemModel (9)

Name

Type

Flags

Short Description

height

float

r/w

The height of the group, or -1 to use the default height

width

float

r/w

The width of the group, or -1 to use the default width

x

float

r/w

The x coordinate of the group

y

float

r/w

The y coordinate of the group

Signals

Inherited:

GObject.Object (1), GooCanvas.CanvasItemModel (6)

Fields

Inherited:

GObject.Object (1), GooCanvas.CanvasItemModel (6)

Name

Type

Access

Description

children

[object]

r

parent_object

GooCanvas.CanvasItemModelSimple

r

Class Details

class GooCanvas.CanvasGroupModel(**kwargs)
Bases:

GooCanvas.CanvasItemModelSimple

Abstract:

No

Structure:

GooCanvas.CanvasGroupModelClass

GooCanvas.CanvasGroupModel represents a group of items. Groups can be nested to any depth, to create a hierarchy of items. Items are ordered within each group, with later items being displayed above earlier items.

GooCanvas.CanvasGroupModel is a subclass of GooCanvas.CanvasItemModelSimple and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”. Setting a style property on a GooCanvas.CanvasGroupModel will affect all children of the GooCanvas.CanvasGroupModel (unless the children override the property setting).

GooCanvas.CanvasGroupModel implements the GooCanvas.CanvasItemModel interface, so you can use the GooCanvas.CanvasItemModel functions such as GooCanvas.CanvasItemModel.raise_() and GooCanvas.CanvasItemModel.rotate(), and the properties such as “visibility” and “pointer-events”.

To create a GooCanvas.CanvasGroupModel use goo_canvas_group_model_new().

To get or set the properties of an existing GooCanvas.CanvasGroupModel, use g_object_get() and g_object_set().

To respond to events such as mouse clicks on the group you must connect to the signal handlers of the corresponding GooCanvas.CanvasGroup objects. (See GooCanvas.Canvas.get_item() and GooCanvas.Canvas ::item-created.)

Property Details

GooCanvas.CanvasGroupModel.props.height
Name:

height

Type:

float

Default Value:

-1.0

Flags:

READABLE, WRITABLE

The height of the group, or -1 to use the default height

GooCanvas.CanvasGroupModel.props.width
Name:

width

Type:

float

Default Value:

-1.0

Flags:

READABLE, WRITABLE

The width of the group, or -1 to use the default width

GooCanvas.CanvasGroupModel.props.x
Name:

x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the group

GooCanvas.CanvasGroupModel.props.y
Name:

y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the group