GooCanvas.CanvasGroup¶
- Subclasses:
Methods¶
- Inherited:
GooCanvas.CanvasItemSimple (9), GObject.Object (37), GooCanvas.CanvasItem (48)
- Structs:
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The height of the group, or -1 to use the default height |
||
r/w |
The width of the group, or -1 to use the default width |
||
r/w |
The x coordinate of the group |
||
r/w |
The y coordinate of the group |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
items |
[ |
r |
|
parent_object |
r |
Class Details¶
- class GooCanvas.CanvasGroup(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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 ofGooCanvas.CanvasItemSimple
and so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”. Setting a style property on aGooCanvas.CanvasGroup
will affect all children of theGooCanvas.CanvasGroup
(unless the children override the property setting).GooCanvas.CanvasGroup
implements theGooCanvas.CanvasItem
interface, so you can use theGooCanvas.CanvasItem
functions such asGooCanvas.CanvasItem.raise_
() andGooCanvas.CanvasItem.rotate
(), and the properties such as “visibility” and “pointer-events”.If the
GooCanvas.CanvasGroup
:width
andGooCanvas.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¶
-
The height of the group, or -1 to use the default height
- GooCanvas.CanvasGroup.props.width¶
-
The width of the group, or -1 to use the default width
- GooCanvas.CanvasGroup.props.x¶
-
The x coordinate of the group