<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>GtkColorChooserWidget: GTK+ 3 Reference Manual</title> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="index.html" title="GTK+ 3 Reference Manual"> <link rel="up" href="SelectorWidgets.html" title="Selector Widgets and Dialogs"> <link rel="prev" href="GtkColorButton.html" title="GtkColorButton"> <link rel="next" href="GtkColorChooserDialog.html" title="GtkColorChooserDialog"> <meta name="generator" content="GTK-Doc V1.24.1 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </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="5"><tr valign="middle"> <td width="100%" align="left" class="shortcuts"> <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> <a href="#GtkColorChooserWidget.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> <a href="#GtkColorChooserWidget.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span> <a href="#GtkColorChooserWidget.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span> <a href="#GtkColorChooserWidget.properties" class="shortcut">Properties</a></span> </td> <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> <td><a accesskey="u" href="SelectorWidgets.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> <td><a accesskey="p" href="GtkColorButton.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> <td><a accesskey="n" href="GtkColorChooserDialog.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> </tr></table> <div class="refentry"> <a name="GtkColorChooserWidget"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle"><a name="GtkColorChooserWidget.top_of_page"></a>GtkColorChooserWidget</span></h2> <p>GtkColorChooserWidget — A widget for choosing colors</p> </td> <td class="gallery_image" valign="top" align="right"></td> </tr></table></div> <div class="refsect1"> <a name="GtkColorChooserWidget.functions"></a><h2>Functions</h2> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="150px" class="functions_return"> <col class="functions_name"> </colgroup> <tbody><tr> <td class="function_type"> <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * </td> <td class="function_name"> <a class="link" href="GtkColorChooserWidget.html#gtk-color-chooser-widget-new" title="gtk_color_chooser_widget_new ()">gtk_color_chooser_widget_new</a> <span class="c_punctuation">()</span> </td> </tr></tbody> </table></div> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.properties"></a><h2>Properties</h2> <div class="informaltable"><table border="0"> <colgroup> <col width="150px" class="properties_type"> <col width="300px" class="properties_name"> <col width="200px" class="properties_flags"> </colgroup> <tbody><tr> <td class="property_type"><a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td> <td class="property_name"><a class="link" href="GtkColorChooserWidget.html#GtkColorChooserWidget--show-editor" title="The “show-editor” property">show-editor</a></td> <td class="property_flags">Read / Write</td> </tr></tbody> </table></div> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.other"></a><h2>Types and Values</h2> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="150px" class="name"> <col class="description"> </colgroup> <tbody> <tr> <td class="datatype_keyword">struct</td> <td class="function_name"><a class="link" href="GtkColorChooserWidget.html#GtkColorChooserWidget-struct" title="struct GtkColorChooserWidget">GtkColorChooserWidget</a></td> </tr> <tr> <td class="datatype_keyword">struct</td> <td class="function_name"><a class="link" href="GtkColorChooserWidget.html#GtkColorChooserWidgetClass" title="struct GtkColorChooserWidgetClass">GtkColorChooserWidgetClass</a></td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.object-hierarchy"></a><h2>Object Hierarchy</h2> <pre class="screen"> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a> <span class="lineart">╰──</span> <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> <span class="lineart">╰──</span> <a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a> <span class="lineart">╰──</span> <a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a> <span class="lineart">╰──</span> <a class="link" href="GtkBox.html" title="GtkBox">GtkBox</a> <span class="lineart">╰──</span> GtkColorChooserWidget </pre> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.implemented-interfaces"></a><h2>Implemented Interfaces</h2> <p> GtkColorChooserWidget implements AtkImplementorIface, <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a>, <a class="link" href="gtk3-Orientable.html#GtkOrientable">GtkOrientable</a> and <a class="link" href="GtkColorChooser.html" title="GtkColorChooser">GtkColorChooser</a>.</p> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.includes"></a><h2>Includes</h2> <pre class="synopsis">#include <gtk/gtk.h> </pre> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.description"></a><h2>Description</h2> <p>The <a class="link" href="GtkColorChooserWidget.html" title="GtkColorChooserWidget"><span class="type">GtkColorChooserWidget</span></a> widget lets the user select a color. By default, the chooser presents a predefined palette of colors, plus a small number of settable custom colors. It is also possible to select a different color with the single-color editor. To enter the single-color editing mode, use the context menu of any color of the palette, or use the '+' button to add a new custom color.</p> <p>The chooser automatically remembers the last selection, as well as custom colors.</p> <p>To change the initially selected color, use <a class="link" href="GtkColorChooser.html#gtk-color-chooser-set-rgba" title="gtk_color_chooser_set_rgba ()"><code class="function">gtk_color_chooser_set_rgba()</code></a>. To get the selected color use <a class="link" href="GtkColorChooser.html#gtk-color-chooser-get-rgba" title="gtk_color_chooser_get_rgba ()"><code class="function">gtk_color_chooser_get_rgba()</code></a>.</p> <p>The <a class="link" href="GtkColorChooserWidget.html" title="GtkColorChooserWidget"><span class="type">GtkColorChooserWidget</span></a> is used in the <a class="link" href="GtkColorChooserDialog.html" title="GtkColorChooserDialog"><span class="type">GtkColorChooserDialog</span></a> to provide a dialog for selecting colors.</p> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.functions_details"></a><h2>Functions</h2> <div class="refsect2"> <a name="gtk-color-chooser-widget-new"></a><h3>gtk_color_chooser_widget_new ()</h3> <pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * gtk_color_chooser_widget_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre> <p>Creates a new <a class="link" href="GtkColorChooserWidget.html" title="GtkColorChooserWidget"><span class="type">GtkColorChooserWidget</span></a>.</p> <div class="refsect3"> <a name="id-1.3.14.4.10.2.5"></a><h4>Returns</h4> <p> a new <a class="link" href="GtkColorChooserWidget.html" title="GtkColorChooserWidget"><span class="type">GtkColorChooserWidget</span></a></p> </div> <p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></p> </div> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.other_details"></a><h2>Types and Values</h2> <div class="refsect2"> <a name="GtkColorChooserWidget-struct"></a><h3>struct GtkColorChooserWidget</h3> <pre class="programlisting">struct GtkColorChooserWidget;</pre> </div> <hr> <div class="refsect2"> <a name="GtkColorChooserWidgetClass"></a><h3>struct GtkColorChooserWidgetClass</h3> <pre class="programlisting">struct GtkColorChooserWidgetClass { GtkBoxClass parent_class; }; </pre> <div class="refsect3"> <a name="id-1.3.14.4.11.3.4"></a><h4>Members</h4> <div class="informaltable"><table width="100%" border="0"> <colgroup> <col width="300px" class="struct_members_name"> <col class="struct_members_description"> <col width="200px" class="struct_members_annotations"> </colgroup> <tbody><tr> <td class="struct_member_name"><p><a class="link" href="GtkBox.html#GtkBoxClass" title="struct GtkBoxClass"><span class="type">GtkBoxClass</span></a> <em class="structfield"><code><a name="GtkColorChooserWidgetClass.parent-class"></a>parent_class</code></em>;</p></td> <td class="struct_member_description"><p>The parent class.</p></td> <td class="struct_member_annotations"> </td> </tr></tbody> </table></div> </div> </div> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.property-details"></a><h2>Property Details</h2> <div class="refsect2"> <a name="GtkColorChooserWidget--show-editor"></a><h3>The <code class="literal">“show-editor”</code> property</h3> <pre class="programlisting"> “show-editor” <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre> <p>The ::show-editor property is <a href="/home/vagrant/ruby-gnome2.win64/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> when the color chooser is showing the single-color editor. It can be set to switch the color chooser into single-color editing mode.</p> <p>Flags: Read / Write</p> <p>Default value: FALSE</p> <p class="since">Since: <a class="link" href="api-index-3-4.html#api-index-3.4">3.4</a></p> </div> </div> <div class="refsect1"> <a name="GtkColorChooserWidget.see-also"></a><h2>See Also</h2> <p><a class="link" href="GtkColorChooserDialog.html" title="GtkColorChooserDialog"><span class="type">GtkColorChooserDialog</span></a></p> </div> </div> <div class="footer"> <hr>Generated by GTK-Doc V1.24.1</div> </body> </html>