Sophie

Sophie

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

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

<html>
<head><title>Gtk-- Reference: Gtk::ColorSelection</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::ColorSelection</h1><p>
<b>  A widget used to select a color.</b><br>
Contained in: <a href="Gtk.html">Gtk</a><br>
Derived from:
<a href="Gtk%3A%3AVBox.html">Gtk::VBox</a>
<br>
Derived by:
<i>none</i>
<p>
#include &lt;gtk--/colorselection.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%3AColorSelection.html#934"><tt><font color=blue><b>ColorSelection</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%3AColorSelection.html#939"><tt><font color=blue><b>color_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%3AColorSelection.html#938"><tt><font color=blue><b>get_color</b></font></tt></a></td><td><tt>(<tt><font color=purple>gdouble</font></tt>* <tt><font color=blue>color</font></tt>) <tt>const</tt></tt>;</td>
<tr valign=top><td align=right><tt><tt><font color=navy>GtkColorSelection</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AColorSelection.html#930"><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>GtkColorSelection</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AColorSelection.html#931"><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%3AColorSelection.html#932"><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%3AColorSelection.html#937"><tt><font color=blue><b>set_color</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=purple>gdouble</font></tt>* <tt><font color=blue>color</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%3AColorSelection.html#936"><tt><font color=blue><b>set_opacity</b></font></tt></a></td><td><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>use_opacity</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%3AColorSelection.html#935"><tt><font color=blue><b>set_update_policy</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkUpdateType</font></tt> <tt><font color=blue>policy</font></tt>)</tt>;</td>
<tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3AColorSelection.html#933"><tt><font color=blue><b>~ColorSelection</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%3AColorSelection.html#940"><tt><font color=blue><b>color_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::ColorSelection</b></font></tt> is a widget that is used to select a color. It
  consists of a color wheel and number of sliders and entry boxes for
  color parameters such as hue, saturation, value, red, green, blue,
  and opacity. It is found on the standard color selection dialog box
  <tt><tt><font color=blue>Gtk::ColorSelectionDialog</font></tt></tt>.<br>
<p>
<hr noshade>
<h2>Function Member Descriptions:</h2>
<a name="939"><font size=+1><b>Gtk::ColorSelection::color_changed</b></font></a> -   This signal is emitted when the color changes in the <tt><font color=navy><b>Gtk::ColorSelection</b></font></tt> according to its update policy.<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%3AColorSelection.html#939"><tt><font color=blue><b>color_changed</b></font></tt></a><tt>()</tt>;<br><tt><tt>virtual</tt> <tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AColorSelection.html#940"><tt><font color=blue><b>color_changed_impl</b></font></tt></a><tt>()</tt>;<br><br>
<a name="938"><font size=+1><b>Gtk::ColorSelection::get_color</b></font></a> -   Retrieve the currently selected color value.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AColorSelection.html#938"><tt><font color=blue><b>get_color</b></font></tt></a><tt>(<tt><font color=purple>gdouble</font></tt>* <tt><font color=blue>color</font></tt>) <tt>const</tt></tt>;<br><blockquote>  color: A color array consisting of 4 gfloat values for red, green, blue, and opacity.</blockquote>
<br><br>
<a name="930"><font size=+1><b>Gtk::ColorSelection::gtkobj</b></font></a> -   Returns the underlaying gtk+ object.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkColorSelection</font></tt>*</tt> <a href="Gtk%3A%3AColorSelection.html#930"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br>
<a name="932"><font size=+1><b>Gtk::ColorSelection::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%3AColorSelection.html#932"><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="937"><font size=+1><b>Gtk::ColorSelection::set_color</b></font></a> -   Sets the color in the <tt><font color=navy><b>Gtk::ColorSelection</b></font></tt>.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AColorSelection.html#937"><tt><font color=blue><b>set_color</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=purple>gdouble</font></tt>* <tt><font color=blue>color</font></tt>)</tt>;<br><blockquote>  The widgets are updated to reflect the new color.
<P>
  color: A color array consisting of 4 gfloat values for red, green, blue, and opacity.</blockquote>
<br><br>
<a name="936"><font size=+1><b>Gtk::ColorSelection::set_opacity</b></font></a> -   Controls whether opacity can be set with the <tt><font color=navy><b>Gtk::ColorSelection</b></font></tt>.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AColorSelection.html#936"><tt><font color=blue><b>set_opacity</b></font></tt></a><tt>(<tt><font color=purple>gint</font></tt> <tt><font color=blue>use_opacity</font></tt>)</tt>;<br><blockquote>  If this functionality is enabled, the necessary additional widgets are added
  to the <tt><font color=navy><b>Gtk::ColorSelection</b></font></tt> and the opacity value can be retrieved
  via the fourth value in the color array returned by the <a href="Gtk%3A%3AColorSelection.html#938"><tt><font color=blue><b>get_color</b></font></tt></a> function.</blockquote>
<br><br>
<a name="935"><font size=+1><b>Gtk::ColorSelection::set_update_policy</b></font></a> -   Sets the policy controlling when the color_changed signals are emitted.<br>
<hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AColorSelection.html#935"><tt><font color=blue><b>set_update_policy</b></font></tt></a><tt>(<tt><font color=navy>GtkUpdateType</font></tt> <tt><font color=blue>policy</font></tt>)</tt>;<br><blockquote>  The available policies are:
<P>
  <tt><font color=green>GTK_UPDATE_CONTINUOUS</font></tt> - signals are sent continuously as the color selection changes.
<P>
  <tt><font color=green>GTK_UPDATE_DISCONTINUOUS</font></tt> - signals are sent only when the mouse button is released.
<P>
  <tt><font color=green>GTK_UPDATE_DELAYED</font></tt> - signals are sent when the mouse button is released or when the
  mouse has been motionless for a period of time.</blockquote>
<br><br>
<hr noshade>
</html>