| Gwyddion Widgets Library Reference Manual |
|---|
GwyGraphModel — Representation of a graph.
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);
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.
struct GwyGraphModelClass {
GObjectClass parent_class;
void (*value_changed)(GwyGraphModel *gmodel); /* XXX: only formal */
gpointer reserved1;
gpointer reserved2;
gpointer reserved3;
gpointer reserved4;
gpointer reserved5;
};
GObject* gwy_graph_model_new (GwyGraph *graph);
Creates a new graph model.
| graph : | A graph to represent. |
| Returns : | New graph model as a GObject. |
GtkWidget* gwy_graph_new_from_model (GwyGraphModel *gmodel);
| gmodel : | |
| Returns : |
gint gwy_graph_model_get_n_curves (GwyGraphModel *gmodel);
| gmodel : | |
| Returns : |
void gwy_graph_model_add_curve (GwyGraphModel *gmodel, GwyGraphCurveModel *curve);
| gmodel : | |
| curve : |
void gwy_graph_model_remove_all_curves
(GwyGraphModel *gmodel);
| gmodel : |
| << GwyGraph | GwyGraphCurveModel >> |