51
51
<a class="link" href="GtkColorButton.html#GtkColorButton-struct" title="GtkColorButton">GtkColorButton</a>;
52
52
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkColorButton.html#gtk-color-button-new" title="gtk_color_button_new ()">gtk_color_button_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
53
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkColorButton.html#gtk-color-button-new-with-color" title="gtk_color_button_new_with_color ()">gtk_color_button_new_with_color</a> (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);
53
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GtkColorButton.html#gtk-color-button-new-with-color" title="gtk_color_button_new_with_color ()">gtk_color_button_new_with_color</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);
54
54
<span class="returnvalue">void</span> <a class="link" href="GtkColorButton.html#gtk-color-button-set-color" title="gtk_color_button_set_color ()">gtk_color_button_set_color</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
55
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);
55
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);
56
56
<span class="returnvalue">void</span> <a class="link" href="GtkColorButton.html#gtk-color-button-get-color" title="gtk_color_button_get_color ()">gtk_color_button_get_color</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
57
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);
57
<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);
58
58
<span class="returnvalue">void</span> <a class="link" href="GtkColorButton.html#gtk-color-button-set-alpha" title="gtk_color_button_set_alpha ()">gtk_color_button_set_alpha</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
59
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> alpha</code></em>);
60
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> <a class="link" href="GtkColorButton.html#gtk-color-button-get-alpha" title="gtk_color_button_get_alpha ()">gtk_color_button_get_alpha</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>);
59
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> alpha</code></em>);
60
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="returnvalue">guint16</span></a> <a class="link" href="GtkColorButton.html#gtk-color-button-get-alpha" title="gtk_color_button_get_alpha ()">gtk_color_button_get_alpha</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>);
61
61
<span class="returnvalue">void</span> <a class="link" href="GtkColorButton.html#gtk-color-button-set-use-alpha" title="gtk_color_button_set_use_alpha ()">gtk_color_button_set_use_alpha</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
62
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_alpha</code></em>);
63
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkColorButton.html#gtk-color-button-get-use-alpha" title="gtk_color_button_get_use_alpha ()">gtk_color_button_get_use_alpha</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>);
62
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_alpha</code></em>);
63
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="GtkColorButton.html#gtk-color-button-get-use-alpha" title="gtk_color_button_get_use_alpha ()">gtk_color_button_get_use_alpha</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>);
64
64
<span class="returnvalue">void</span> <a class="link" href="GtkColorButton.html#gtk-color-button-set-title" title="gtk_color_button_set_title ()">gtk_color_button_set_title</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
65
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);
66
const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GtkColorButton.html#gtk-color-button-get-title" title="gtk_color_button_get_title ()">gtk_color_button_get_title</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>);
65
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);
66
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="GtkColorButton.html#gtk-color-button-get-title" title="gtk_color_button_get_title ()">gtk_color_button_get_title</a> (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>);
69
69
<div class="refsect1" title="Object Hierarchy">
70
70
<a name="GtkColorButton.object-hierarchy"></a><h2>Object Hierarchy</h2>
71
71
<pre class="synopsis">
72
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
73
+----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
72
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
73
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
74
74
+----<a class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
75
75
+----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
76
76
+----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
88
88
<div class="refsect1" title="Properties">
89
89
<a name="GtkColorButton.properties"></a><h2>Properties</h2>
90
90
<pre class="synopsis">
91
"<a class="link" href="GtkColorButton.html#GtkColorButton--alpha" title='The "alpha" property'>alpha</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
92
"<a class="link" href="GtkColorButton.html#GtkColorButton--color" title='The "color" property'>color</a>" <a href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a>* : Read / Write
93
"<a class="link" href="GtkColorButton.html#GtkColorButton--title" title='The "title" property'>title</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
94
"<a class="link" href="GtkColorButton.html#GtkColorButton--use-alpha" title='The "use-alpha" property'>use-alpha</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
91
"<a class="link" href="GtkColorButton.html#GtkColorButton--alpha" title='The "alpha" property'>alpha</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
92
"<a class="link" href="GtkColorButton.html#GtkColorButton--color" title='The "color" property'>color</a>" <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a>* : Read / Write
93
"<a class="link" href="GtkColorButton.html#GtkColorButton--title" title='The "title" property'>title</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
94
"<a class="link" href="GtkColorButton.html#GtkColorButton--use-alpha" title='The "use-alpha" property'>use-alpha</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
97
97
<div class="refsect1" title="Signals">
169
169
<div class="refsect2" title="gtk_color_button_set_color ()">
170
170
<a name="gtk-color-button-set-color"></a><h3>gtk_color_button_set_color ()</h3>
171
171
<pre class="programlisting"><span class="returnvalue">void</span> gtk_color_button_set_color (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
172
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);</pre>
172
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/gdk/unstable/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);</pre>
174
174
Sets the current color to be <em class="parameter"><code>color</code></em>.
194
194
<div class="refsect2" title="gtk_color_button_get_color ()">
195
195
<a name="gtk-color-button-get-color"></a><h3>gtk_color_button_get_color ()</h3>
196
196
<pre class="programlisting"><span class="returnvalue">void</span> gtk_color_button_get_color (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
197
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gdk/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);</pre>
197
<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk/unstable/gdk-Colormaps-and-Colors.html#GdkColor"><span class="type">GdkColor</span></a> *color</code></em>);</pre>
199
199
Sets <em class="parameter"><code>color</code></em> to be the current color in the <a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> widget.
219
219
<div class="refsect2" title="gtk_color_button_set_alpha ()">
220
220
<a name="gtk-color-button-set-alpha"></a><h3>gtk_color_button_set_alpha ()</h3>
221
221
<pre class="programlisting"><span class="returnvalue">void</span> gtk_color_button_set_alpha (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
222
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> alpha</code></em>);</pre>
222
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> alpha</code></em>);</pre>
224
224
Sets the current opacity to be <em class="parameter"><code>alpha</code></em>.
269
269
<div class="refsect2" title="gtk_color_button_set_use_alpha ()">
270
270
<a name="gtk-color-button-set-use-alpha"></a><h3>gtk_color_button_set_use_alpha ()</h3>
271
271
<pre class="programlisting"><span class="returnvalue">void</span> gtk_color_button_set_use_alpha (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
272
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_alpha</code></em>);</pre>
272
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_alpha</code></em>);</pre>
274
274
Sets whether or not the color button should use the alpha channel.
320
320
<div class="refsect2" title="gtk_color_button_set_title ()">
321
321
<a name="gtk-color-button-set-title"></a><h3>gtk_color_button_set_title ()</h3>
322
322
<pre class="programlisting"><span class="returnvalue">void</span> gtk_color_button_set_title (<em class="parameter"><code><a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *color_button</code></em>,
323
<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
323
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
325
325
Sets the title for the color selection dialog.
402
402
<div class="refsect2" title='The "use-alpha" property'>
403
403
<a name="GtkColorButton--use-alpha"></a><h3>The <code class="literal">"use-alpha"</code> property</h3>
404
<pre class="programlisting"> "use-alpha" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
404
<pre class="programlisting"> "use-alpha" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
406
If this property is set to <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the color swatch on the button is rendered against a
406
If this property is set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the color swatch on the button is rendered against a
407
407
checkerboard background to show its opacity and the opacity slider is displayed in the
408
408
color selection dialog.
416
416
<div class="refsect2" title='The "color-set" signal'>
417
417
<a name="GtkColorButton-color-set"></a><h3>The <code class="literal">"color-set"</code> signal</h3>
418
418
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GtkColorButton.html" title="GtkColorButton"><span class="type">GtkColorButton</span></a> *widget,
419
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run First</pre>
419
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run First</pre>
421
421
The ::color-set signal is emitted when the user selects a color.
422
422
When handling this signal, use <a class="link" href="GtkColorButton.html#gtk-color-button-get-color" title="gtk_color_button_get_color ()"><code class="function">gtk_color_button_get_color()</code></a> and