<html> <head><title>Gtk-- Reference: Gtk::Scale</title></head> <body bgcolor="#F0F0F0" text="#000000" link="#0000FF" vlink="#000077" alink="#FF0000"> <table align=center border=0 cellspacing=10> <tr> <td><a href="class_index.html">Class Index</a></td> <td><a href="cross_index.html">Cross Index</a></td> <td><a href="name_index.html">Namespace Index</a></td> </table> <h1 align=center>Class Gtk::Scale</h1><p> <b> A base class for GtkHScale and GtkVScale.</b><br> Contained in: <a href="Gtk.html">Gtk</a><br> Derived from: <a href="Gtk%3A%3ARange.html">Gtk::Range</a> <br> Derived by: <a href="Gtk::HScale.html">Gtk::HScale</a> <a href="Gtk::VScale.html">Gtk::VScale</a> <p> #include <gtk--/scale.h> <p> <hr noshade> <table border=0> <tr><td colspan=3><h3>public function member index:</h3></td> <tr valign=top><td align=right><tt><tt>emitable</tt> <tt>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2618"><tt><font color=blue><b>draw_value</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>gint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2613"><tt><font color=blue><b>get_digits</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>gint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2617"><tt><font color=blue><b>get_value_width</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>GtkScale</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2609"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>GtkScale</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2610"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2611"><tt><font color=blue><b>isA</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2614"><tt><font color=blue><b>set_digits</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>digits</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2615"><tt><font color=blue><b>set_draw_value</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>draw_value</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2616"><tt><font color=blue><b>set_value_pos</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkPositionType</font></tt> <tt><font color=blue>pos</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2612"><tt><font color=blue><b>~Scale</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td><tr><td colspan=3><h3>protected function member index:</h3></td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2619"><tt><font color=blue><b>Scale</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AScale.html#2620"><tt><font color=blue><b>draw_value_impl</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> The <tt><font color=navy><b>Gtk::Scale</b></font></tt> widget is an abstract class, used only for deriving the subclasses <tt><a href="Gtk.html"><tt><font color=navy><b>Gtk</b></font></tt></a>::<a href="Gtk%3A%3AHScale.html"><tt><font color=navy><b>HScale</b></font></tt></a></tt> and <tt><a href="Gtk.html"><tt><font color=navy><b>Gtk</b></font></tt></a>::<a href="Gtk%3A%3AVScale.html"><tt><font color=navy><b>VScale</b></font></tt></a></tt>.<br> <p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="2617"><font size=+1><b>Gtk::Scale::get_value_width</b></font></a> - An internal function used to get the maximum width needed to display the value string.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>gint</font></tt></tt> <a href="Gtk%3A%3AScale.html#2617"><tt><font color=blue><b>get_value_width</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><blockquote> <tt><font color=blue>Returns</font></tt>: The maximum width needed to display the value string.</blockquote> <br><br> <a name="2609"><font size=+1><b>Gtk::Scale::gtkobj</b></font></a> - Returns the underlaying gtk+ object.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkScale</font></tt>*</tt> <a href="Gtk%3A%3AScale.html#2609"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br> <a name="2611"><font size=+1><b>Gtk::Scale::isA</b></font></a> - Returns true if object is this type.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3AScale.html#2611"><tt><font color=blue><b>isA</b></font></tt></a><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;<br><br> <a name="2614"><font size=+1><b>Gtk::Scale::set_digits</b></font></a> - Sets the number of decimal places that are displayed in the value.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AScale.html#2614"><tt><font color=blue><b>set_digits</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>digits</font></tt>)</tt>;<br><blockquote> <tt><font color=blue>digits</font></tt>: The number of decimal places to display, e.g. use 1 to display 1.0, 2 to display 1.00 etc.</blockquote> <br><br> <a name="2615"><font size=+1><b>Gtk::Scale::set_draw_value</b></font></a> - Specifies whether the current value is displayed as a string next to the slider.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AScale.html#2615"><tt><font color=blue><b>set_draw_value</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>draw_value</font></tt>)</tt>;<br><br> <a name="2616"><font size=+1><b>Gtk::Scale::set_value_pos</b></font></a> - Sets the position in which the current value is displayed.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AScale.html#2616"><tt><font color=blue><b>set_value_pos</b></font></tt></a><tt>(<tt><font color=navy>GtkPositionType</font></tt> <tt><font color=blue>pos</font></tt>)</tt>;<br><blockquote> <tt><font color=blue>pos</font></tt>: The position in which the current value is displayed. Possible values are: <tt><font color=green>GTK_POS_LEFT</font></tt>, <tt><font color=green>GTK_POS_RIGHT</font></tt>, <tt><font color=green>GTK_POS_TOP</font></tt>, or <tt><font color=green>GTK_POS_BOTTOM</font></tt>.</blockquote> <br><br> <hr noshade> </html>