GwyGraphModel

GwyGraphModel — Representation of a graph.

Synopsis




struct      GwyGraphModel;
struct      GwyGraphModelClass;
GObject*    gwy_graph_model_new             (GwyGraph *graph);
GtkWidget*  gwy_graph_new_from_model        (GwyGraphModel *gmodel);
gint        gwy_graph_model_get_n_curves    (GwyGraphModel *gmodel);
void        gwy_graph_model_add_curve       (GwyGraphModel *gmodel,
                                             GwyGraphCurveModel *curve);
void        gwy_graph_model_remove_all_curves
                                            (GwyGraphModel *gmodel);

Object Hierarchy


  GObject
   +----GwyGraphModel

Implemented Interfaces

GwyGraphModel implements GwySerializable and GwyWatchable.

Properties


  "n"                    gint                 : Read / Write
  "title"                gchararray           : Read / Write

Description

GwyGraphModel represents information about a graph necessary to fully reconstruct it. It will be meaningfully used by the new generation of graph widgets and should be mostly ignored for now.

Details

struct GwyGraphModel

struct GwyGraphModel;


struct GwyGraphModelClass

struct GwyGraphModelClass {

    GObjectClass parent_class;

    void (*value_changed)(GwyGraphModel *gmodel);  /* XXX: only formal */

    gpointer reserved1;
    gpointer reserved2;
    gpointer reserved3;
    gpointer reserved4;
    gpointer reserved5;
};


gwy_graph_model_new ()

GObject*    gwy_graph_model_new             (GwyGraph *graph);

Creates a new graph model.

graph : A graph to represent.
Returns : New graph model as a GObject.

gwy_graph_new_from_model ()

GtkWidget*  gwy_graph_new_from_model        (GwyGraphModel *gmodel);

gmodel :
Returns :

gwy_graph_model_get_n_curves ()

gint        gwy_graph_model_get_n_curves    (GwyGraphModel *gmodel);

gmodel :
Returns :

gwy_graph_model_add_curve ()

void        gwy_graph_model_add_curve       (GwyGraphModel *gmodel,
                                             GwyGraphCurveModel *curve);

gmodel :
curve :

gwy_graph_model_remove_all_curves ()

void        gwy_graph_model_remove_all_curves
                                            (GwyGraphModel *gmodel);

gmodel :

Properties

"n" (gint : Read / Write)

Changed number of curves in graph.

"title" (gchararray : Read / Write)

Changed title of graph.