Gtk-- Reference: Gtk::Scale

Class Index | Cross Index | Namespace Index

# Class Gtk::Scale

A base class for GtkHScale and GtkVScale.
Contained in: Gtk
Derived from: Gtk::Range
Derived by: Gtk::HScale Gtk::VScale

#include <gtk--/scale.h>

### public function member index:
``emitable` `signal` `void`` | `draw_value` | `()`;
``gint`` | `get_digits` | `() `const``;
``gint`` | `get_value_width` | `() `const``;
``GtkScale`*` | `gtkobj` | `()`;
``const` `GtkScale`*` | `gtkobj` | `() `const``;
``static` `bool`` | `isA` | `(`Object`* `object`)`;
``void`` | `set_digits` | `(`gint` `digits`)`;
``void`` | `set_draw_value` | `(`gint` `draw_value`)`;
``void`` | `set_value_pos` | `(`GtkPositionType` `pos`)`;
``virtual`` | `~Scale` | `()`;
### protected function member index:
`` | `Scale` | `()`;
``virtual` `void`` | `draw_value_impl` | `()`;

## Description:

The `Gtk::Scale` widget is an abstract class, used only for deriving the subclasses ``Gtk`::`HScale`` and ``Gtk`::`VScale``.

## Function Member Descriptions:

Gtk::Scale::get_value_width - An internal function used to get the maximum width needed to display the value string.

``gint`` `get_value_width``() `const``;

> `Returns`: The maximum width needed to display the value string.

Gtk::Scale::gtkobj - Returns the underlaying gtk+ object.

``GtkScale`*` `gtkobj``()`;
Gtk::Scale::isA - Returns true if object is this type.

``static` `bool`` `isA``(`Object`* `object`)`;
Gtk::Scale::set_digits - Sets the number of decimal places that are displayed in the value.

``void`` `set_digits``(`gint` `digits`)`;

> `digits`: The number of decimal places to display, e.g. use 1 to display 1.0, 2 to display 1.00 etc.

Gtk::Scale::set_draw_value - Specifies whether the current value is displayed as a string next to the slider.

``void`` `set_draw_value``(`gint` `draw_value`)`;
Gtk::Scale::set_value_pos - Sets the position in which the current value is displayed.

``void`` `set_value_pos``(`GtkPositionType` `pos`)`;

> `pos`: The position in which the current value is displayed. Possible values are: `GTK_POS_LEFT`, `GTK_POS_RIGHT`, `GTK_POS_TOP`, or `GTK_POS_BOTTOM`.