![]() |
![]() |
![]() |
Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwyDataWindowGwyDataWindow — Data display window |
GwyDataWindow; GwyDataWindowClass; GtkWidget* gwy_data_window_new (GwyDataView *data_view); GwyDataView* gwy_data_window_get_data_view (GwyDataWindow *data_window); GtkWidget* gwy_data_window_get_color_axis (GwyDataWindow *data_window); GwyContainer* gwy_data_window_get_data (GwyDataWindow *data_window); void gwy_data_window_set_zoom (GwyDataWindow *data_window, gint izoom); gchar* gwy_data_window_get_base_name (GwyDataWindow *data_window); GtkWidget* gwy_data_window_get_ul_corner_widget (GwyDataWindow *data_window); void gwy_data_window_set_ul_corner_widget (GwyDataWindow *data_window, GtkWidget *corner); void gwy_data_window_class_set_tooltips (GtkTooltips *tips); GtkTooltips* gwy_data_window_class_get_tooltips (void);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GwyDataWindow
"title-changed" void user_function (GwyDataWindow *gwydatawindow, gpointer user_data);
GwyDataWindow encapsulates a GwyDataView together with other controls.
You can create a data window for a data view with gwy_data_window_new()
.
typedef struct { GtkWindowClass parent_class; void (*title_changed)(GwyDataWindow *data_window); gpointer reserved1; gpointer reserved2; } GwyDataWindowClass;
GtkWidget* gwy_data_window_new (GwyDataView *data_view);
Creates a new data displaying window.
data_view : |
A GwyDataView containing the data-displaying widget to show. |
Returns : | A newly created widget, as GtkWidget. |
GwyDataView* gwy_data_window_get_data_view (GwyDataWindow *data_window);
Returns the data view widget a data window currently shows.
data_window : |
A data view window. |
Returns : | The currently shown data view. |
GtkWidget* gwy_data_window_get_color_axis (GwyDataWindow *data_window);
Returns the color axis widget displayed by a data window.
data_window : |
A data view window. |
Returns : | The color axis. |
GwyContainer* gwy_data_window_get_data (GwyDataWindow *data_window);
Returns the data for the data view a data window currently shows.
data_window : |
A data view window. |
Returns : | The data as GwyContainer. |
void gwy_data_window_set_zoom (GwyDataWindow *data_window, gint izoom);
Sets the zoom of a data window to izoom
.
When izoom
is -1 it zooms out; when izoom
is 1 it zooms out.
Otherwise the new zoom value is set to izoom
/10000.
data_window : |
A data window. |
izoom : |
The new zoom value (as an integer). |
gchar* gwy_data_window_get_base_name (GwyDataWindow *data_window);
Creates a string usable as a data_window
window name/title.
This is the prefered data window representation in option menus, infoboxes, etc.
data_window : |
A data window. |
Returns : | The window name as a newly allocated string. It should be freed when no longer needed. |
GtkWidget* gwy_data_window_get_ul_corner_widget (GwyDataWindow *data_window);
Returns the upper left corner widget of data_window
.
data_window : |
A data window. |
Returns : | The upper left corner widget as a GtkWidget, NULL if there is
no such widget.
|
void gwy_data_window_set_ul_corner_widget (GwyDataWindow *data_window, GtkWidget *corner);
Sets the widget in upper left corner of a data window to corner
.
data_window : |
A data window. |
corner : |
A widget to set as upper left corner widget, many be NULL to
just remove any eventual existing one.
|
void gwy_data_window_class_set_tooltips (GtkTooltips *tips);
Sets the tooltips object to use for adding tooltips to data window parts.
This is a class method. It affects only newly cerated data windows, existing data windows will continue to use the tooltips they were constructed with.
If no class tooltips object is set before first GwyDataWindow is created,
the class instantiates one on its own. You can normally obtain it with
gwy_data_window_class_get_tooltips()
then. The class takes a reference on
the tooltips in either case.
tips : |
Tooltips object GwyDataWindow's should use for setting tooltips.
A NULL value disables tooltips altogether.
|
GtkTooltips* gwy_data_window_class_get_tooltips (void);
Gets the tooltips object used for adding tooltips to Data window parts.
Returns : | The GtkTooltips object. |
void user_function (GwyDataWindow *gwydatawindow, gpointer user_data);
The ::title-changed signal is emitted when the title of GwyDataWindow changes.
gwydatawindow : |
The GwyDataWindow which received the signal. |
user_data : |
user data set when the signal handler was connected. |
<< Data Windows and Views | GwyDataView >> |