GooCanvasModel

GooCanvasModel — the canvas model interface.

Synopsis


#include <goocanvas.h>


            GooCanvasModel;
            GooCanvasModelIface;

GooCanvasItem* goo_canvas_model_get_root_item
                                            (GooCanvasModel *model);

Object Hierarchy


  GInterface
   +----GooCanvasModel

Prerequisites

GooCanvasModel requires GObject.

Known Implementations

GooCanvasModel is implemented by GooCanvasModelSimple.

Description

GooCanvasModel defines the interface that canvas models must implement.

Currently it consists of a single method which returns the root canvas item.

Details

GooCanvasModel

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'.)


GooCanvasModelIface

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.

goo_canvas_model_get_root_item ()

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.