MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //usr/share/gtk-doc/html/gtk/GtkColorSelection.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkColorSelection</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="prev" href="GtkColorButton.html" title="GtkColorButton">
<link rel="next" href="GtkColorSelectionDialog.html" title="GtkColorSelectionDialog">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part&#160;III.&#160;GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part&#160;IV.&#160;Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and 
         GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part&#160;V.&#160;GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkColorButton.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="SelectorWidgets.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">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkColorSelectionDialog.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3390400" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id3391343" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id3391114" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id3391183" class="shortcut">Implemented Interfaces</a>
                  &#160;|&#160;
                  <a href="#id3391206" class="shortcut">Properties</a>
                  &#160;|&#160;
                  <a href="#id3391292" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkColorSelection"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3390400"></a><span class="refentrytitle">GtkColorSelection</span>
</h2>
<p>GtkColorSelection &#8212; A widget used to select a color</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gtk/gtk.h&gt;


            <a href="GtkColorSelection.html#GtkColorSelection-struct">GtkColorSelection</a>;
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  <a href="GtkColorSelection.html#gtk-color-selection-new">gtk_color_selection_new</a>         (void);
void        <a href="GtkColorSelection.html#gtk-color-selection-set-update-policy">gtk_color_selection_set_update_policy</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a href="gtk-Standard-Enumerations.html#GtkUpdateType">GtkUpdateType</a> policy);
void        <a href="GtkColorSelection.html#gtk-color-selection-set-has-opacity-control">gtk_color_selection_set_has_opacity_control</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> has_opacity);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkColorSelection.html#gtk-color-selection-get-has-opacity-control">gtk_color_selection_get_has_opacity_control</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);
void        <a href="GtkColorSelection.html#gtk-color-selection-set-has-palette">gtk_color_selection_set_has_palette</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> has_palette);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkColorSelection.html#gtk-color-selection-get-has-palette">gtk_color_selection_get_has_palette</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);
<a
href="../glib/glib-Basic-Types.html#guint16"
>guint16</a>     <a href="GtkColorSelection.html#gtk-color-selection-get-current-alpha">gtk_color_selection_get_current_alpha</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);
void        <a href="GtkColorSelection.html#gtk-color-selection-set-current-alpha">gtk_color_selection_set_current_alpha</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#guint16"
>guint16</a> alpha);
void        <a href="GtkColorSelection.html#gtk-color-selection-get-current-color">gtk_color_selection_get_current_color</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
void        <a href="GtkColorSelection.html#gtk-color-selection-set-current-color">gtk_color_selection_set_current_color</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
<a
href="../glib/glib-Basic-Types.html#guint16"
>guint16</a>     <a href="GtkColorSelection.html#gtk-color-selection-get-previous-alpha">gtk_color_selection_get_previous_alpha</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);
void        <a href="GtkColorSelection.html#gtk-color-selection-set-previous-alpha">gtk_color_selection_set_previous_alpha</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#guint16"
>guint16</a> alpha);
void        <a href="GtkColorSelection.html#gtk-color-selection-get-previous-color">gtk_color_selection_get_previous_color</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
void        <a href="GtkColorSelection.html#gtk-color-selection-set-previous-color">gtk_color_selection_set_previous_color</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkColorSelection.html#gtk-color-selection-is-adjusting">gtk_color_selection_is_adjusting</a>
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkColorSelection.html#gtk-color-selection-palette-from-string">gtk_color_selection_palette_from_string</a>
                                            (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *str,
                                             <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> **colors,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_colors);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>*      <a href="GtkColorSelection.html#gtk-color-selection-palette-to-string">gtk_color_selection_palette_to_string</a>
                                            (const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *colors,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_colors);
<a href="GtkColorSelection.html#GtkColorSelectionChangePaletteFunc">GtkColorSelectionChangePaletteFunc</a> <a href="GtkColorSelection.html#gtk-color-selection-set-change-palette-hook">gtk_color_selection_set_change_palette_hook</a>
                                            (<a href="GtkColorSelection.html#GtkColorSelectionChangePaletteFunc">GtkColorSelectionChangePaletteFunc</a> func);
void        (<a href="GtkColorSelection.html#GtkColorSelectionChangePaletteFunc">*GtkColorSelectionChangePaletteFunc</a>)
                                            (const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *colors,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_colors);
