<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
<!ENTITY pi "&#960;">
<!ENTITY solidus "&#8260;">
]>
<refentry id="GtkColorChooser">
<refmeta>
<refentrytitle role="top_of_page" id="GtkColorChooser.top_of_page">GtkColorChooser</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkColorChooser</refname>
<refpurpose>Interface implemented by widgets for choosing colors</refpurpose>
</refnamediv>

<refsect1 id="GtkColorChooser.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-color-chooser-get-rgba">gtk_color_chooser_get_rgba</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-color-chooser-set-rgba">gtk_color_chooser_set_rgba</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-color-chooser-get-use-alpha">gtk_color_chooser_get_use_alpha</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-color-chooser-set-use-alpha">gtk_color_chooser_set_use_alpha</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-color-chooser-add-palette">gtk_color_chooser_add_palette</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-hsv-to-rgb">gtk_hsv_to_rgb</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-rgb-to-hsv">gtk_rgb_to_hsv</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkColorChooser.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="GdkRGBA"><type>GdkRGBA</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkColorChooser--rgba">rgba</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkColorChooser--use-alpha">use-alpha</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkColorChooser.signals" role="signal_proto">
<title role="signal_proto.title">Signals</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="signal_proto_type" colwidth="150px"/>
<colspec colname="signal_proto_name" colwidth="300px"/>
<colspec colname="signal_proto_flags" colwidth="200px"/>
<tbody>
<row><entry role="signal_type"><link linkend="void"><returnvalue>void</returnvalue></link></entry><entry role="signal_name"><link linkend="GtkColorChooser-color-activated">color-activated</link></entry><entry role="signal_flags"><link linkend="G-SIGNAL-RUN-FIRST:CAPS">Run First</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkColorChooser.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="other_proto_type" colwidth="150px"/>
<colspec colname="other_proto_name"/>
<tbody>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="GtkColorChooser-struct">GtkColorChooser</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkColorChooser.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GInterface">GInterface</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkColorChooser
</screen>
</refsect1>
<refsect1 id="GtkColorChooser.prerequisites" role="prerequisites">
<title role="prerequisites.title">Prerequisites</title>
<para>
GtkColorChooser requires
 <link linkend="GObject">GObject</link>.</para>

</refsect1>
<refsect1 id="GtkColorChooser.implementations" role="implementations">
<title role="implementations.title">Known Implementations</title>
<para>
GtkColorChooser is implemented by
 <link linkend="GtkColorButton">GtkColorButton</link>,  <link linkend="GtkColorChooserDialog">GtkColorChooserDialog</link> and  <link linkend="GtkColorChooserWidget">GtkColorChooserWidget</link>.</para>

</refsect1>

<refsect1 id="GtkColorChooser.includes"><title>Includes</title><synopsis>#include &lt;gtk/gtk.h&gt;
</synopsis></refsect1>

<refsect1 id="GtkColorChooser.description" role="desc">
<title role="desc.title">Description</title>
<para><link linkend="GtkColorChooser"><type>GtkColorChooser</type></link> is an interface that is implemented by widgets
for choosing colors. Depending on the situation, colors may be
allowed to have alpha (translucency).</para>
<para>In GTK+, the main widgets that implement this interface are
<link linkend="GtkColorChooserWidget"><type>GtkColorChooserWidget</type></link>, <link linkend="GtkColorChooserDialog"><type>GtkColorChooserDialog</type></link> and <link linkend="GtkColorButton"><type>GtkColorButton</type></link>.</para>

</refsect1>
<refsect1 id="GtkColorChooser.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-color-chooser-get-rgba" role="function">
<title>gtk_color_chooser_get_rgba&#160;()</title>
<indexterm zone="gtk-color-chooser-get-rgba"><primary>gtk_color_chooser_get_rgba</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_color_chooser_get_rgba (<parameter><link linkend="GtkColorChooser"><type>GtkColorChooser</type></link> *chooser</parameter>,
                            <parameter><link linkend="GdkRGBA"><type>GdkRGBA</type></link> *color</parameter>);</programlisting>
