GooCanvas.CanvasGroup

g GObject.GInterface GObject.GInterface GooCanvas.CanvasItem GooCanvas.CanvasItem GObject.GInterface->GooCanvas.CanvasItem GObject.Object GObject.Object GooCanvas.CanvasItemSimple GooCanvas.CanvasItemSimple GObject.Object->GooCanvas.CanvasItemSimple GooCanvas.CanvasGroup GooCanvas.CanvasGroup GooCanvas.CanvasItem->GooCanvas.CanvasItemSimple GooCanvas.CanvasItemSimple->GooCanvas.CanvasGroup

Subclasses:

GooCanvas.CanvasTable

Methods

Inherited:

GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)

Structs:

GObject.ObjectClass (5)

Virtual Methods

Inherited:

GooCanvas.CanvasItemSimple (4), GObject.Object (7), GooCanvas.CanvasItem (44)

Properties

Inherited:

GooCanvas.CanvasItemSimple (23), GooCanvas.CanvasItem (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.CanvasItem (14)

Fields

Inherited:

GObject.Object (1), GooCanvas.CanvasItem (14)

Name

Type

Access

Description

items

[object]

r

parent_object

GooCanvas.CanvasItemSimple

r

Class Details

class GooCanvas.CanvasGroup(**kwargs)
Bases:

GooCanvas.CanvasItemSimple

Abstract:

No

Structure:

GooCanvas.CanvasGroupClass

GooCanvas.CanvasGroup 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.CanvasGroup is a subclass of GooCanvas.CanvasItemSimple and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”. Setting a style property on a GooCanvas.CanvasGroup will affect all children of the GooCanvas.CanvasGroup (unless the children override the property setting).

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

If the GooCanvas.CanvasGroup :width and GooCanvas.CanvasGroup :height properties are set to positive values then the group is clipped to the given size.

To create a GooCanvas.CanvasGroup use goo_canvas_group_new().

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

Property Details

GooCanvas.CanvasGroup.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.CanvasGroup.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.CanvasGroup.props.x
Name:

x

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The x coordinate of the group

GooCanvas.CanvasGroup.props.y
Name:

y

Type:

float

Default Value:

0.0

Flags:

READABLE, WRITABLE

The y coordinate of the group