![]() |
![]() |
![]() |
GIMP Widgets Library Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
GimpMemsizeEntry; GtkWidget * gimp_memsize_entry_new (guint64 value
,guint64 lower
,guint64 upper
); void gimp_memsize_entry_set_value (GimpMemsizeEntry *entry
,guint64 value
); guint64 gimp_memsize_entry_get_value (GimpMemsizeEntry *entry
);
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. A combo box allows one 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.
|
the initial value (in Bytes) |
|
the lower limit for the value (in Bytes) |
|
the upper limit for the value (in Bytes) |
Returns : |
Pointer to the new GimpMemsizeEntry. |
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.
|
a GimpMemsizeEntry |
|
the new value (in Bytes) |
guint64 gimp_memsize_entry_get_value (GimpMemsizeEntry *entry
);
Retrieves the current value from a GimpMemsizeEntry.
|
a GimpMemsizeEntry |
Returns : |
the current value of entry (in Bytes). |
"value-changed"
signalvoid user_function (GimpMemsizeEntry *gimpmemsizeentry,
gpointer user_data) : Run First
|
the object which received the signal. |
|
user data set when the signal handler was connected. |