Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GtkObject ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── GimpMemsizeEntry
GimpMemsizeEntry implements AtkImplementorIface, GtkBuildable and GtkOrientable.
Similar to a GimpSizeEntry but instead of lengths, this widget is used to let the user enter memory sizes. An option menu allows to switch between Kilobytes, Megabytes and Gigabytes. Used in the GIMP preferences dialog.
GtkWidget * gimp_memsize_entry_new (guint64 value
,guint64 lower
,guint64 upper
);
Creates a new GimpMemsizeEntry which is a GtkHBox with a GtkSpinButton and a GtkOptionMenu all setup to allow the user to enter memory sizes.
void gimp_memsize_entry_set_value (GimpMemsizeEntry *entry
,guint64 value
);
Sets the entry
's value. Please note that the GimpMemsizeEntry rounds
the value to full Kilobytes.
guint64
gimp_memsize_entry_get_value (GimpMemsizeEntry *entry
);
Retrieves the current value from a GimpMemsizeEntry.
“value-changed”
signalvoid user_function (GimpMemsizeEntry *gimpmemsizeentry, gpointer user_data)
Flags: Run First