GooCanvas.CanvasGroupModel¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
Virtual Methods¶
- Inherited:
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 |
|---|---|---|---|
children |
[ |
r |
|
parent_object |
r |
Class Details¶
- class GooCanvas.CanvasGroupModel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GooCanvas.CanvasGroupModelrepresents 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.CanvasGroupModelis a subclass ofGooCanvas.CanvasItemModelSimpleand so inherits all of the style properties such as “stroke-color”, “fill-color” and “line-width”. Setting a style property on aGooCanvas.CanvasGroupModelwill affect all children of theGooCanvas.CanvasGroupModel(unless the children override the property setting).GooCanvas.CanvasGroupModelimplements theGooCanvas.CanvasItemModelinterface, so you can use theGooCanvas.CanvasItemModelfunctions such asGooCanvas.CanvasItemModel.raise_() andGooCanvas.CanvasItemModel.rotate(), and the properties such as “visibility” and “pointer-events”.To create a
GooCanvas.CanvasGroupModeluse 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.CanvasGroupobjects. (SeeGooCanvas.Canvas.get_item() andGooCanvas.Canvas::item-created.)
Property Details¶
- GooCanvas.CanvasGroupModel.props.height¶
-
The height of the group, or -1 to use the default height
- GooCanvas.CanvasGroupModel.props.width¶
-
The width of the group, or -1 to use the default width
- GooCanvas.CanvasGroupModel.props.x¶
-
The x coordinate of the group