58
58
<a name="GimpColorButton.synopsis"></a><h2>Synopsis</h2>
59
59
<pre class="synopsis">
60
60
<a class="link" href="GimpColorButton.html#GimpColorButton-struct" title="GimpColorButton">GimpColorButton</a>;
62
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
63
>GtkWidget</a>* <a class="link" href="GimpColorButton.html#gimp-color-button-new" title="gimp_color_button_new ()">gimp_color_button_new</a> (const <a
64
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
67
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
70
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
61
GtkWidget* <a class="link" href="GimpColorButton.html#gimp-color-button-new" title="gimp_color_button_new ()">gimp_color_button_new</a> (const gchar *title,
73
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
65
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
74
66
>GimpRGB</a> *color,
75
67
<a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a> type);
76
68
void <a class="link" href="GimpColorButton.html#gimp-color-button-set-color" title="gimp_color_button_set_color ()">gimp_color_button_set_color</a> (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button,
78
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
70
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
79
71
>GimpRGB</a> *color);
80
72
void <a class="link" href="GimpColorButton.html#gimp-color-button-get-color" title="gimp_color_button_get_color ()">gimp_color_button_get_color</a> (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button,
82
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
74
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
83
75
>GimpRGB</a> *color);
84
76
void <a class="link" href="GimpColorButton.html#gimp-color-button-set-update" title="gimp_color_button_set_update ()">gimp_color_button_set_update</a> (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button,
86
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
87
>gboolean</a> continuous);
89
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
90
>gboolean</a> <a class="link" href="GimpColorButton.html#gimp-color-button-get-update" title="gimp_color_button_get_update ()">gimp_color_button_get_update</a> (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button);
92
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
93
>gboolean</a> <a class="link" href="GimpColorButton.html#gimp-color-button-has-alpha" title="gimp_color_button_has_alpha ()">gimp_color_button_has_alpha</a> (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button);
78
gboolean <a class="link" href="GimpColorButton.html#gimp-color-button-get-update" title="gimp_color_button_get_update ()">gimp_color_button_get_update</a> (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button);
79
gboolean <a class="link" href="GimpColorButton.html#gimp-color-button-has-alpha" title="gimp_color_button_has_alpha ()">gimp_color_button_has_alpha</a> (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button);
94
80
void <a class="link" href="GimpColorButton.html#gimp-color-button-set-type" title="gimp_color_button_set_type ()">gimp_color_button_set_type</a> (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button,
95
81
<a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a> type);
98
84
<div class="refsect1" lang="en">
99
85
<a name="GimpColorButton.object-hierarchy"></a><h2>Object Hierarchy</h2>
100
86
<pre class="synopsis">
102
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
105
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
106
>GInitiallyUnowned</a>
108
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
111
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
114
href="/usr/share/gtk-doc/html/gtk/GtkContainer.html"
117
href="/usr/share/gtk-doc/html/gtk/GtkBin.html"
120
href="/usr/share/gtk-doc/html/gtk/GtkButton.html"
88
+----GInitiallyUnowned
122
94
+----<a class="link" href="GimpButton.html" title="GimpButton">GimpButton</a>
123
95
+----GimpColorButton
133
105
<a name="GimpColorButton.properties"></a><h2>Properties</h2>
134
106
<pre class="synopsis">
135
107
"<a class="link" href="GimpColorButton.html#GimpColorButton--color" title='The "color" property'>color</a>" <a
136
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
108
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
137
109
>GimpRGB</a>* : Read / Write / Construct
138
"<a class="link" href="GimpColorButton.html#GimpColorButton--continuous-update" title='The "continuous-update" property'>continuous-update</a>" <a
139
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
140
>gboolean</a> : Read / Write / Construct
141
"<a class="link" href="GimpColorButton.html#GimpColorButton--title" title='The "title" property'>title</a>" <a
142
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
143
>gchar</a>* : Read / Write / Construct Only
110
"<a class="link" href="GimpColorButton.html#GimpColorButton--continuous-update" title='The "continuous-update" property'>continuous-update</a>" gboolean : Read / Write / Construct
111
"<a class="link" href="GimpColorButton.html#GimpColorButton--title" title='The "title" property'>title</a>" gchar* : Read / Write / Construct Only
144
112
"<a class="link" href="GimpColorButton.html#GimpColorButton--type" title='The "type" property'>type</a>" <a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a> : Read / Write / Construct
176
144
<div class="refsect2" lang="en">
177
145
<a name="gimp-color-button-new"></a><h3>gimp_color_button_new ()</h3>
178
<pre class="programlisting"><a
179
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
180
>GtkWidget</a>* gimp_color_button_new (const <a
181
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
184
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
187
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
146
<pre class="programlisting">GtkWidget* gimp_color_button_new (const gchar *title,
190
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
150
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
191
151
>GimpRGB</a> *color,
192
152
<a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a> type);</pre>
245
205
<a name="gimp-color-button-set-color"></a><h3>gimp_color_button_set_color ()</h3>
246
206
<pre class="programlisting">void gimp_color_button_set_color (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button,
248
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
208
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
249
209
>GimpRGB</a> *color);</pre>
251
211
Sets the <em class="parameter"><code>button</code></em> to the given <em class="parameter"><code>color</code></em>.</p>
264
224
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
265
225
<td> Pointer to the new <a
266
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
226
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
267
227
><span class="type">GimpRGB</span></a> color.
275
235
<a name="gimp-color-button-get-color"></a><h3>gimp_color_button_get_color ()</h3>
276
236
<pre class="programlisting">void gimp_color_button_get_color (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button,
278
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
238
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
279
239
>GimpRGB</a> *color);</pre>
281
241
Retrieves the currently set color from the <em class="parameter"><code>button</code></em>.</p>
304
264
<div class="refsect2" lang="en">
305
265
<a name="gimp-color-button-set-update"></a><h3>gimp_color_button_set_update ()</h3>
306
266
<pre class="programlisting">void gimp_color_button_set_update (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button,
308
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
309
>gboolean</a> continuous);</pre>
267
gboolean continuous);</pre>
312
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
313
><span class="type">TRUE</span></a>, the <em class="parameter"><code>button</code></em> will emit the "color-changed"
269
When set to <span class="type">TRUE</span>, the <em class="parameter"><code>button</code></em> will emit the "color-changed"
314
270
continuously while the color is changed in the color selection
336
292
<div class="refsect2" lang="en">
337
293
<a name="gimp-color-button-get-update"></a><h3>gimp_color_button_get_update ()</h3>
338
<pre class="programlisting"><a
339
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
340
>gboolean</a> gimp_color_button_get_update (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button);</pre>
294
<pre class="programlisting">gboolean gimp_color_button_get_update (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button);</pre>
342
296
Returns the color button's <em class="parameter"><code>continuous_update</code></em> property.</p>
363
317
<div class="refsect2" lang="en">
364
318
<a name="gimp-color-button-has-alpha"></a><h3>gimp_color_button_has_alpha ()</h3>
365
<pre class="programlisting"><a
366
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
367
>gboolean</a> gimp_color_button_has_alpha (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button);</pre>
319
<pre class="programlisting">gboolean gimp_color_button_has_alpha (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *button);</pre>
369
321
Checks whether the <em class="parameter"><code>buttons</code></em> shows transparency information.</p>
382
334
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
384
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
385
><code class="literal">TRUE</code></a> if the <em class="parameter"><code>button</code></em> shows transparency information, <a
386
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
387
><code class="literal">FALSE</code></a>
335
<td> <code class="literal">TRUE</code> if the <em class="parameter"><code>button</code></em> shows transparency information, <code class="literal">FALSE</code>
423
371
<div class="refsect2" lang="en">
424
372
<a name="GimpColorButton--color"></a><h3>The <code class="literal">"color"</code> property</h3>
425
373
<pre class="programlisting"> "color" <a
426
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
374
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
427
375
>GimpRGB</a>* : Read / Write / Construct</pre>
429
377
The color displayed in the button's color area.</p>
437
385
<div class="refsect2" lang="en">
438
386
<a name="GimpColorButton--continuous-update"></a><h3>The <code class="literal">"continuous-update"</code> property</h3>
439
<pre class="programlisting"> "continuous-update" <a
440
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
441
>gboolean</a> : Read / Write / Construct</pre>
387
<pre class="programlisting"> "continuous-update" gboolean : Read / Write / Construct</pre>
443
389
The update policy of the color button.</p>
452
398
<div class="refsect2" lang="en">
453
399
<a name="GimpColorButton--title"></a><h3>The <code class="literal">"title"</code> property</h3>
454
<pre class="programlisting"> "title" <a
455
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
456
>gchar</a>* : Read / Write / Construct Only</pre>
400
<pre class="programlisting"> "title" gchar* : Read / Write / Construct Only</pre>
458
402
The title to be used for the color selection dialog.</p>
482
426
<div class="refsect2" lang="en">
483
427
<a name="GimpColorButton-color-changed"></a><h3>The <code class="literal">"color-changed"</code> signal</h3>
484
428
<pre class="programlisting">void user_function (<a class="link" href="GimpColorButton.html" title="GimpColorButton">GimpColorButton</a> *gimpcolorbutton,
486
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
487
>gpointer</a> user_data) : Run First</pre>
429
gpointer user_data) : Run First</pre>