59
59
<pre class="synopsis">
60
60
<a class="link" href="GimpColorArea.html#GimpColorArea-struct" title="GimpColorArea">GimpColorArea</a>;
61
61
enum <a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a>;
63
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
64
>GtkWidget</a>* <a class="link" href="GimpColorArea.html#gimp-color-area-new" title="gimp_color_area_new ()">gimp_color_area_new</a> (const <a
65
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
62
GtkWidget* <a class="link" href="GimpColorArea.html#gimp-color-area-new" title="gimp_color_area_new ()">gimp_color_area_new</a> (const <a
63
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
66
64
>GimpRGB</a> *color,
67
65
<a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a> type,
69
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkModifierType"
70
>GdkModifierType</a> drag_mask);
66
GdkModifierType drag_mask);
71
67
void <a class="link" href="GimpColorArea.html#gimp-color-area-set-color" title="gimp_color_area_set_color ()">gimp_color_area_set_color</a> (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area,
73
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
69
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
74
70
>GimpRGB</a> *color);
75
71
void <a class="link" href="GimpColorArea.html#gimp-color-area-get-color" title="gimp_color_area_get_color ()">gimp_color_area_get_color</a> (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area,
77
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
73
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
78
74
>GimpRGB</a> *color);
80
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
81
>gboolean</a> <a class="link" href="GimpColorArea.html#gimp-color-area-has-alpha" title="gimp_color_area_has_alpha ()">gimp_color_area_has_alpha</a> (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area);
75
gboolean <a class="link" href="GimpColorArea.html#gimp-color-area-has-alpha" title="gimp_color_area_has_alpha ()">gimp_color_area_has_alpha</a> (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area);
82
76
void <a class="link" href="GimpColorArea.html#gimp-color-area-set-type" title="gimp_color_area_set_type ()">gimp_color_area_set_type</a> (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area,
83
77
<a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a> type);
84
78
void <a class="link" href="GimpColorArea.html#gimp-color-area-set-draw-border" title="gimp_color_area_set_draw_border ()">gimp_color_area_set_draw_border</a> (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area,
86
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
87
>gboolean</a> draw_border);
79
gboolean draw_border);
90
82
<div class="refsect1" lang="en">
91
83
<a name="GimpColorArea.object-hierarchy"></a><h2>Object Hierarchy</h2>
92
84
<pre class="synopsis">
94
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"
97
href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
98
>GInitiallyUnowned</a>
100
href="/usr/share/gtk-doc/html/gtk/GtkObject.html"
103
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
106
href="/usr/share/gtk-doc/html/gtk/GtkDrawingArea.html"
86
+----GInitiallyUnowned
108
90
+----GimpColorArea
118
100
<a name="GimpColorArea.properties"></a><h2>Properties</h2>
119
101
<pre class="synopsis">
120
102
"<a class="link" href="GimpColorArea.html#GimpColorArea--color" title='The "color" property'>color</a>" <a
121
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
103
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
122
104
>GimpRGB</a>* : Read / Write / Construct
123
"<a class="link" href="GimpColorArea.html#GimpColorArea--drag-mask" title='The "drag-mask" property'>drag-mask</a>" <a
124
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkModifierType"
125
>GdkModifierType</a> : Write / Construct Only
126
"<a class="link" href="GimpColorArea.html#GimpColorArea--draw-border" title='The "draw-border" property'>draw-border</a>" <a
127
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
128
>gboolean</a> : Read / Write
105
"<a class="link" href="GimpColorArea.html#GimpColorArea--drag-mask" title='The "drag-mask" property'>drag-mask</a>" GdkModifierType : Write / Construct Only
106
"<a class="link" href="GimpColorArea.html#GimpColorArea--draw-border" title='The "draw-border" property'>draw-border</a>" gboolean : Read / Write
129
107
"<a class="link" href="GimpColorArea.html#GimpColorArea--type" title='The "type" property'>type</a>" <a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a> : Read / Write / Construct
168
146
<div class="refsect2" lang="en">
169
147
<a name="gimp-color-area-new"></a><h3>gimp_color_area_new ()</h3>
170
<pre class="programlisting"><a
171
href="/usr/share/gtk-doc/html/gtk/GtkWidget.html"
172
>GtkWidget</a>* gimp_color_area_new (const <a
173
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
148
<pre class="programlisting">GtkWidget* gimp_color_area_new (const <a
149
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
174
150
>GimpRGB</a> *color,
175
151
<a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType">GimpColorAreaType</a> type,
177
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkModifierType"
178
>GdkModifierType</a> drag_mask);</pre>
152
GdkModifierType drag_mask);</pre>
180
154
Creates a new <a class="link" href="GimpColorArea.html" title="GimpColorArea"><span class="type">GimpColorArea</span></a> widget.
218
192
<a name="gimp-color-area-set-color"></a><h3>gimp_color_area_set_color ()</h3>
219
193
<pre class="programlisting">void gimp_color_area_set_color (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area,
221
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
195
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
222
196
>GimpRGB</a> *color);</pre>
224
198
Sets <em class="parameter"><code>area</code></em> to a different <em class="parameter"><code>color</code></em>.</p>
248
222
<a name="gimp-color-area-get-color"></a><h3>gimp_color_area_get_color ()</h3>
249
223
<pre class="programlisting">void gimp_color_area_get_color (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area,
251
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
225
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
252
226
>GimpRGB</a> *color);</pre>
254
228
Retrieves the current color of the <em class="parameter"><code>area</code></em>.</p>
277
251
<div class="refsect2" lang="en">
278
252
<a name="gimp-color-area-has-alpha"></a><h3>gimp_color_area_has_alpha ()</h3>
279
<pre class="programlisting"><a
280
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
281
>gboolean</a> gimp_color_area_has_alpha (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area);</pre>
253
<pre class="programlisting">gboolean gimp_color_area_has_alpha (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area);</pre>
283
255
Checks whether the <em class="parameter"><code>area</code></em> shows transparency information. This is determined
284
256
via the <em class="parameter"><code>area</code></em>'s <a class="link" href="GimpColorArea.html#GimpColorAreaType" title="enum GimpColorAreaType"><span class="type">GimpColorAreaType</span></a>.</p>
297
269
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
299
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"
300
><code class="literal">TRUE</code></a> if <em class="parameter"><code>area</code></em> shows transparency information, <a
301
href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"
302
><code class="literal">FALSE</code></a> otherwise.
270
<td> <code class="literal">TRUE</code> if <em class="parameter"><code>area</code></em> shows transparency information, <code class="literal">FALSE</code> otherwise.
337
305
<div class="refsect2" lang="en">
338
306
<a name="gimp-color-area-set-draw-border"></a><h3>gimp_color_area_set_draw_border ()</h3>
339
307
<pre class="programlisting">void gimp_color_area_set_draw_border (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *area,
341
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
342
>gboolean</a> draw_border);</pre>
308
gboolean draw_border);</pre>
344
310
The <em class="parameter"><code>area</code></em> can draw a thin border in the foreground color around
345
311
itself. This function allows to toggle this behaviour on and
369
335
<div class="refsect2" lang="en">
370
336
<a name="GimpColorArea--color"></a><h3>The <code class="literal">"color"</code> property</h3>
371
337
<pre class="programlisting"> "color" <a
372
href="/usr/share/gtk-doc/html/libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
338
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
373
339
>GimpRGB</a>* : Read / Write / Construct</pre>
375
341
The color displayed in the color area.</p>
383
349
<div class="refsect2" lang="en">
384
350
<a name="GimpColorArea--drag-mask"></a><h3>The <code class="literal">"drag-mask"</code> property</h3>
385
<pre class="programlisting"> "drag-mask" <a
386
href="/usr/share/gtk-doc/html/gdk/gdk-Windows.html#GdkModifierType"
387
>GdkModifierType</a> : Write / Construct Only</pre>
351
<pre class="programlisting"> "drag-mask" GdkModifierType : Write / Construct Only</pre>
391
355
<div class="refsect2" lang="en">
392
356
<a name="GimpColorArea--draw-border"></a><h3>The <code class="literal">"draw-border"</code> property</h3>
393
<pre class="programlisting"> "draw-border" <a
394
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"
395
>gboolean</a> : Read / Write</pre>
357
<pre class="programlisting"> "draw-border" gboolean : Read / Write</pre>
397
359
Whether to draw a thin border in the foreground color around the area.</p>
421
383
<div class="refsect2" lang="en">
422
384
<a name="GimpColorArea-color-changed"></a><h3>The <code class="literal">"color-changed"</code> signal</h3>
423
385
<pre class="programlisting">void user_function (<a class="link" href="GimpColorArea.html" title="GimpColorArea">GimpColorArea</a> *gimpcolorarea,
425
href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"
426
>gpointer</a> user_data) : Run First</pre>
386
gpointer user_data) : Run First</pre>