![]() |
![]() |
![]() |
Gwyddion Widgets Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
#include <libgwydgets/gwydgets.h> struct GwyGraphData; struct GwyGraphDataClass; GtkWidget * gwy_graph_data_new (GwyGraphModel *gmodel
); void gwy_graph_data_set_model (GwyGraphData *graph_data
,GwyGraphModel *gmodel
); GwyGraphModel * gwy_graph_data_get_model (GwyGraphData *graph_data
);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkTreeView +----GwyGraphData
GwyGraphData displays data values from GwyGraphModel curves in a table. While it is a GtkTreeView, it uses a dummy tree model (GwyNullStore) and its content is determined by the graph model.
struct GwyGraphDataClass { GtkTreeViewClass parent_class; void (*reserved1)(void); void (*reserved2)(void); void (*reserved3)(void); void (*reserved4)(void); };
GtkWidget * gwy_graph_data_new (GwyGraphModel *gmodel
);
Creates graph_data widget based on information in graph model.
The GtkTreeModel and the columns follow the graph model and must not be changed manually.
|
A graph_data model. It can be NULL . |
Returns : |
A new graph_data widget. |
void gwy_graph_data_set_model (GwyGraphData *graph_data
,GwyGraphModel *gmodel
);
Changes the graph model a graph data table displays.
|
A graph data widget. |
|
New graph_data model. |
GwyGraphModel * gwy_graph_data_get_model (GwyGraphData *graph_data
);
Gets the graph model a graph data table displays.
|
A graph_data widget. |
Returns : |
The graph model associated with this GwyGraphData widget. |