Widgets de escala

Gtk::Scale widgets (or "sliders") allow the user to visually select and manipulate a value within a specific range. You might use one, for instance, to adjust the magnification level on a zoomed preview of a picture, or to control the brightness of a colour, or to specify the number of minutes of inactivity before a screensaver takes over the screen.

As with Scrollbars, the orientation can be either horizontal or vertical. The default constructor creates an Adjustment with all of its values set to 0.0. This isn't useful so you will need to set some Adjustment details to get meaningful behaviour.

7.2.1. Métodos úteis

Widgets de Scala pode exibir seu valor atual com um número próximo à calha. Por padrão, eles mostram o valor, você pode mudar isso com o método set_draw_value().

The value displayed by a scale widget is rounded to one decimal point by default, as is the value field in its Gtk::Adjustment. You can change this with the set_digits() method.

Além disso, o valor pode ser desenhado em diferentes posições em relação à calha, especificado pelo método set_value_pos().

Reference