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:

Gimp::UI::UnitMenu.new(format, unit, show_pixels = true, show_percent = true, show_custom = true)

Methods:

Gimp::UI::UnitMenu#unit
Gimp::UI::UnitMenu#unit=
-
Gimp::UI::UnitMenu#format
-
Gimp::UI::UnitMenu#show_pixels?
-
Gimp::UI::UnitMenu#show_percent?
-

Signals:

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