| Top |
| GwyFile * | gwy_app_data_window_get_file () |
| GwyDataKind | gwy_app_data_window_get_data_kind () |
| gint | gwy_app_data_window_get_id () |
| const gchar * | gwy_app_data_window_get_accel_root () |
| #define | GWY_APP_DATA_WINDOW_GET_INTERFACE() |
GwyAppDataWindow is an abstract interface provided by application-level windows showing various data objects, such as GwyAppImageWindow and GwyAppGraphWindow.
GwyFile *
gwy_app_data_window_get_file (GwyAppDataWindow *window);
Gets the file containing the data displayed in a window.
GwyDataKind
gwy_app_data_window_get_data_kind (GwyAppDataWindow *window);
Gets the kind of data displayed in a window.
gint
gwy_app_data_window_get_id (GwyAppDataWindow *window);
Gets the numerical id of data item displayed in a window.
const gchar *
gwy_app_data_window_get_accel_root (GwyAppDataWindow *window);
Gets root of accelerator map entries for a window displaying some data.
The returned string is the "<WINDOWTYPE>" part of the accelerator path for the particular window, which GTK+ defines as a unique application-specific identifier that corresponds to the kind of window the accelerator is being used in. Many data windows of the same kind can exist simultaneously and they all have the same prefix, for example all volume data windows have the prefix "<volume>".
#define GWY_APP_DATA_WINDOW_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), GWY_TYPE_APP_DATA_WINDOW, GwyAppDataWindowInterface))
Gets the application data window interface for an object implementing this interface.
You can use the interface to call the interface's methods for the object. However, all are available as
gwy_app_data_window_get_data_kind() and similar function.
typedef struct _GwyAppDataWindow GwyAppDataWindow;
Formal type of application data windows.
struct GwyAppDataWindowInterface {
GwyFile* (*get_file) (GwyAppDataWindow *app_data_window);
GwyDataKind (*get_data_kind) (GwyAppDataWindow *app_data_window);
gint (*get_id) (GwyAppDataWindow *app_data_window);
const gchar* (*get_accel_root)(GwyAppDataWindow *app_data_window);
};