![]() |
![]() |
![]() |
Gwyddion Widgets Library Reference Manual | ![]() |
---|---|---|---|---|
#include <libgwydgets/gwydgets.h> GwyGraphCurves; GwyGraphCurvesClass; GtkWidget* gwy_graph_curves_new (GwyGraphModel *gmodel); void gwy_graph_curves_set_model (GwyGraphCurves *graph_curves, GwyGraphModel *gmodel); GwyGraphModel* gwy_graph_curves_get_model (GwyGraphCurves *graph_curves);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkTreeView +----GwyGraphCurves
GwyGraphCurves displays the list of GwyGraphModel curve properties in a table. While it is a GtkTreeView, it uses a simplistic tree model and its content is determined by the graph model.
typedef struct { GtkTreeViewClass parent_class; void (*reserved1)(void); void (*reserved2)(void); void (*reserved3)(void); void (*reserved4)(void); } GwyGraphCurvesClass;
GtkWidget* gwy_graph_curves_new (GwyGraphModel *gmodel);
Creates graph curve list widget based on information in graph model.
The GtkTreeModel and the columns follow the graph model and must not be changed manually.
gmodel : |
A graph model. It can be NULL .
|
Returns : | A new graph curve list. |
Since 2.5
void gwy_graph_curves_set_model (GwyGraphCurves *graph_curves, GwyGraphModel *gmodel);
Changes the graph model a graph curve list.
graph_curves : |
A graph curve list. |
gmodel : |
New graph model. |
Since 2.5
GwyGraphModel* gwy_graph_curves_get_model (GwyGraphCurves *graph_curves);
Gets the graph model a graph curve list displays.
graph_curves : |
A graph curve list. |
Returns : | The graph model associated with this GwyGraphCurves widget. |
Since 2.5