Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > ca81b57b553ae75608ba0fc5e7925e4e > files > 406

libgtkmm1.2-devel-1.2.10-1mdk.ppc.rpm

<html>
<head><title>Gtk-- Reference: Gtk::Ruler</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::Ruler</h1><p>
<b>  Abstract Ruler</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3AWidget.html">Gtk::Widget</a>
<br>
Derived by:
<a href="Gtk::HRuler.html">Gtk::HRuler</a>
<a href="Gtk::VRuler.html">Gtk::VRuler</a>
<p>
#include &lt;gtk--/ruler.h&gt;
<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><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ARuler.html#2588"><tt><font color=blue><b>draw_pos</b></font></tt></a></td><td><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%3ARuler.html#2587"><tt><font color=blue><b>draw_ticks</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkMetricType</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ARuler.html#2582"><tt><font color=blue><b>get_metric</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>gfloat</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ARuler.html#2584"><tt><font color=blue><b>get_range_lower</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=purple>gfloat</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ARuler.html#2585"><tt><font color=blue><b>get_range_upper</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkRuler</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ARuler.html#2578"><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>GtkRuler</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ARuler.html#2579"><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%3ARuler.html#2580"><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%3ARuler.html#2583"><tt><font color=blue><b>set_metric</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkMetricType</font></tt> <tt><font color=blue>metric</font></tt>=GTK_PIXELS)</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%3ARuler.html#2586"><tt><font color=blue><b>set_range</b></font></tt></a></td><td><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>lower</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>upper</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>position</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>max_size</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3ARuler.html#2581"><tt><font color=blue><b>~Ruler</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</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%3ARuler.html#2589"><tt><font color=blue><b>Ruler</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  Ruler is an abstraction used as the base for Gtk_HRuler and
  Gtk_VRuler.  Users should only instantiate those types.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="2588"><font size=+1><b>Gtk::Ruler::draw_pos</b></font></a> -   Draw a position indicator on the ruler.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ARuler.html#2588"><tt><font color=blue><b>draw_pos</b></font></tt></a><tt>()</tt>;<br><br>
<a name="2587"><font size=+1><b>Gtk::Ruler::draw_ticks</b></font></a> -   Draw tick marks on the ruler.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ARuler.html#2587"><tt><font color=blue><b>draw_ticks</b></font></tt></a><tt>()</tt>;<br><br>
<a name="2582"><font size=+1><b>Gtk::Ruler::get_metric</b></font></a> -   Gets the metric of the ruler.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkMetricType</font></tt></tt> <a href="Gtk%3A%3ARuler.html#2582"><tt><font color=blue><b>get_metric</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><br>
<a name="2578"><font size=+1><b>Gtk::Ruler::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkRuler</font></tt>*</tt> <a href="Gtk%3A%3ARuler.html#2578"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="2580"><font size=+1><b>Gtk::Ruler::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%3ARuler.html#2580"><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="2583"><font size=+1><b>Gtk::Ruler::set_metric</b></font></a> -   Sets the desired metric of the ruler.  The possible choices are:<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ARuler.html#2583"><tt><font color=blue><b>set_metric</b></font></tt></a><tt>(<tt><font color=navy>GtkMetricType</font></tt> <tt><font color=blue>metric</font></tt>=GTK_PIXELS)</tt>;<br><blockquote>  <tt><font color=green>GTK_PIXELS</font></tt>, <tt><font color=green>GTK_INCHES</font></tt>, or <tt><font color=green>GTK_CENTIMETERS</font></tt>.
  The default metric is <tt><font color=green>GTK_PIXELS</font></tt>.</blockquote>
<br><br>
<a name="2586"><font size=+1><b>Gtk::Ruler::set_range</b></font></a> -   sets the range of the ruler.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ARuler.html#2586"><tt><font color=blue><b>set_range</b></font></tt></a><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>lower</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>upper</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>position</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>max_size</font></tt>)</tt>;<br><blockquote>  upper, lower: The extents of the Ruler.
<P>
  max_size: The largest number displayed by the ruler.
<P>
  position: The initial value of the ruler.
<P>
  Rulers do not have sane defaults so this function should always be called.</blockquote>
<br><br>
<hr noshade>
</html>