<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>gtkmm: Gtk::Scale Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm <span id="projectnumber">2.24.4</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a> </li> <li class="navelem"><a class="el" href="classGtk_1_1Scale.html">Scale</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gtk::Scale Class Reference<div class="ingroups"><a class="el" href="group__Widgets.html">Widgets</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gtk::Scale" --><!-- doxytag: inherits="Gtk::Range" --> <p>Abstract base clase for <a class="el" href="classGtk_1_1HScale.html" title="A horizontal slider for selecting values.">Gtk::HScale</a> and <a class="el" href="classGtk_1_1VScale.html" title="A vertical slider for selecting values.">Gtk::VScale</a>. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Gtk::Scale:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1Scale__inherit__graph.png" border="0" usemap="#Gtk_1_1Scale_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1Scale_inherit__map" id="Gtk_1_1Scale_inherit__map"> <area shape="rect" id="node17" href="classGtk_1_1HScale.html" title="A horizontal slider for selecting values." alt="" coords="28,547,124,576"/><area shape="rect" id="node19" href="classGtk_1_1VScale.html" title="A vertical slider for selecting values." alt="" coords="148,547,244,576"/><area shape="rect" id="node2" href="classGtk_1_1Range.html" title="Base class for widgets which visualize an adjustment." alt="" coords="91,392,181,421"/><area shape="rect" id="node4" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="89,315,183,344"/><area shape="rect" id="node6" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node8" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node10" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node12" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/><area shape="rect" id="node14" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="139,237,272,267"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for Gtk::Scale:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1Scale__coll__graph.png" border="0" usemap="#Gtk_1_1Scale_coll__map" alt="Collaboration graph"/></div> <map name="Gtk_1_1Scale_coll__map" id="Gtk_1_1Scale_coll__map"> <area shape="rect" id="node2" href="classGtk_1_1Range.html" title="Base class for widgets which visualize an adjustment." alt="" coords="91,392,181,421"/><area shape="rect" id="node4" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="89,315,183,344"/><area shape="rect" id="node6" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node8" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node10" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node12" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/><area shape="rect" id="node14" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="139,237,272,267"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGtk_1_1Scale-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a4991feb9012f28ac5d42219bc955d1af">~Scale</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GtkScale* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#afc7d5fb5223af20c105c473dff2cb5bf">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#afc7d5fb5223af20c105c473dff2cb5bf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GtkScale* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a07df5a12a5e4a27aff06cbe9e66e3d86">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a07df5a12a5e4a27aff06cbe9e66e3d86"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a7cd895f5c2f298f12a67db035f99bb47">set_digits</a> (int digits)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the number of decimal digits. <a href="#a7cd895f5c2f298f12a67db035f99bb47"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a922de69e479a00b87bd4539eb027a431">get_digits</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the number of decimal digits. <a href="#a922de69e479a00b87bd4539eb027a431"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a28473a3dead4c2a29bfe1399234266e2">set_draw_value</a> (bool draw_value=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set whether the current value is displayed as a string next to the slider. <a href="#a28473a3dead4c2a29bfe1399234266e2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a198d0e8c858f4a2c6e357c97fc5f5330">get_draw_value</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get whether the current value is displayed as a string next to the slider. <a href="#a198d0e8c858f4a2c6e357c97fc5f5330"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#aaefd87ceaf890e6d0d8f01df27a51dd9">set_value_pos</a> (<a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a> pos)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the position in which the value is displayed. <a href="#aaefd87ceaf890e6d0d8f01df27a51dd9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a8ffee09d212456320b69cd6352da138f">get_value_pos</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the position in which the value is displayed. <a href="#a8ffee09d212456320b69cd6352da138f"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#adcba211aa3877294cb9fef98cb35d8b9">get_layout</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> used to display the scale. <a href="#adcba211aa3877294cb9fef98cb35d8b9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a9ef33e3dc9cb54e9bd01d0fa14a8649e">get_layout</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> used to display the scale. <a href="#a9ef33e3dc9cb54e9bd01d0fa14a8649e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#aa76b390c21e6710910ea5c592ac0bbf2">get_layout_offsets</a> (int& x, int& y) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Obtains the coordinates where the scale will draw the <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> representing the text in the scale. <a href="#aa76b390c21e6710910ea5c592ac0bbf2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a283af7d7d0ddb8fb3077b8082786d8d0">add_mark</a> (double <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01191.html#ga1c9e781d8d15a3814a601f471797c825">value</a>, <a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a> position, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& markup)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a mark at <em>value</em>. <a href="#a283af7d7d0ddb8fb3077b8082786d8d0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a9e3e8d0d052a6b9851a89de31cc13003">clear_marks</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Removes any marks that have been added with <a class="el" href="classGtk_1_1Scale.html#a283af7d7d0ddb8fb3077b8082786d8d0" title="Adds a mark at value.">add_mark()</a>. <a href="#a9e3e8d0d052a6b9851a89de31cc13003"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>, double > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a9c6c9c22c77387c820ba07fe5e107ad1">signal_format_value</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Determines how the value is formatted. <a href="#a9c6c9c22c77387c820ba07fe5e107ad1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a6edf67b7e8841e5850571bb11f35bf53">property_digits</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of displayed decimal digits. <a href="#a6edf67b7e8841e5850571bb11f35bf53"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a27cb3dc18728831b00cc84a3c5c4b7e8">property_digits</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The number of decimal places that are displayed in the value. <a href="#a27cb3dc18728831b00cc84a3c5c4b7e8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a9a082fce199f4152e7b5f7f7427bee70">property_draw_value</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether to draw the value as a string next to slider. <a href="#a9a082fce199f4152e7b5f7f7427bee70"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#ab953014f91040fc360b289f030f28c71">property_draw_value</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Whether the current value is displayed as a string next to the slider. <a href="#ab953014f91040fc360b289f030f28c71"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< <a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a5ec19185d27dce13e77aa35b6fe98ac7">property_value_pos</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The position in which the value is displayed. <a href="#a5ec19185d27dce13e77aa35b6fe98ac7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a2047ef5faefdade27bbe34fd6ae44f7c">property_value_pos</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The position in which the current value is displayed. <a href="#a2047ef5faefdade27bbe34fd6ae44f7c"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a4a3077296b964a1140af324b0747601e">on_format_value</a> (double <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01191.html#ga1c9e781d8d15a3814a601f471797c825">value</a>)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a3b4c0f4d069a0309e21a60f497bf546e">Scale</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a1a8610694ad2ff3e2123951af8a7ad55">draw_value_vfunc</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#a222499c514f33d1d4b83d09edfdebc9c">calc_digits_</a> (double step) const </td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1Scale.html">Gtk::Scale</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Scale.html#af4cd737ce65264070c74e7002858d9a5">wrap</a> (GtkScale* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#af4cd737ce65264070c74e7002858d9a5"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Abstract base clase for <a class="el" href="classGtk_1_1HScale.html" title="A horizontal slider for selecting values.">Gtk::HScale</a> and <a class="el" href="classGtk_1_1VScale.html" title="A vertical slider for selecting values.">Gtk::VScale</a>. </p> <p>A <a class="el" href="classGtk_1_1Scale.html" title="Abstract base clase for Gtk::HScale and Gtk::VScale.">Gtk::Scale</a> 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, <a class="el" href="classGtk_1_1Range.html" title="Base class for widgets which visualize an adjustment.">Gtk::Range</a>, in addition to the methods for <a class="el" href="classGtk_1_1Scale.html" title="Abstract base clase for Gtk::HScale and Gtk::VScale.">Gtk::Scale</a> itself. To set the value of a scale, you would normally use <a class="el" href="classGtk_1_1Range.html#a0dcdcc6742cb03a080ff24e376e3645a" title="Sets the current value of the range; if the value is outside the minimum or maximum range values...">set_value()</a>. To detect changes to the value, you would normally use <a class="el" href="classGtk_1_1Range.html#adabf4bf83e0798f22093406b96e873ce">signal_value_changed()</a>.</p> <p>The <a class="el" href="classGtk_1_1Scale.html" title="Abstract base clase for Gtk::HScale and Gtk::VScale.">Gtk::Scale</a> widget is an abstract class, used only for deriving the subclasses <a class="el" href="classGtk_1_1HScale.html" title="A horizontal slider for selecting values.">Gtk::HScale</a> and <a class="el" href="classGtk_1_1VScale.html" title="A vertical slider for selecting values.">Gtk::VScale</a>, so you should instantiate them instead. </p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a4991feb9012f28ac5d42219bc955d1af"></a><!-- doxytag: member="Gtk::Scale::~Scale" ref="a4991feb9012f28ac5d42219bc955d1af" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gtk::Scale::~Scale </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a3b4c0f4d069a0309e21a60f497bf546e"></a><!-- doxytag: member="Gtk::Scale::Scale" ref="a3b4c0f4d069a0309e21a60f497bf546e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::Scale::Scale </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a283af7d7d0ddb8fb3077b8082786d8d0"></a><!-- doxytag: member="Gtk::Scale::add_mark" ref="a283af7d7d0ddb8fb3077b8082786d8d0" args="(double value, PositionType position, const Glib::ustring &markup)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Scale::add_mark </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>value</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a> </td> <td class="paramname"><em>position</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>markup</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a mark at <em>value</em>. </p> <p>A mark is indicated visually by drawing a tick mark next to the scale, and GTK+ makes it easy for the user to position the scale exactly at the marks value.</p> <p>If <em>markup</em> is not <code>0</code>, text is shown next to the tick mark.</p> <p>To remove marks from a scale, use <a class="el" href="classGtk_1_1Scale.html#a9e3e8d0d052a6b9851a89de31cc13003" title="Removes any marks that have been added with add_mark().">clear_marks()</a>.</p> <dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000088">Since gtkmm 2.16:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">value</td><td>The value at which the mark is placed, must be between the lower and upper limits of the scales' adjustment. </td></tr> <tr><td class="paramname">position</td><td>Where to draw the mark. For a horizontal scale, Gtk::POS_TOP is drawn above the scale, anything else below. For a vertical scale, Gtk::POS_LEFT is drawn to the left of the scale, anything else to the right. </td></tr> <tr><td class="paramname">markup</td><td>Text to be shown at the mark, using , or <code>0</code>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a222499c514f33d1d4b83d09edfdebc9c"></a><!-- doxytag: member="Gtk::Scale::calc_digits_" ref="a222499c514f33d1d4b83d09edfdebc9c" args="(double step) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int Gtk::Scale::calc_digits_ </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>step</em></td><td>)</td> <td> const<code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a9e3e8d0d052a6b9851a89de31cc13003"></a><!-- doxytag: member="Gtk::Scale::clear_marks" ref="a9e3e8d0d052a6b9851a89de31cc13003" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Scale::clear_marks </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Removes any marks that have been added with <a class="el" href="classGtk_1_1Scale.html#a283af7d7d0ddb8fb3077b8082786d8d0" title="Adds a mark at value.">add_mark()</a>. </p> <dl class="since_2_16"><dt><b><a class="el" href="since_2_16.html#_since_2_16000089">Since gtkmm 2.16:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a1a8610694ad2ff3e2123951af8a7ad55"></a><!-- doxytag: member="Gtk::Scale::draw_value_vfunc" ref="a1a8610694ad2ff3e2123951af8a7ad55" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void Gtk::Scale::draw_value_vfunc </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a922de69e479a00b87bd4539eb027a431"></a><!-- doxytag: member="Gtk::Scale::get_digits" ref="a922de69e479a00b87bd4539eb027a431" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Gtk::Scale::get_digits </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Get the number of decimal digits. </p> </div> </div> <a class="anchor" id="a198d0e8c858f4a2c6e357c97fc5f5330"></a><!-- doxytag: member="Gtk::Scale::get_draw_value" ref="a198d0e8c858f4a2c6e357c97fc5f5330" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gtk::Scale::get_draw_value </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Get whether the current value is displayed as a string next to the slider. </p> </div> </div> <a class="anchor" id="a9ef33e3dc9cb54e9bd01d0fa14a8649e"></a><!-- doxytag: member="Gtk::Scale::get_layout" ref="a9ef33e3dc9cb54e9bd01d0fa14a8649e" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a>> Gtk::Scale::get_layout </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> used to display the scale. </p> <p>The returned object is owned by the scale so does not need to be freed by the caller.</p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000227">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> for this scale, or <code>0</code> if the <a class="el" href="classGtk_1_1Scale.html" title="Abstract base clase for Gtk::HScale and Gtk::VScale.">Gtk::Scale</a>:draw-value property is <code>false</code>. </dd></dl> </div> </div> <a class="anchor" id="adcba211aa3877294cb9fef98cb35d8b9"></a><!-- doxytag: member="Gtk::Scale::get_layout" ref="adcba211aa3877294cb9fef98cb35d8b9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a>> Gtk::Scale::get_layout </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> used to display the scale. </p> <p>The returned object is owned by the scale so does not need to be freed by the caller.</p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000226">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> for this scale, or <code>0</code> if the <a class="el" href="classGtk_1_1Scale.html" title="Abstract base clase for Gtk::HScale and Gtk::VScale.">Gtk::Scale</a>:draw-value property is <code>false</code>. </dd></dl> </div> </div> <a class="anchor" id="aa76b390c21e6710910ea5c592ac0bbf2"></a><!-- doxytag: member="Gtk::Scale::get_layout_offsets" ref="aa76b390c21e6710910ea5c592ac0bbf2" args="(int &x, int &y) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Scale::get_layout_offsets </td> <td>(</td> <td class="paramtype">int & </td> <td class="paramname"><em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int & </td> <td class="paramname"><em>y</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Obtains the coordinates where the scale will draw the <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> representing the text in the scale. </p> <p>Remember when using the <a class="elRef" href="../../../pangomm-1.4/reference/html/classPango_1_1Layout.html">Pango::Layout</a> function you need to convert to and from pixels using PANGO_PIXELS() or <a class="elRef" href="../../../pangomm-1.4/reference/html/namespacePango.html#a20d9629a369a6a5ab40ed9c01f879730">Pango::SCALE</a>.</p> <p>If the <a class="el" href="classGtk_1_1Scale.html" title="Abstract base clase for Gtk::HScale and Gtk::VScale.">Gtk::Scale</a>:draw-value property is <code>false</code>, the return values are undefined.</p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000228">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">x</td><td>Location to store X offset of layout, or <code>0</code>. </td></tr> <tr><td class="paramname">y</td><td>Location to store Y offset of layout, or <code>0</code>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a8ffee09d212456320b69cd6352da138f"></a><!-- doxytag: member="Gtk::Scale::get_value_pos" ref="a8ffee09d212456320b69cd6352da138f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a> Gtk::Scale::get_value_pos </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Get the position in which the value is displayed. </p> </div> </div> <a class="anchor" id="afc7d5fb5223af20c105c473dff2cb5bf"></a><!-- doxytag: member="Gtk::Scale::gobj" ref="afc7d5fb5223af20c105c473dff2cb5bf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkScale* Gtk::Scale::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GtkObject. </p> <p>Reimplemented from <a class="el" href="classGtk_1_1Range.html#ad1794114e1e316ce6640cef1dc70720b">Gtk::Range</a>.</p> <p>Reimplemented in <a class="el" href="classGtk_1_1VScale.html#a902a9a6fa87f96142c06b272e8b84513">Gtk::VScale</a>, and <a class="el" href="classGtk_1_1HScale.html#af8619097cce3380c90770b0f70fb032e">Gtk::HScale</a>.</p> </div> </div> <a class="anchor" id="a07df5a12a5e4a27aff06cbe9e66e3d86"></a><!-- doxytag: member="Gtk::Scale::gobj" ref="a07df5a12a5e4a27aff06cbe9e66e3d86" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GtkScale* Gtk::Scale::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GtkObject. </p> <p>Reimplemented from <a class="el" href="classGtk_1_1Range.html#ad575889c11d88b292188506b361321e5">Gtk::Range</a>.</p> <p>Reimplemented in <a class="el" href="classGtk_1_1VScale.html#ac6e6ee0b573d46e6d0510ce5d6a3fe59">Gtk::VScale</a>, and <a class="el" href="classGtk_1_1HScale.html#a52e921b7a37716ff8d6f33993a3cb1f6">Gtk::HScale</a>.</p> </div> </div> <a class="anchor" id="a4a3077296b964a1140af324b0747601e"></a><!-- doxytag: member="Gtk::Scale::on_format_value" ref="a4a3077296b964a1140af324b0747601e" args="(double value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::Scale::on_format_value </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>value</em></td><td>)</td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a27cb3dc18728831b00cc84a3c5c4b7e8"></a><!-- doxytag: member="Gtk::Scale::property_digits" ref="a27cb3dc18728831b00cc84a3c5c4b7e8" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><int> Gtk::Scale::property_digits </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The number of decimal places that are displayed in the value. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a6edf67b7e8841e5850571bb11f35bf53"></a><!-- doxytag: member="Gtk::Scale::property_digits" ref="a6edf67b7e8841e5850571bb11f35bf53" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><int> Gtk::Scale::property_digits </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Number of displayed decimal digits. </p> <p>The number of decimal places that are displayed in the value.</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a9a082fce199f4152e7b5f7f7427bee70"></a><!-- doxytag: member="Gtk::Scale::property_draw_value" ref="a9a082fce199f4152e7b5f7f7427bee70" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::Scale::property_draw_value </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Whether to draw the value as a string next to slider. </p> <p>Whether the current value is displayed as a string next to the slider.</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="ab953014f91040fc360b289f030f28c71"></a><!-- doxytag: member="Gtk::Scale::property_draw_value" ref="ab953014f91040fc360b289f030f28c71" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> Gtk::Scale::property_draw_value </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Whether the current value is displayed as a string next to the slider. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a5ec19185d27dce13e77aa35b6fe98ac7"></a><!-- doxytag: member="Gtk::Scale::property_value_pos" ref="a5ec19185d27dce13e77aa35b6fe98ac7" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a>> Gtk::Scale::property_value_pos </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The position in which the value is displayed. </p> <p>The position in which the current value is displayed.</p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a2047ef5faefdade27bbe34fd6ae44f7c"></a><!-- doxytag: member="Gtk::Scale::property_value_pos" ref="a2047ef5faefdade27bbe34fd6ae44f7c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a>> Gtk::Scale::property_value_pos </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The position in which the current value is displayed. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a7cd895f5c2f298f12a67db035f99bb47"></a><!-- doxytag: member="Gtk::Scale::set_digits" ref="a7cd895f5c2f298f12a67db035f99bb47" args="(int digits)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Scale::set_digits </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>digits</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the number of decimal digits. </p> <p>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. </p> </div> </div> <a class="anchor" id="a28473a3dead4c2a29bfe1399234266e2"></a><!-- doxytag: member="Gtk::Scale::set_draw_value" ref="a28473a3dead4c2a29bfe1399234266e2" args="(bool draw_value=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Scale::set_draw_value </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>draw_value</em> = <code>true</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Set whether the current value is displayed as a string next to the slider. </p> </div> </div> <a class="anchor" id="aaefd87ceaf890e6d0d8f01df27a51dd9"></a><!-- doxytag: member="Gtk::Scale::set_value_pos" ref="aaefd87ceaf890e6d0d8f01df27a51dd9" args="(PositionType pos)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Scale::set_value_pos </td> <td>(</td> <td class="paramtype"><a class="el" href="group__gtkmmEnums.html#ga3568edcd04af4a2cbd1eb0195513fe6b">PositionType</a> </td> <td class="paramname"><em>pos</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Set the position in which the value is displayed. </p> </div> </div> <a class="anchor" id="a9c6c9c22c77387c820ba07fe5e107ad1"></a><!-- doxytag: member="Gtk::Scale::signal_format_value" ref="a9c6c9c22c77387c820ba07fe5e107ad1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy1.html">Glib::SignalProxy1</a>< <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>,double > Gtk::Scale::signal_format_value </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Determines how the value is formatted. </p> <p>This can be used to connect a custom function for determining how the value is formatted. The function (or function object) is given a the value as a double and should return the representation of it as a <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>.</p> <dl class="user"><dt><b>Prototype:</b></dt><dd><code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> on_my_format_value(double value)</code> </dd></dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="af4cd737ce65264070c74e7002858d9a5"></a><!-- doxytag: member="Gtk::Scale::wrap" ref="af4cd737ce65264070c74e7002858d9a5" args="(GtkScale *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1Scale.html">Gtk::Scale</a>* wrap </td> <td>(</td> <td class="paramtype">GtkScale * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gtkmm/scale.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Jun 25 2013 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>