Class: Gtk::ScaleButton
- Inherits:
-
Object
- Object
- Gtk::ScaleButton
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#adjustment ⇒ Gtk::Adjustment
Adjustment.
- #adjustment=(adjustment) ⇒ Gtk::Adjustment
-
#icons ⇒ Gtk::
The names of the icons to be used by the scale button.
-
#icons=(icons) ⇒ Gtk::
The names of the icons to be used by the scale button.
-
#minus_button ⇒ Gtk::Button
Retrieves the minus button of the Gtk::ScaleButton.
-
#new(size, min, max, step, icons) ⇒ Gtk::Widget
Creates a Gtk::ScaleButton, with a range between min and max, with a stepping of step.
-
#plus_button ⇒ Gtk::Button
Retrieves the plus button of the Gtk::ScaleButton.
-
#popup ⇒ Gtk::Widget
Retrieves the popup of the Gtk::ScaleButton.
-
#size ⇒ Gtk::IconSize
Size.
- #size=(size) ⇒ Gtk::IconSize
-
#value ⇒ Float
Value.
- #value=(value) ⇒ Float
Instance Method Details
#adjustment ⇒ Gtk::Adjustment
Returns adjustment.
#adjustment=(adjustment) ⇒ Gtk::Adjustment
#icons ⇒ Gtk::
The names of the icons to be used by the scale button. The first item in the array will be used in the button when the current value is the lowest value, the second item for the highest value. All the subsequent icons will be used for all the other values, spread evenly over the range of values.
If there’s only one icon name in the icons array, it will be used for all the values. If only two icon names are in the icons array, the first one will be used for the bottom 50% of the scale, and the second one for the top 50%.
It is recommended to use at least 3 icons so that the Gtk::ScaleButton reflects the current value of the scale better for the users.
#icons=(icons) ⇒ Gtk::
The names of the icons to be used by the scale button. The first item in the array will be used in the button when the current value is the lowest value, the second item for the highest value. All the subsequent icons will be used for all the other values, spread evenly over the range of values.
If there’s only one icon name in the icons array, it will be used for all the values. If only two icon names are in the icons array, the first one will be used for the bottom 50% of the scale, and the second one for the top 50%.
It is recommended to use at least 3 icons so that the Gtk::ScaleButton reflects the current value of the scale better for the users.
#minus_button ⇒ Gtk::Button
Retrieves the minus button of the Gtk::ScaleButton.
#new(size, min, max, step, icons) ⇒ Gtk::Widget
Creates a Gtk::ScaleButton, with a range between min and max, with a stepping of step.
#plus_button ⇒ Gtk::Button
Retrieves the plus button of the Gtk::ScaleButton.
#popup ⇒ Gtk::Widget
Retrieves the popup of the Gtk::ScaleButton.
#size ⇒ Gtk::IconSize
Returns size.
#size=(size) ⇒ Gtk::IconSize
#value ⇒ Float
Returns value.