GooCanvasGroupView

GooCanvasGroupView — a view for a group GooCanvasItem.

Synopsis


#include <goocanvas.h>


            GooCanvasGroupView;

GooCanvasItemView* goo_canvas_group_view_new
                                            (GooCanvasView *canvas_view,
                                             GooCanvasItemView *parent_view,
                                             GooCanvasItem *group);
void        goo_canvas_group_view_set_group (GooCanvasGroupView *group_view,
                                             GooCanvasItem *group);

Object Hierarchy


  GObject
   +----GooCanvasGroupView

Implemented Interfaces

GooCanvasGroupView implements GooCanvasItemView.

Description

GooCanvasGroupView represents a view of a group GooCanvasItem (typically a GooCanvasGroup).

It implements the GooCanvasItemView interface, so you can use the GooCanvasItemView functions such as goo_canvas_item_view_get_item() and goo_canvas_item_view_get_bounds().

Applications do not normally need to create item views themselves, as they are created automatically by GooCanvasView when needed.

To respond to events such as mouse clicks in the ellipse view you can connect to one of the GooCanvasItemView signals such as GooCanvasItemView::button-press-event. You can connect to these signals when the view is created. (See goo_canvas_view_get_item_view() and GooCanvasView::item-view-created.)

Details

GooCanvasGroupView

typedef struct _GooCanvasGroupView GooCanvasGroupView;

The GooCanvasGroupView struct contains private data only.


goo_canvas_group_view_new ()

GooCanvasItemView* goo_canvas_group_view_new
                                            (GooCanvasView *canvas_view,
                                             GooCanvasItemView *parent_view,
                                             GooCanvasItem *group);

Creates a new GooCanvasGroupView for the given GooCanvasItem.

This is not normally used by application code, as the views are created automatically by GooCanvasView.

canvas_view : the canvas view.
parent_view : the parent view.
group : the group item.
Returns : a new GooCanvasGroupView.

goo_canvas_group_view_set_group ()

void        goo_canvas_group_view_set_group (GooCanvasGroupView *group_view,
                                             GooCanvasItem *group);

This function is only intended to be used by subclasses during construction of the item views.

It sets the underlying group item, creates any necessary child views, and sets up signal handlers to update child views as the underlying items are changed.

group_view : a GooCanvasGroupView.
group : a GooCanvasItem.