![]() |
![]() |
![]() |
GooCanvas Reference Manual | ![]() |
---|---|---|---|---|
#include <goocanvas.h> GooCanvasModel; GooCanvasModelIface; GooCanvasItem* goo_canvas_model_get_root_item (GooCanvasModel *model);
GooCanvasModel defines the interface that canvas models must implement.
Currently it consists of a single method which returns the root canvas item.
typedef struct _GooCanvasModel GooCanvasModel;
GooCanvasModel is a typedef used for objects that implement the GooCanvasModel interface.
(There is no actual GooCanvasModel struct, since it is only an interface. But using 'GooCanvasModel' is more helpful than using 'GObject'.)
typedef struct { GooCanvasItem* (* get_root_item) (GooCanvasModel *model); } GooCanvasModelIface;
GooCanvasModelIFace holds the virtual methods that make up the GooCanvasModel interface.
get_root_item () |
returns the root canvas item of the model. |
GooCanvasItem* goo_canvas_model_get_root_item (GooCanvasModel *model);
Returns the root canvas item of the model.
model : |
a GooCanvasModel. |
Returns : | the root canvas item. |