<a href="GtkColorSelection.html#GtkColorSelectionChangePaletteWithScreenFunc">GtkColorSelectionChangePaletteWithScreenFunc</a> <a href="GtkColorSelection.html#gtk-color-selection-set-change-palette-with-screen-hook">gtk_color_selection_set_change_palette_with_screen_hook</a>
                                            (<a href="GtkColorSelection.html#GtkColorSelectionChangePaletteWithScreenFunc">GtkColorSelectionChangePaletteWithScreenFunc</a> func);
void        (<a href="GtkColorSelection.html#GtkColorSelectionChangePaletteWithScreenFunc">*GtkColorSelectionChangePaletteWithScreenFunc</a>)
                                            (<a
href="../gdk/GdkScreen.html"
>GdkScreen</a> *screen,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *colors,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_colors);
void        <a href="GtkColorSelection.html#gtk-color-selection-set-color">gtk_color_selection_set_color</a>   (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *color);
void        <a href="GtkColorSelection.html#gtk-color-selection-get-color">gtk_color_selection_get_color</a>   (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *color);


</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3391114"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
         +----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
                     +----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
                           +----<a href="GtkBox.html" title="GtkBox">GtkBox</a>
                                 +----<a href="GtkVBox.html" title="GtkVBox">GtkVBox</a>
                                       +----GtkColorSelection
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3391183"></a><h2>Implemented Interfaces</h2>
<p>
GtkColorSelection implements
 AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3391206"></a><h2>Properties</h2>
<pre class="synopsis">

  "<a href="GtkColorSelection.html#GtkColorSelection--current-alpha">current-alpha</a>"        <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write
  "<a href="GtkColorSelection.html#GtkColorSelection--current-color">current-color</a>"        <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read / Write
  "<a href="GtkColorSelection.html#GtkColorSelection--has-opacity-control">has-opacity-control</a>"  <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkColorSelection.html#GtkColorSelection--has-palette">has-palette</a>"          <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3391292"></a><h2>Signals</h2>
<pre class="synopsis">

