Sophie

Sophie

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

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

<html>
<head><title>Gtk-- Reference: Gtk::Curve</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::Curve</h1><p>
<b>  Allows direct editing of a curve.</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3ADrawingArea.html">Gtk::DrawingArea</a>
<br>
Derived by:
<i>none</i>
<p>
#include &lt;gtk--/curve.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> </td><td align=right><a href="Gtk%3A%3ACurve.html#1359"><tt><font color=blue><b>Curve</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr valign=top><td align=right><tt><tt>signal</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACurve.html#1366"><tt><font color=blue><b>curve_type_changed</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%3ACurve.html#1363"><tt><font color=blue><b>get_vector</b></font></tt></a></td><td><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>num</font></tt>, <tt><font color=purple>gfloat</font></tt>* <tt><font color=blue>data</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkCurve</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ACurve.html#1355"><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>GtkCurve</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ACurve.html#1356"><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%3ACurve.html#1357"><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%3ACurve.html#1360"><tt><font color=blue><b>reset</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%3ACurve.html#1365"><tt><font color=blue><b>set_curve_type</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkCurveType</font></tt> <tt><font color=blue>type</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%3ACurve.html#1361"><tt><font color=blue><b>set_gamma</b></font></tt></a></td><td><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>gamma</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%3ACurve.html#1362"><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>min_x</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>max_x</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>min_y</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>max_y</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%3ACurve.html#1364"><tt><font color=blue><b>set_vector</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gtk%3A%3ACurveArray.html"><tt><font color=navy><b>CurveArray</b></font></tt></a>& <tt><font color=blue>vect</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3ACurve.html#1358"><tt><font color=blue><b>~Curve</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>virtual</tt> <tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ACurve.html#1367"><tt><font color=blue><b>curve_type_changed_impl</b></font></tt></a></td><td><tt>()</tt>;</td>
<tr><td>&nbsp;</td></table>
<hr noshade>
<h2>Description:</h2>
  The <tt><font color=navy><b>Gtk::Curve</b></font></tt> widget allows the user to edit a curve covering
  a range of values. It is typically used to fine-tune color balances in
  graphics applications like the Gimp.
<P>
  The <tt><font color=navy><b>Gtk::Curve</b></font></tt> widget has 3 modes of operation - spline, linear
  and free. In spline mode the user places points on the curve which are
  automatically connected together into a smooth curve. In linear mode the
  user places points on the curve which are connected by straight lines. In
  free mode the user can draw the points of the curve freely, and they are
  not connected at all.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="1366"><font size=+1><b>Gtk::Curve::curve_type_changed</b></font></a> -   Emitted when the curve type has been changed.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>signal</tt> <tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACurve.html#1366"><tt><font color=blue><b>curve_type_changed</b></font></tt></a><tt>()</tt>;<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACurve.html#1367"><tt><font color=blue><b>curve_type_changed_impl</b></font></tt></a><tt>()</tt>;<br><blockquote>  The curve type can be changed explicitly with a call to
  <a href="Gtk%3A%3ACurve.html#1365"><tt><font color=blue><b>set_curve_type</b></font></tt></a>. It is also changed as a side-effect of calling
  <a href="Gtk%3A%3ACurve.html#1360"><tt><font color=blue><b>reset</b></font></tt></a> or <a href="Gtk%3A%3ACurve.html#1361"><tt><font color=blue><b>set_gamma</b></font></tt></a>.</blockquote>
<br><br>
<a name="1363"><font size=+1><b>Gtk::Curve::get_vector</b></font></a> -   Returns a vector of points representing the curve.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACurve.html#1363"><tt><font color=blue><b>get_vector</b></font></tt></a><tt>(<tt><font color=purple>int</font></tt> <tt><font color=blue>num</font></tt>, <tt><font color=purple>gfloat</font></tt>* <tt><font color=blue>data</font></tt>)</tt>;<br><blockquote><P>
  data: Returns the points.</blockquote>
<br><br>
<a name="1355"><font size=+1><b>Gtk::Curve::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkCurve</font></tt>*</tt> <a href="Gtk%3A%3ACurve.html#1355"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="1357"><font size=+1><b>Gtk::Curve::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%3ACurve.html#1357"><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="1360"><font size=+1><b>Gtk::Curve::reset</b></font></a> -   Reset the curve.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACurve.html#1360"><tt><font color=blue><b>reset</b></font></tt></a><tt>()</tt>;<br><blockquote>  Resets the curve to a straight line from the minimum x &amp; y values to
  the maximum x &amp; y values (i.e. from the bottom-left to the top-right
  corners). The curve type is not changed.</blockquote>
<br><br>
<a name="1365"><font size=+1><b>Gtk::Curve::set_curve_type</b></font></a> -   Sets the type of the curve.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACurve.html#1365"><tt><font color=blue><b>set_curve_type</b></font></tt></a><tt>(<tt><font color=navy>GtkCurveType</font></tt> <tt><font color=blue>type</font></tt>)</tt>;<br><blockquote>  The curve will remain unchanged except when changing from a free curve to
  a linear or spline curve, in which case the curve will be changed as
  little as possible.
  type: The type of the curve. Possible values are: <tt><font color=green>GTK_CURVE_TYPE_LINEAR</font></tt>,
  <tt><font color=green>GTK_CURVE_TYPE_SPLINE</font></tt>, <tt><font color=green>GTK_CURVE_TYPE_FREE</font></tt>.</blockquote>
<br><br>
<a name="1361"><font size=+1><b>Gtk::Curve::set_gamma</b></font></a> -   Recomputes the entire curve using the given gamma value.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACurve.html#1361"><tt><font color=blue><b>set_gamma</b></font></tt></a><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>gamma</font></tt>)</tt>;<br><blockquote>  A gamma value of 1 results in a straight line. Values greater than 1
  result in a curve above the straight line. Values less than 1 result
  in a curve below the straight line. The curve type is changed to
  <tt><font color=green>GTK_CURVE_TYPE_FREE</font></tt>.
<P>
  gamma: The gamma value.</blockquote>
<br><br>
<a name="1362"><font size=+1><b>Gtk::Curve::set_range</b></font></a> -   Sets the minimum and maximum x &amp; y values of the curve.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACurve.html#1362"><tt><font color=blue><b>set_range</b></font></tt></a><tt>(<tt><font color=purple>gfloat</font></tt> <tt><font color=blue>min_x</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>max_x</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>min_y</font></tt>, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>max_y</font></tt>)</tt>;<br><blockquote>  The curve is also reset with a call to <tt><font color=blue><b></b></font></tt>.
<P>
  min_x: The minimum x value.
<P>
  max_x: The maximum x value.
<P>
  min_y: The minimum y value.
<P>
  max_y: The maximum y value.</blockquote>
<br><br>
<a name="1364"><font size=+1><b>Gtk::Curve::set_vector</b></font></a> -   Sets the vector of points on the curve.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ACurve.html#1364"><tt><font color=blue><b>set_vector</b></font></tt></a><tt>(<tt>const</tt> <a href="Gtk%3A%3ACurveArray.html"><tt><font color=navy><b>CurveArray</b></font></tt></a>& <tt><font color=blue>vect</font></tt>)</tt>;<br><blockquote>  The curve type is set to <tt><font color=green>GTK_CURVE_TYPE_FREE</font></tt>.
<P>
  vect: The points on the curve.</blockquote>
<br><br>
<hr noshade>
</html>