![]() | ![]() | ![]() | Gwyddion Widgets Library Reference Manual | ![]() |
---|
GwyToolbox —
struct GwyToolbox; struct GwyToolboxClass; GtkWidget* gwy_toolbox_new (gint max_width); GtkWidget* gwy_toolbox_append (GwyToolbox *toolbox, GType type, GtkWidget *widget, const char *tooltip_text, const char *tooltip_private_text, const gchar *stock_id, GtkSignalFunc callback, gpointer user_data);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkTable +----GwyToolbox
struct GwyToolboxClass { GtkTableClass parent_class; gpointer reserved1; gpointer reserved2; };
GtkWidget* gwy_toolbox_new (gint max_width);
Creates a new GwyToolbox.
max_width : | The maximum width of the toolbox (in item count). |
Returns : | The new toolbox as a GtkWidget. |
GtkWidget* gwy_toolbox_append (GwyToolbox *toolbox, GType type, GtkWidget *widget, const char *tooltip_text, const char *tooltip_private_text, const gchar *stock_id, GtkSignalFunc callback, gpointer user_data);
Adds a widget to toolbox.
toolbox : | A GwyToolbox. |
type : | Widget type to add (only a few are supported). |
widget : | Group widget for radio buttons. |
tooltip_text : | Widget tooltip text. |
tooltip_private_text : | Private tooltip text (deprecated). |
stock_id : | Icon stock id. |
callback : | Widget activation callback. The callback is connected swapped. |
user_data : | User data to pass to callback. |
Returns : | The newly added widget. |
<< GwyStatusbar | GwyValUnit >> |