![]() |
![]() |
![]() |
Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwyGraphWindowGwyGraphWindow — |
GwyGraphWindow; GwyGraphWindowClass; GtkWidget* gwy_graph_window_new (GwyGraph *graph); GtkWidget* gwy_graph_window_get_graph (GwyGraphWindow *graphwindow); void gwy_graph_window_class_set_tooltips (GtkTooltips *tips); GtkTooltips* gwy_graph_window_class_get_tooltips (void);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GwyGraphWindow
typedef struct { GtkWindowClass parent_class; gpointer reserved1; gpointer reserved2; gpointer reserved3; gpointer reserved4; } GwyGraphWindowClass;
GtkWidget* gwy_graph_window_new (GwyGraph *graph);
Creates a new window showind graph.
graph : | A GwyGraph object containing the graph. |
Returns : | A newly created widget, as GtkWidget. |
GtkWidget* gwy_graph_window_get_graph (GwyGraphWindow *graphwindow);
graphwindow : | |
Returns : |
void gwy_graph_window_class_set_tooltips (GtkTooltips *tips);
Sets the tooltips object to use for adding tooltips to graph window parts.
This is a class method. It affects only newly cerated graph windows, existing graph windows will continue to use the tooltips they were constructed with.
If no class tooltips object is set before first GwyGraphWindow is created, the class instantiates one on its own. You can normally obtain it with gwy_graph_window_class_get_tooltips() then. The class takes a reference on the tooltips in either case.
tips : | Tooltips object GwyGraphWindow's should use for setting tooltips. A NULL value disables tooltips altogether. |
GtkTooltips* gwy_graph_window_class_get_tooltips (void);
Gets the tooltips object used for adding tooltips to Graph window parts.
Returns : | The GtkTooltips object. |
<< GwyGraph | GwyGraphModel >> |