Class: Gtk::ScaleButton

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#adjustmentGtk::Adjustment

Returns adjustment.

Returns:

#adjustment=(adjustment) ⇒ Gtk::Adjustment

Parameters:

Returns:

#iconsGtk::

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.

Returns:

#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.

Parameters:

Returns:

#minus_buttonGtk::Button

Retrieves the minus button of the Gtk::ScaleButton.

Returns:

  • (Gtk::Button)

    the minus button of the Gtk::ScaleButton as a #GtkButton

#new(size, min, max, step, icons) ⇒ Gtk::Widget

Creates a Gtk::ScaleButton, with a range between min and max, with a stepping of step.

Parameters:

  • size (Integer)

    a stock icon size (Gtk::IconSize)

  • min (Float)

    the minimum value of the scale (usually 0)

  • max (Float)

    the maximum value of the scale (usually 100)

  • step (Float)

    the stepping of value when a scroll-wheel event, or up/down arrow event occurs (usually 2)

  • icons (Array<String>)

    a nil-terminated array of icon names, or nil if you want to set the list later with gtk_scale_button_set_icons()

Returns:

#plus_buttonGtk::Button

Retrieves the plus button of the Gtk::ScaleButton.

Returns:

  • (Gtk::Button)

    the plus button of the Gtk::ScaleButton as a #GtkButton

Retrieves the popup of the Gtk::ScaleButton.

Returns:

#sizeGtk::IconSize

Returns size.

Returns:

#size=(size) ⇒ Gtk::IconSize

Parameters:

Returns:

#valueFloat

Returns value.

Returns:

  • (Float)

    value

#value=(value) ⇒ Float

Parameters:

  • value (Float)

Returns:

  • (Float)

    value

  • (Float)

    value