"<a href="GtkColorSelection.html#GtkColorSelection-color-changed">color-changed</a>"
            void        user_function      (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorselection,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)           : Run first
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3391343"></a><h2>Description</h2>
<p>
The <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a> 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 <a href="GtkColorSelectionDialog.html" title="GtkColorSelectionDialog"><span class="type">GtkColorSelectionDialog</span></a>.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3391378"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3391389"></a><h3>
<a name="GtkColorSelection-struct"></a>GtkColorSelection</h3>
<a class="indexterm" name="id3391402"></a><pre class="programlisting">typedef struct _GtkColorSelection GtkColorSelection;</pre>
<p>
The <a href="GtkColorSelection.html#GtkColorSelection-struct"><span class="type">GtkColorSelection</span></a> struct contains private data only, 
and should be accessed using the functions below.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3391428"></a><h3>
<a name="gtk-color-selection-new"></a>gtk_color_selection_new ()</h3>
<a class="indexterm" name="id3391441"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  gtk_color_selection_new         (void);</pre>
<p>
Creates a new GtkColorSelection.</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>&#160;:</span></td>
<td> a new <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3391488"></a><h3>
<a name="gtk-color-selection-set-update-policy"></a>gtk_color_selection_set_update_policy ()</h3>
<a class="indexterm" name="id3391505"></a><pre class="programlisting">void        gtk_color_selection_set_update_policy
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a href="gtk-Standard-Enumerations.html#GtkUpdateType">GtkUpdateType</a> policy);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_color_selection_set_update_policy</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the policy controlling when the color_changed signals are emitted.
The available policies are:
</p>
<div class="itemizedlist"><ul type="disc">
<li><p>
<code class="literal">GTK_UPDATE_CONTINUOUS</code> - signals are sent continuously as the color
selection changes.
</p></li>
<li><p>
<code class="literal">GTK_UPDATE_DISCONTINUOUS</code> - signals are sent only when the mouse 
button is released.
</p></li>
<li><p>
<code class="literal">GTK_UPDATE_DELAYED</code> - signals are sent when the mouse button is
released or when the mouse has been motionless for a period of
time.
</p></li>
</ul></div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td>a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>policy</code></em>&#160;:</span></td>
<td>a <a href="gtk-Standard-Enumerations.html#GtkUpdateType"><span class="type">GtkUpdateType</span></a> value indicating the desired policy.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3391670"></a><h3>
<a name="gtk-color-selection-set-has-opacity-control"></a>gtk_color_selection_set_has_opacity_control ()</h3>
<a class="indexterm" name="id3391685"></a><pre class="programlisting">void        gtk_color_selection_set_has_opacity_control
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> has_opacity);</pre>
<p>
Sets the <em class="parameter"><code>colorsel</code></em> to use or not use opacity.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>has_opacity</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>colorsel</code></em> can set the opacity, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3391798"></a><h3>
<a name="gtk-color-selection-get-has-opacity-control"></a>gtk_color_selection_get_has_opacity_control ()</h3>
<a class="indexterm" name="id3391813"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_color_selection_get_has_opacity_control
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);</pre>
<p>
Determines whether the colorsel has an opacity control.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the <em class="parameter"><code>colorsel</code></em> has an opacity control.  <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if it does't.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3391909"></a><h3>
<a name="gtk-color-selection-set-has-palette"></a>gtk_color_selection_set_has_palette ()</h3>
<a class="indexterm" name="id3391923"></a><pre class="programlisting">void        gtk_color_selection_set_has_palette
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> has_palette);</pre>
<p>
Shows and hides the palette based upon the value of <em class="parameter"><code>has_palette</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>has_palette</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if palette is to be visible, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392030"></a><h3>
<a name="gtk-color-selection-get-has-palette"></a>gtk_color_selection_get_has_palette ()</h3>
<a class="indexterm" name="id3392044"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_color_selection_get_has_palette
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);</pre>
<p>
Determines whether the color selector has a color palette.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the selector has a palette.  <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if it hasn't.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392135"></a><h3>
<a name="gtk-color-selection-get-current-alpha"></a>gtk_color_selection_get_current_alpha ()</h3>
<a class="indexterm" name="id3392148"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint16"
>guint16</a>     gtk_color_selection_get_current_alpha
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);</pre>
<p>
Returns the current alpha value.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> an integer between 0 and 65535.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392219"></a><h3>
<a name="gtk-color-selection-set-current-alpha"></a>gtk_color_selection_set_current_alpha ()</h3>
<a class="indexterm" name="id3392233"></a><pre class="programlisting">void        gtk_color_selection_set_current_alpha
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#guint16"
>guint16</a> alpha);</pre>
<p>
Sets the current opacity to be <em class="parameter"><code>alpha</code></em>.  The first time this is called, it will
also set the original opacity to be <em class="parameter"><code>alpha</code></em> too.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></td>
<td> an integer between 0 and 65535.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392327"></a><h3>
<a name="gtk-color-selection-get-current-color"></a>gtk_color_selection_get_current_color ()</h3>
<a class="indexterm" name="id3392342"></a><pre class="programlisting">void        gtk_color_selection_get_current_color
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Sets <em class="parameter"><code>color</code></em> to be the current color in the GtkColorSelection widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
><span class="type">GdkColor</span></a> to fill in with the current color.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392437"></a><h3>
<a name="gtk-color-selection-set-current-color"></a>gtk_color_selection_set_current_color ()</h3>
<a class="indexterm" name="id3392451"></a><pre class="programlisting">void        gtk_color_selection_set_current_color
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Sets the current color to be <em class="parameter"><code>color</code></em>.  The first time this is called, it will
also set the original color to be <em class="parameter"><code>color</code></em> too.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> A <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
><span class="type">GdkColor</span></a> to set the current color with.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392554"></a><h3>
<a name="gtk-color-selection-get-previous-alpha"></a>gtk_color_selection_get_previous_alpha ()</h3>
<a class="indexterm" name="id3392568"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint16"
>guint16</a>     gtk_color_selection_get_previous_alpha
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);</pre>
<p>
Returns the previous alpha value.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> an integer between 0 and 65535.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392638"></a><h3>
<a name="gtk-color-selection-set-previous-alpha"></a>gtk_color_selection_set_previous_alpha ()</h3>
<a class="indexterm" name="id3392652"></a><pre class="programlisting">void        gtk_color_selection_set_previous_alpha
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#guint16"
>guint16</a> alpha);</pre>
<p>
Sets the 'previous' alpha to be <em class="parameter"><code>alpha</code></em>.  This function should be called with
some hesitations, as it might seem confusing to have that alpha change.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>alpha</code></em>&#160;:</span></td>
<td> an integer between 0 and 65535.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392742"></a><h3>
<a name="gtk-color-selection-get-previous-color"></a>gtk_color_selection_get_previous_color ()</h3>
<a class="indexterm" name="id3392756"></a><pre class="programlisting">void        gtk_color_selection_get_previous_color
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Fills <em class="parameter"><code>color</code></em> in with the original color value.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
><span class="type">GdkColor</span></a> to fill in with the original color value.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392851"></a><h3>
<a name="gtk-color-selection-set-previous-color"></a>gtk_color_selection_set_previous_color ()</h3>
<a class="indexterm" name="id3392865"></a><pre class="programlisting">void        gtk_color_selection_set_previous_color
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Sets the 'previous' color to be <em class="parameter"><code>color</code></em>.  This function should be called with
some hesitations, as it might seem confusing to have that color change.
Calling <a href="GtkColorSelection.html#gtk-color-selection-set-current-color"><code class="function">gtk_color_selection_set_current_color()</code></a> will also set this color the first
time it is called.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
><span class="type">GdkColor</span></a> to set the previous color with.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3392975"></a><h3>
<a name="gtk-color-selection-is-adjusting"></a>gtk_color_selection_is_adjusting ()</h3>
<a class="indexterm" name="id3392989"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_color_selection_is_adjusting
                                            (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel);</pre>