<para>Gets the currently-selected color.</para>
<refsect3 id="gtk-color-chooser-get-rgba.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>chooser</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkColorChooser"><type>GtkColorChooser</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>color</para></entry>
<entry role="parameter_description"><para>a <link linkend="GdkRGBA"><type>GdkRGBA</type></link> to fill in with the current color. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-color-chooser-set-rgba" role="function">
<title>gtk_color_chooser_set_rgba&#160;()</title>
<indexterm zone="gtk-color-chooser-set-rgba"><primary>gtk_color_chooser_set_rgba</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_color_chooser_set_rgba (<parameter><link linkend="GtkColorChooser"><type>GtkColorChooser</type></link> *chooser</parameter>,
                            <parameter>const <link linkend="GdkRGBA"><type>GdkRGBA</type></link> *color</parameter>);</programlisting>
<para>Sets the color.</para>
<refsect3 id="gtk-color-chooser-set-rgba.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>chooser</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkColorChooser"><type>GtkColorChooser</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>color</para></entry>
<entry role="parameter_description"><para>the new color</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-color-chooser-get-use-alpha" role="function">
<title>gtk_color_chooser_get_use_alpha&#160;()</title>
<indexterm zone="gtk-color-chooser-get-use-alpha"><primary>gtk_color_chooser_get_use_alpha</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_color_chooser_get_use_alpha (<parameter><link linkend="GtkColorChooser"><type>GtkColorChooser</type></link> *chooser</parameter>);</programlisting>
<para>Returns whether the color chooser shows the alpha channel.</para>
<refsect3 id="gtk-color-chooser-get-use-alpha.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>chooser</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkColorChooser"><type>GtkColorChooser</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-color-chooser-get-use-alpha.returns" role="returns">
<title>Returns</title>
<para> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the color chooser uses the alpha channel,
<link linkend="FALSE:CAPS"><literal>FALSE</literal></link> if not</para>
</refsect3></refsect2>
<refsect2 id="gtk-color-chooser-set-use-alpha" role="function">
<title>gtk_color_chooser_set_use_alpha&#160;()</title>
<indexterm zone="gtk-color-chooser-set-use-alpha"><primary>gtk_color_chooser_set_use_alpha</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_color_chooser_set_use_alpha (<parameter><link linkend="GtkColorChooser"><type>GtkColorChooser</type></link> *chooser</parameter>,
                                 <parameter><link linkend="gboolean"><type>gboolean</type></link> use_alpha</parameter>);</programlisting>
<para>Sets whether or not the color chooser should use the alpha channel.</para>
<refsect3 id="gtk-color-chooser-set-use-alpha.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>chooser</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkColorChooser"><type>GtkColorChooser</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>use_alpha</para></entry>
<entry role="parameter_description"><para><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if color chooser should use alpha channel, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> if not</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-color-chooser-add-palette" role="function">
<title>gtk_color_chooser_add_palette&#160;()</title>
<indexterm zone="gtk-color-chooser-add-palette"><primary>gtk_color_chooser_add_palette</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_color_chooser_add_palette (<parameter><link linkend="GtkColorChooser"><type>GtkColorChooser</type></link> *chooser</parameter>,
                               <parameter><link linkend="GtkOrientation"><type>GtkOrientation</type></link> orientation</parameter>,
                               <parameter><link linkend="gint"><type>gint</type></link> colors_per_line</parameter>,
                               <parameter><link linkend="gint"><type>gint</type></link> n_colors</parameter>,
                               <parameter><link linkend="GdkRGBA"><type>GdkRGBA</type></link> *colors</parameter>);</programlisting>
<para>Adds a palette to the color chooser. If <parameter>orientation</parameter>
 is horizontal,
the colors are grouped in rows, with <parameter>colors_per_line</parameter>
 colors
in each row. If <parameter>horizontal</parameter>
 is <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>, the colors are grouped
