Gimp::UI::UnitMenu
Gimp::UI::UnitMenu
This widget provides a Gtk::OptionMenu? which contains a list of GimpUnit's.
You can specify the string that will be displayed for each unit by passing a printf-like format string to gimp_unit_menu_new().
The constructor also lets you choose if the menu should contain items for GIMP::UNIT_PIXEL, GIMP::UNIT_PERCENT and a "More..." item which will pop up a dialog for selecting user-defined units.
Whenever the user selects a unit from the menu or the dialog, the "unit_changed" signal will be emitted.
Superclass
Gtk::OptionMenu?
Class methods:
Methods:
Gimp::UI::UnitMenu#unit
Gimp::UI::UnitMenu#unit=
- -
Gimp::UI::UnitMenu#format
- -
Gimp::UI::UnitMenu#show_pixels?
- -
Gimp::UI::UnitMenu#show_percent?
- -
Keyword(s):
References:[Gimp] [Gimp::UI] [Gimp::UI::SizeEntry]