<p>
Gets the current state of the <em class="parameter"><code>colorsel</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the user is currently dragging a color around, and <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>
if the selection has stopped.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3393086"></a><h3>
<a name="gtk-color-selection-palette-from-string"></a>gtk_color_selection_palette_from_string ()</h3>
<a class="indexterm" name="id3393100"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_color_selection_palette_from_string
                                            (const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *str,
                                             <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> **colors,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_colors);</pre>
<p>
Parses a color palette string; the string is a colon-separated
list of color names readable by <a
href="../gdk/gdk-Colormaps-and-Colors.html#gdk-color-parse"
><code class="function">gdk_color_parse()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>str</code></em>&#160;:</span></td>
<td> a string encoding a color palette.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>colors</code></em>&#160;:</span></td>
<td> return location for allocated array of <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
><span class="type">GdkColor</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_colors</code></em>&#160;:</span></td>
<td> return location for length of array.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if a palette was successfully parsed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3393236"></a><h3>
<a name="gtk-color-selection-palette-to-string"></a>gtk_color_selection_palette_to_string ()</h3>
<a class="indexterm" name="id3393250"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>*      gtk_color_selection_palette_to_string
                                            (const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *colors,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_colors);</pre>
<p>
Encodes a palette as a string, useful for persistent storage.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colors</code></em>&#160;:</span></td>
<td> an array of colors.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_colors</code></em>&#160;:</span></td>
<td> length of the array.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> allocated string encoding the palette.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3393335"></a><h3>
<a name="gtk-color-selection-set-change-palette-hook"></a>gtk_color_selection_set_change_palette_hook ()</h3>
<a class="indexterm" name="id3393352"></a><pre class="programlisting"><a href="GtkColorSelection.html#GtkColorSelectionChangePaletteFunc">GtkColorSelectionChangePaletteFunc</a> gtk_color_selection_set_change_palette_hook
                                            (<a href="GtkColorSelection.html#GtkColorSelectionChangePaletteFunc">GtkColorSelectionChangePaletteFunc</a> func);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_color_selection_set_change_palette_hook</code> is deprecated and should not be used in newly-written code. This function is deprecated in favor of 
<a href="GtkColorSelection.html#gtk-color-selection-set-change-palette-with-screen-hook"><code class="function">gtk_color_selection_set_change_palette_with_screen_hook()</code></a>, and does
not work in multihead environments.</p>
</div>
<p>
Installs a global function to be called whenever the user tries to
modify the palette in a color selection. This function should save
the new palette contents, and update the GtkSettings property
"gtk-color-palette" so all GtkColorSelection widgets will be modified.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></td>
<td> a function to call when the custom palette needs saving.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the previous change palette hook (that was replaced).

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3393448"></a><h3>
<a name="GtkColorSelectionChangePaletteFunc"></a>GtkColorSelectionChangePaletteFunc ()</h3>
<a class="indexterm" name="id3393462"></a><pre class="programlisting">void        (*GtkColorSelectionChangePaletteFunc)
                                            (const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *colors,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_colors);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colors</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_colors</code></em>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3393530"></a><h3>
<a name="gtk-color-selection-set-change-palette-with-screen-hook"></a>gtk_color_selection_set_change_palette_with_screen_hook ()</h3>
<a class="indexterm" name="id3393546"></a><pre class="programlisting"><a href="GtkColorSelection.html#GtkColorSelectionChangePaletteWithScreenFunc">GtkColorSelectionChangePaletteWithScreenFunc</a> gtk_color_selection_set_change_palette_with_screen_hook
                                            (<a href="GtkColorSelection.html#GtkColorSelectionChangePaletteWithScreenFunc">GtkColorSelectionChangePaletteWithScreenFunc</a> func);</pre>