in columns instead.</para>
<para>The default color palette of <link linkend="GtkColorChooserWidget"><type>GtkColorChooserWidget</type></link> has
27 colors, organized in columns of 3 colors. The default gray
palette has 9 grays in a single row.</para>
<para>The layout of the color chooser widget works best when the
palettes have 9-10 columns.</para>
<para>Calling this function for the first time has the
side effect of removing the default color and gray palettes
from the color chooser.</para>
<para>If <parameter>colors</parameter>
 is <link linkend="NULL:CAPS"><literal>NULL</literal></link>, removes all previously added palettes.</para>
<refsect3 id="gtk-color-chooser-add-palette.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>chooser</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkColorChooser"><type>GtkColorChooser</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>orientation</para></entry>
<entry role="parameter_description"><para><link linkend="GTK-ORIENTATION-HORIZONTAL:CAPS"><literal>GTK_ORIENTATION_HORIZONTAL</literal></link> if the palette should
be displayed in rows, <link linkend="GTK-ORIENTATION-VERTICAL:CAPS"><literal>GTK_ORIENTATION_VERTICAL</literal></link> for columns</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>colors_per_line</para></entry>
<entry role="parameter_description"><para>the number of colors to show in each row/column</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>n_colors</para></entry>
<entry role="parameter_description"><para>the total number of elements in <parameter>colors</parameter>
</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>colors</para></entry>
<entry role="parameter_description"><para>the colors of the palette, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>][<acronym>array</acronym> length=n_colors]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-hsv-to-rgb" role="function">
<title>gtk_hsv_to_rgb&#160;()</title>
<indexterm zone="gtk-hsv-to-rgb"><primary>gtk_hsv_to_rgb</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_hsv_to_rgb (<parameter><link linkend="float"><type>float</type></link> h</parameter>,
                <parameter><link linkend="float"><type>float</type></link> s</parameter>,
                <parameter><link linkend="float"><type>float</type></link> v</parameter>,
                <parameter><link linkend="float"><type>float</type></link> *r</parameter>,
                <parameter><link linkend="float"><type>float</type></link> *g</parameter>,
                <parameter><link linkend="float"><type>float</type></link> *b</parameter>);</programlisting>
<para>Converts a color from HSV space to RGB.</para>
<para>Input values must be in the [0.0, 1.0] range;
output values will be in the same range.</para>
<refsect3 id="gtk-hsv-to-rgb.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>h</para></entry>
<entry role="parameter_description"><para>Hue</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>s</para></entry>
<entry role="parameter_description"><para>Saturation</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>v</para></entry>
<entry role="parameter_description"><para>Value</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>r</para></entry>
<entry role="parameter_description"><para>Return value for the red component. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>g</para></entry>
<entry role="parameter_description"><para>Return value for the green component. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>b</para></entry>
<entry role="parameter_description"><para>Return value for the blue component. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-rgb-to-hsv" role="function">
<title>gtk_rgb_to_hsv&#160;()</title>
<indexterm zone="gtk-rgb-to-hsv"><primary>gtk_rgb_to_hsv</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_rgb_to_hsv (<parameter><link linkend="float"><type>float</type></link> r</parameter>,
                <parameter><link linkend="float"><type>float</type></link> g</parameter>,
                <parameter><link linkend="float"><type>float</type></link> b</parameter>,
                <parameter><link linkend="float"><type>float</type></link> *h</parameter>,
                <parameter><link linkend="float"><type>float</type></link> *s</parameter>,
                <parameter><link linkend="float"><type>float</type></link> *v</parameter>);</programlisting>
