A Gtk::Scale is a slider control used to select a numeric value. To use it, you'll probably want to investigate the methods on its base class, Gtk::Range, in addition to the methods for Gtk::Scale itself. To set the value of a scale, you would normally use set_value(). To detect changes to the value, you would normally use signal_value_changed().
The Gtk::Scale widget is an abstract class, used only for deriving the subclasses Gtk::HScale and Gtk::VScale, so you should instantiate them instead.
Constructor & Destructor Documentation
virtual Gtk::Scale::~Scale
(
)
[virtual]
Gtk::Scale::Scale
(
)
[protected]
Member Function Documentation
virtual int Gtk::Scale::calc_digits_
(
double
step
)
[protected, virtual]
virtual void Gtk::Scale::draw_value_vfunc
(
)
[protected, virtual]
int Gtk::Scale::get_digits
(
)
const
Get the number of decimal digits.
bool Gtk::Scale::get_draw_value
(
)
const
Get whether the current value is displayed as a string next to the slider.
This also causes the adjustment to be rounded off so the retrieved value matches the value the user sees. Setting digits to 1 gives for example 1.0, 2 gives 1.00, etc.
void Gtk::Scale::set_draw_value
(
bool
draw_value = true
)
Set whether the current value is displayed as a string next to the slider.