<p>
Installs a global function to be called whenever the user tries to
modify the palette in a color selection. This function should save
the new palette contents, and update the GtkSettings property
"gtk-color-palette" so all GtkColorSelection widgets will be modified.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>func</code></em>&#160;:</span></td>
<td> a function to call when the custom palette needs saving.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the previous change palette hook (that was replaced).

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3393622"></a><h3>
<a name="GtkColorSelectionChangePaletteWithScreenFunc"></a>GtkColorSelectionChangePaletteWithScreenFunc ()</h3>
<a class="indexterm" name="id3393639"></a><pre class="programlisting">void        (*GtkColorSelectionChangePaletteWithScreenFunc)
                                            (<a
href="../gdk/GdkScreen.html"
>GdkScreen</a> *screen,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *colors,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> n_colors);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>screen</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>colors</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_colors</code></em>&#160;:</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.2


</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3393734"></a><h3>
<a name="gtk-color-selection-set-color"></a>gtk_color_selection_set_color ()</h3>
<a class="indexterm" name="id3393751"></a><pre class="programlisting">void        gtk_color_selection_set_color   (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *color);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_color_selection_set_color</code> is deprecated and should not be used in newly-written code. Use <a href="GtkColorSelection.html#gtk-color-selection-set-current-color"><code class="function">gtk_color_selection_set_current_color()</code></a> instead.</p>
</div>
<p>
Sets the current color to be <em class="parameter"><code>color</code></em>.  The first time this is called, it will
also set the original color to be <em class="parameter"><code>color</code></em> too.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> an array of 4 doubles specifying the red, green, blue and opacity 
  to set the current color to.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3393870"></a><h3>
<a name="gtk-color-selection-get-color"></a>gtk_color_selection_get_color ()</h3>
<a class="indexterm" name="id3393886"></a><pre class="programlisting">void        gtk_color_selection_get_color   (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorsel,
                                             <a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> *color);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_color_selection_get_color</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets <em class="parameter"><code>color</code></em> to be the current color in the GtkColorSelection widget.
</p>
<p>
This function is deprecated, use <a href="GtkColorSelection.html#gtk-color-selection-get-current-color"><code class="function">gtk_color_selection_get_current_color()</code></a> instead.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorsel</code></em>&#160;:</span></td>
<td> a <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> an array of 4 <a
href="../glib/glib-Basic-Types.html#gdouble"
><span class="type">gdouble</span></a> to fill in with the current color.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3394011"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3394021"></a><h3>
<a name="GtkColorSelection--current-alpha"></a>The "<code class="literal">current-alpha</code>" property</h3>
<a class="indexterm" name="id3394038"></a><pre class="programlisting">  "current-alpha"        <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>                 : Read / Write</pre>
<p>The current opacity value (0 fully transparent, 65535 fully opaque).</p>
<p>Allowed values: &lt;= 65535</p>
<p>Default value: 65535</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3394070"></a><h3>
<a name="GtkColorSelection--current-color"></a>The "<code class="literal">current-color</code>" property</h3>
<a class="indexterm" name="id3394087"></a><pre class="programlisting">  "current-color"        <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read / Write</pre>
<p>The current color.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3394110"></a><h3>
<a name="GtkColorSelection--has-opacity-control"></a>The "<code class="literal">has-opacity-control</code>" property</h3>
<a class="indexterm" name="id3394127"></a><pre class="programlisting">  "has-opacity-control"  <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the color selector should allow setting opacity.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3394154"></a><h3>
<a name="GtkColorSelection--has-palette"></a>The "<code class="literal">has-palette</code>" property</h3>
<a class="indexterm" name="id3394171"></a><pre class="programlisting">  "has-palette"          <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether a palette should be used.</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3394199"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3394209"></a><h3>
<a name="GtkColorSelection-color-changed"></a>The "color-changed" signal</h3>
<a class="indexterm" name="id3394220"></a><pre class="programlisting">void        user_function                  (<a href="GtkColorSelection.html" title="GtkColorSelection">GtkColorSelection</a> *colorselection,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)           : Run first</pre>
<p>
This signal is emitted when the color changes in the <a href="GtkColorSelection.html" title="GtkColorSelection"><span class="type">GtkColorSelection</span></a>
according to its update policy.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>colorselection</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>