Widgets de intervalos
Gtk::Scale e Gtk::Scrollbar ambos herdam de Gtk::Range e compartilham muitas funcionalidades. Eles contêm uma "calha" e um "deslizante" (às vezes chamado "botão deslizante" em outros ambientes GUI). Arrastando o controle deslizante com o ponteiro movendo dentro da calha, enquanto clica nos avanços da calha o controle desliza para a localização do clique, quer inteiramente, quer por um valor designado, dependendo de qual botão do mouse é usado. Este deve ser um comportamento de rolagem familiar.
As will be explained in the Adjustment section, all Range widgets are associated with a Adjustment object. To change the lower, upper, and current values used by the widget you need to use the methods of its Adjustment, which you can get with the get_adjustment() method. The Range widgets' default constructors create an Adjustment automatically, or you can specify an existing Adjustment, maybe to share it with another widget. See the Adjustments section for further details.
- 6.1. Widgets de barra de rolagem
- 6.2. Widgets de escala
- 6.3. Exemplo