<para>Converts a color from RGB space to HSV.</para>
<para>Input values must be in the [0.0, 1.0] range;
output values will be in the same range.</para>
<refsect3 id="gtk-rgb-to-hsv.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>r</para></entry>
<entry role="parameter_description"><para>Red</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>g</para></entry>
<entry role="parameter_description"><para>Green</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>b</para></entry>
<entry role="parameter_description"><para>Blue</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>h</para></entry>
<entry role="parameter_description"><para>Return value for the hue component. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>s</para></entry>
<entry role="parameter_description"><para>Return value for the saturation component. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>v</para></entry>
<entry role="parameter_description"><para>Return value for the value component. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkColorChooser.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkColorChooser-struct" role="struct">
<title>GtkColorChooser</title>
<indexterm zone="GtkColorChooser-struct"><primary>GtkColorChooser</primary></indexterm>
<programlisting language="C">typedef struct _GtkColorChooser GtkColorChooser;</programlisting>
</refsect2>

</refsect1>
<refsect1 id="GtkColorChooser.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkColorChooser--rgba" role="property"><title>The <literal>“rgba”</literal> property</title>
<indexterm zone="GtkColorChooser--rgba"><primary>GtkColorChooser:rgba</primary></indexterm>
<programlisting>  “rgba”                     <link linkend="GdkRGBA"><type>GdkRGBA</type></link>&#160;*</programlisting>
<para>The ::rgba property contains the currently selected color,
as a <link linkend="GdkRGBA"><type>GdkRGBA</type></link> struct. The property can be set to change
the current selection programmatically.</para>
<para>Owner: GtkColorChooser</para>
<para>Flags: Read / Write</para>
</refsect2>
<refsect2 id="GtkColorChooser--use-alpha" role="property"><title>The <literal>“use-alpha”</literal> property</title>
<indexterm zone="GtkColorChooser--use-alpha"><primary>GtkColorChooser:use-alpha</primary></indexterm>
<programlisting>  “use-alpha”                <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>When ::use-alpha is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, colors may have alpha (translucency)
information. When it is <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>, the <link linkend="GdkRGBA"><type>GdkRGBA</type></link> struct obtained
via the <link linkend="GtkColorChooser--rgba"><type>“rgba”</type></link> property will be forced to have
alpha == 1.</para>
<para>Implementations are expected to show alpha by rendering the color
over a non-uniform background (like a checkerboard pattern).</para>
<para>Owner: GtkColorChooser</para>
<para>Flags: Read / Write</para>
<para>Default value: TRUE</para>
</refsect2>

</refsect1>
<refsect1 id="GtkColorChooser.signal-details" role="signals">
<title role="signals.title">Signal Details</title>
<refsect2 id="GtkColorChooser-color-activated" role="signal"><title>The <literal>“color-activated”</literal> signal</title>
<indexterm zone="GtkColorChooser-color-activated"><primary>GtkColorChooser::color-activated</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
user_function (<link linkend="GtkColorChooser"><type>GtkColorChooser</type></link> *chooser,
               <link linkend="GdkRGBA"><type>GdkRGBA</type></link>         *color,
               <link linkend="gpointer"><type>gpointer</type></link>         user_data)</programlisting>
<para>Emitted when a color is activated from the color chooser.
This usually happens when the user clicks a color swatch,
or a color is selected and the user presses one of the keys
Space, Shift+Space, Return or Enter.</para>
<refsect3 id="GtkColorChooser-color-activated.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>chooser</para></entry>
<entry role="parameter_description"><para>the object which received the signal</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>color</para></entry>
<entry role="parameter_description"><para>the color</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><simpara>user_data</simpara></entry>
<entry role="parameter_description"><simpara>user data set when the signal handler was connected.</simpara></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><para>Flags: <link linkend="G-SIGNAL-RUN-FIRST:CAPS">Run First</link></para>
</refsect2>
</refsect1>
<refsect1 id="GtkColorChooser.see-also">
<title>See Also</title>
<para><link linkend="GtkColorChooserDialog"><type>GtkColorChooserDialog</type></link>, <link linkend="GtkColorChooserWidget"><type>GtkColorChooserWidget</type></link>, <link linkend="GtkColorButton"><type>GtkColorButton</type></link></para>

</refsect1>

</refentry>
