1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>GimpColorSelection</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual"><link rel="up" href="libgimpwidgets-widgets.html" title="PartI.GIMP Widgets"><link rel="prev" href="GimpColorScale.html" title="GimpColorScale"><link rel="next" href="GimpDialog.html" title="GimpDialog"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="libgimpwidgets-widgets.html" title="PartI.GIMP Widgets"><link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy"><link rel="chapter" href="libgimpwidgets-cell-renderers.html" title="Cell Renderers for GtkTreeView"><link rel="part" href="libgimpwidgets-colordisplay.html" title="PartII.GIMP Display Filters"><link rel="part" href="libgimpwidgets-colorselector.html" title="PartIII.GIMP Color Selectors"><link rel="part" href="libgimpwidgets-controller.html" title="PartIV.GIMP Controllers"><link rel="part" href="libgimpwidgets-utils.html" title="PartV.GIMP Widgets Utilities"><link rel="part" href="libgimpwidgets-deprecated.html" title="PartVI.Deprecated API"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="GimpColorScale.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpwidgets-widgets.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Widgets Library Reference Manual</th><td><a accesskey="n" href="GimpDialog.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="GimpColorSelection"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">GimpColorSelection</span></h2><p>GimpColorSelection — Widget for doing a color selection.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
<a href="GimpColorSelection.html#GimpColorSelection-struct">GimpColorSelection</a>;
<a
href="../gtk/GtkWidget.html"
>GtkWidget</a>* <a href="GimpColorSelection.html#gimp-color-selection-new">gimp_color_selection_new</a> (void);
void <a href="GimpColorSelection.html#gimp-color-selection-set-show-alpha">gimp_color_selection_set_show_alpha</a>
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_alpha);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GimpColorSelection.html#gimp-color-selection-get-show-alpha">gimp_color_selection_get_show_alpha</a>
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection);
void <a href="GimpColorSelection.html#gimp-color-selection-set-color">gimp_color_selection_set_color</a> (<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
void <a href="GimpColorSelection.html#gimp-color-selection-get-color">gimp_color_selection_get_color</a> (<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
void <a href="GimpColorSelection.html#gimp-color-selection-set-old-color">gimp_color_selection_set_old_color</a>
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
void <a href="GimpColorSelection.html#gimp-color-selection-get-old-color">gimp_color_selection_get_old_color</a>
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);
void <a href="GimpColorSelection.html#gimp-color-selection-reset">gimp_color_selection_reset</a> (<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection);
void <a href="GimpColorSelection.html#gimp-color-selection-color-changed">gimp_color_selection_color_changed</a>
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection);
</pre></div><div class="refsect1" lang="en"><a name="id2575585"></a><h2>Object Hierarchy</h2><pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="../gtk/GtkObject.html"
>GtkObject</a>
+----<a
href="../gtk/GtkWidget.html"
>GtkWidget</a>
+----<a
href="../gtk/GtkContainer.html"
>GtkContainer</a>
+----<a
href="../gtk/GtkBox.html"
>GtkBox</a>
+----<a
href="../gtk/GtkVBox.html"
>GtkVBox</a>
+----GimpColorSelection
</pre></div><div class="refsect1" lang="en"><a name="id2575628"></a><h2>Implemented Interfaces</h2><p>
GimpColorSelection implements
AtkImplementorIface.</p></div><div class="refsect1" lang="en"><a name="id2575643"></a><h2>Signal Prototypes</h2><pre class="synopsis">
"<a href="GimpColorSelection.html#GimpColorSelection-color-changed">color-changed</a>"
void user_function (<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *gimpcolorselection,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
</pre></div><div class="refsect1" lang="en"><a name="id2575676"></a><h2>Description</h2><p>
</p></div><div class="refsect1" lang="en"><a name="id2575686"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2575691"></a><h3><a name="GimpColorSelection-struct"></a>GimpColorSelection</h3><a class="indexterm" name="id2575699"></a><pre class="programlisting">typedef struct _GimpColorSelection GimpColorSelection;</pre><p>
</p></div><hr><div class="refsect2" lang="en"><a name="id2531040"></a><h3><a name="gimp-color-selection-new"></a>gimp_color_selection_new ()</h3><a class="indexterm" name="id2531048"></a><pre class="programlisting"><a
href="../gtk/GtkWidget.html"
>GtkWidget</a>* gimp_color_selection_new (void);</pre><p>
Creates a new <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td> The new <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2531092"></a><h3><a name="gimp-color-selection-set-show-alpha"></a>gimp_color_selection_set_show_alpha ()</h3><a class="indexterm" name="id2531103"></a><pre class="programlisting">void gimp_color_selection_set_show_alpha
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_alpha);</pre><p>
Sets the <i class="parameter"><tt>show_alpha</tt></i> property of the <i class="parameter"><tt>selection</tt></i> widget.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selection</tt></i>:</span></td><td> A <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>show_alpha</tt></i>:</span></td><td> The new <i class="parameter"><tt>show_alpha</tt></i> setting.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2531174"></a><h3><a name="gimp-color-selection-get-show-alpha"></a>gimp_color_selection_get_show_alpha ()</h3><a class="indexterm" name="id2531185"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gimp_color_selection_get_show_alpha
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection);</pre><p>
Returns the <i class="parameter"><tt>selection</tt></i>'s <i class="parameter"><tt>show_alpha</tt></i> property.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selection</tt></i>:</span></td><td> A <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td> <a
href="../glib/glib-Standard-Macros.html#TRUE--CAPS"
><span class="type">TRUE</span></a> if the <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> has alpha controls.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2531258"></a><h3><a name="gimp-color-selection-set-color"></a>gimp_color_selection_set_color ()</h3><a class="indexterm" name="id2531269"></a><pre class="programlisting">void gimp_color_selection_set_color (<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
Sets the <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a>'s current color to the new <i class="parameter"><tt>color</tt></i>.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selection</tt></i>:</span></td><td> A <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i>:</span></td><td> The <i class="parameter"><tt>color</tt></i> to set as current color.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2527016"></a><h3><a name="gimp-color-selection-get-color"></a>gimp_color_selection_get_color ()</h3><a class="indexterm" name="id2527027"></a><pre class="programlisting">void gimp_color_selection_get_color (<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
This function returns the <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a>'s current color.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selection</tt></i>:</span></td><td> A <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i>:</span></td><td> Return location for the <i class="parameter"><tt>selection</tt></i>'s current <i class="parameter"><tt>color</tt></i>.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2527101"></a><h3><a name="gimp-color-selection-set-old-color"></a>gimp_color_selection_set_old_color ()</h3><a class="indexterm" name="id2527112"></a><pre class="programlisting">void gimp_color_selection_set_old_color
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
Sets the <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a>'s old color.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selection</tt></i>:</span></td><td> A <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i>:</span></td><td> The <i class="parameter"><tt>color</tt></i> to set as old color.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2527183"></a><h3><a name="gimp-color-selection-get-old-color"></a>gimp_color_selection_get_old_color ()</h3><a class="indexterm" name="id2527194"></a><pre class="programlisting">void gimp_color_selection_get_old_color
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection,
<a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *color);</pre><p>
This function returns the <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a>'s old color.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selection</tt></i>:</span></td><td> A <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>color</tt></i>:</span></td><td> Return location for the <i class="parameter"><tt>selection</tt></i>'s old <i class="parameter"><tt>color</tt></i>.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2585722"></a><h3><a name="gimp-color-selection-reset"></a>gimp_color_selection_reset ()</h3><a class="indexterm" name="id2585731"></a><pre class="programlisting">void gimp_color_selection_reset (<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection);</pre><p>
Sets the <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a>'s current color to its old color.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selection</tt></i>:</span></td><td> A <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2585782"></a><h3><a name="gimp-color-selection-color-changed"></a>gimp_color_selection_color_changed ()</h3><a class="indexterm" name="id2585794"></a><pre class="programlisting">void gimp_color_selection_color_changed
(<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *selection);</pre><p>
Emits the "color_changed" signal.</p><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selection</tt></i>:</span></td><td> A <a href="GimpColorSelection.html" title="GimpColorSelection"><span class="type">GimpColorSelection</span></a> widget.
</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2585841"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="id2585846"></a><h3><a name="GimpColorSelection-color-changed"></a>The "color-changed" signal</h3><pre class="programlisting">void user_function (<a href="GimpColorSelection.html" title="GimpColorSelection">GimpColorSelection</a> *gimpcolorselection,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);</pre><p>
</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gimpcolorselection</tt></i>:</span></td><td>the object which received the signal.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>:</span></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="GimpColorScale.html"><b><<GimpColorScale</b></a></td><td align="right"><a accesskey="n" href="GimpDialog.html"><b>GimpDialog>></b></a></td></tr></table></body></html>
|