Gimp::UI::SizeEntry

Gimp::UI::SizeEntry

This widget is used to enter pixel distances/sizes and resolutions.

You can specify the number of fields the widget should provide. For each field automatic mappings are performed between the field's "reference value" and it's "value".

There is a Gimp::UI::UnitMenu right of the entry fields which lets you specify the GimpUnit of the displayed values.

For each field, there can be one or two Gtk::SpinButton?'s to enter "value" and "reference value". If you specify show_refval as FALSE in new() there will be only one Gtk::SpinButton? and the Gimp::UI::UnitMenu will contain an item for selecting Gimp::UNIT_PIXEL.

The "reference value" is either of Gimp::UNIT_PIXEL or dpi, depending on which GimpSizeEntryUpdatePolicy you specify in new(). The "value" is either the size

in pixels mapped to the size in a real-world-unit (see Gimp::Unit) or the dpi

value mapped to pixels per real-world-unit.

Constants:

Gimp::UI::SizeEntry::UPDATE_NONE
Gimp::UI::SizeEntry::UPDATE_SIZE
Gimp::UI::SizeEntry::UPDATE_RESOLUTION
GimpSizeEntryUpdatePolicy

Class methods:

Gimp::UI::SizeEntry.new(number_of_fields, unit, unit_format, menu_show_pixels, menu_show_percent, show_refval, spinbutton_usize, update_policy)

Methods:

Gimp::UI::SizeEntry#grab_focus
-
Gimp::UI::SizeEntry#attach_label()
-
Gimp::UI::SizeEntry#unit
-
Gimp::UI::SizeEntry#unit=(val)
-
Gimp::UI::SizeEntry#set_resolution
-
Gimp::UI::SizeEntry#set_size
-
Gimp::UI::SizeEntry#get_value
-
Gimp::UI::SizeEntry#set_value
-
Gimp::UI::SizeEntry#set_refval_boundaries
-
Gimp::UI::SizeEntry#set_refval_digits
-
Gimp::UI::SizeEntry#get_refval
-
Gimp::UI::SizeEntry#set_refval
-
Gimp::UI::SizeEntry#add_field
-

Signals:

Gimp::UI::SizeEntry#value_changed
-
Gimp::UI::SizeEntry#refval_changed
-
Gimp::UI::SizeEntry#unit_changed
-
Last modified:2005/10/10 01:35:14
Keyword(s):
References:[Gimp::UI]