![]() | ![]() | ![]() | Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwyGraphModelGwyGraphModel — Representation of a graph. |
GwyGraphModel; 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.
typedef struct { GObjectClass parent_class; void (*value_changed)(GwyGraphModel *gmodel); /* XXX: only formal */ gpointer reserved1; gpointer reserved2; gpointer reserved3; gpointer reserved4; gpointer reserved5; } GwyGraphModelClass;
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 : |
"n" gint : Read / Write
Changed number of curves in graph.
Allowed values: [0,100]
Default value: 0
"title" gchararray : Read / Write
Changed title of graph.
Default value: "new graph"
<< GwyGraph | GwyGraphCurveModel >> |