GooCanvasRectView

GooCanvasRectView — a view for a GooCanvasRect item.

Synopsis


#include <goocanvas.h>


            GooCanvasRectView;

GooCanvasItemView* goo_canvas_rect_view_new (GooCanvasView *canvas_view,
                                             GooCanvasItemView *parent_view,
                                             GooCanvasRect *rect);

Object Hierarchy


  GObject
   +----GooCanvasItemViewSimple
         +----GooCanvasRectView

Implemented Interfaces

GooCanvasRectView implements GooCanvasItemView.

Description

GooCanvasRectView represents a view of a GooCanvasRect item.

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

GooCanvasRectView

typedef struct _GooCanvasRectView GooCanvasRectView;

The GooCanvasRectView struct contains private data only.


goo_canvas_rect_view_new ()

GooCanvasItemView* goo_canvas_rect_view_new (GooCanvasView *canvas_view,
                                             GooCanvasItemView *parent_view,
                                             GooCanvasRect *rect);

Creates a new GooCanvasRectView for the given GooCanvasRect item.

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.
rect : the rect item.
Returns : a new GooCanvasRectView.