![]() |
![]() |
![]() |
GooCanvas Reference Manual | ![]() |
---|---|---|---|---|
#include <goocanvas.h> GooCanvasGroup; GooCanvasItem* goo_canvas_group_new (GooCanvasItem *parent); void goo_canvas_group_set_model (GooCanvasGroup *group, GooCanvasModel *model);
GooCanvasGroup 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.
GooCanvasGroup implements the GooCanvasItem interface, so you can use the
GooCanvasItem functions such as goo_canvas_item_raise()
and
goo_canvas_item_rotate()
, and the properties such as "visibility" and
"pointer-events".
To create a GooCanvasGroup use goo_canvas_group_new()
.
To get or set the properties of an existing GooCanvasGroup, 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 GooCanvasGroupView objects.
(See goo_canvas_view_get_item_view()
and GooCanvasView::item-view-created.)
typedef struct _GooCanvasGroup GooCanvasGroup;
The GooCanvasGroup struct contains private data only.
GooCanvasItem* goo_canvas_group_new (GooCanvasItem *parent);
Creates a new group item.
parent : |
the parent item, or NULL . If a parent is specified, it will assume
ownership of the item, and the item will automatically be freed when it is
removed from the parent. Otherwise call g_object_unref() to free it.
|
Returns : | a new group item. |
void goo_canvas_group_set_model (GooCanvasGroup *group, GooCanvasModel *model);
Sets the model of the group.
This is only intended to be used by implementors of GooCanvasModel, to set the model of the root group.
group : |
a GooCanvasGroup. |
model : |
the GooCanvasModel of the group. |