File: GimpColorSelector.html

package info (click to toggle)
gimp 2.2.6-1sarge4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 97,088 kB
  • ctags: 43,756
  • sloc: ansic: 525,782; xml: 36,543; lisp: 9,851; sh: 9,007; makefile: 7,974; python: 2,622; perl: 2,589; yacc: 520; lex: 334
file content (246 lines) | stat: -rw-r--r-- 21,372 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>GimpColorSelector</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual"><link rel="up" href="libgimpwidgets-colorselector.html" title="PartIII.GIMP Color Selectors"><link rel="prev" href="libgimpwidgets-colorselector.html" title="PartIII.GIMP Color Selectors"><link rel="next" href="GimpColorNotebook.html" title="GimpColorNotebook"><meta name="generator" content="GTK-Doc V1.3 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="libgimpwidgets-widgets.html" title="PartI.GIMP Widgets"><link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy"><link rel="chapter" href="libgimpwidgets-cell-renderers.html" title="Cell Renderers for GtkTreeView"><link rel="part" href="libgimpwidgets-colordisplay.html" title="PartII.GIMP Display Filters"><link rel="part" href="libgimpwidgets-colorselector.html" title="PartIII.GIMP Color Selectors"><link rel="part" href="libgimpwidgets-controller.html" title="PartIV.GIMP Controllers"><link rel="part" href="libgimpwidgets-utils.html" title="PartV.GIMP Widgets Utilities"><link rel="part" href="libgimpwidgets-deprecated.html" title="PartVI.Deprecated API"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libgimpwidgets-colorselector.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="libgimpwidgets-colorselector.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GIMP Widgets Library Reference Manual</th><td><a accesskey="n" href="GimpColorNotebook.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="GimpColorSelector"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">GimpColorSelector</span></h2><p>GimpColorSelector &#8212; Pluggable GIMP color selector modules.</p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">



            <a href="GimpColorSelector.html#GimpColorSelector-struct">GimpColorSelector</a>;
#define     <a href="GimpColorSelector.html#GIMP-COLOR-SELECTOR-SIZE--CAPS">GIMP_COLOR_SELECTOR_SIZE</a>
#define     <a href="GimpColorSelector.html#GIMP-COLOR-SELECTOR-BAR-SIZE--CAPS">GIMP_COLOR_SELECTOR_BAR_SIZE</a>
enum        <a href="GimpColorSelector.html#GimpColorSelectorChannel">GimpColorSelectorChannel</a>;
<a
href="../gtk/GtkWidget.html"
>GtkWidget</a>*  <a href="GimpColorSelector.html#gimp-color-selector-new">gimp_color_selector_new</a>         (<a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> selector_type,
                                             const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *rgb,
                                             const <a
href="../libgimpcolor/libgimpcolor-GimpHSV.html#GimpHSV"
>GimpHSV</a> *hsv,
                                             <a href="GimpColorSelector.html#GimpColorSelectorChannel">GimpColorSelectorChannel</a> channel);
void        <a href="GimpColorSelector.html#gimp-color-selector-set-toggles-visible">gimp_color_selector_set_toggles_visible</a>
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visible);
void        <a href="GimpColorSelector.html#gimp-color-selector-set-toggles-sensitive">gimp_color_selector_set_toggles_sensitive</a>
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> sensitive);
void        <a href="GimpColorSelector.html#gimp-color-selector-set-show-alpha">gimp_color_selector_set_show_alpha</a>
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_alpha);
void        <a href="GimpColorSelector.html#gimp-color-selector-set-color">gimp_color_selector_set_color</a>   (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *rgb,
                                             const <a
href="../libgimpcolor/libgimpcolor-GimpHSV.html#GimpHSV"
>GimpHSV</a> *hsv);
void        <a href="GimpColorSelector.html#gimp-color-selector-set-channel">gimp_color_selector_set_channel</a> (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             <a href="GimpColorSelector.html#GimpColorSelectorChannel">GimpColorSelectorChannel</a> channel);
void        <a href="GimpColorSelector.html#gimp-color-selector-color-changed">gimp_color_selector_color_changed</a>
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector);
void        <a href="GimpColorSelector.html#gimp-color-selector-channel-changed">gimp_color_selector_channel_changed</a>
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector);

</pre></div><div class="refsect1" lang="en"><a name="id2598721"></a><h2>Object Hierarchy</h2><pre class="synopsis">

  <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----<a
href="../gtk/GtkObject.html"
>GtkObject</a>
         +----<a
href="../gtk/GtkWidget.html"
>GtkWidget</a>
               +----<a
href="../gtk/GtkContainer.html"
>GtkContainer</a>
                     +----<a
href="../gtk/GtkBox.html"
>GtkBox</a>
                           +----<a
href="../gtk/GtkVBox.html"
>GtkVBox</a>
                                 +----GimpColorSelector
                                       +----<a href="GimpColorNotebook.html" title="GimpColorNotebook">GimpColorNotebook</a>
                                       +----<a href="GimpColorScales.html" title="GimpColorScales">GimpColorScales</a>
                                       +----<a href="GimpColorSelect.html" title="GimpColorSelect">GimpColorSelect</a>
</pre></div><div class="refsect1" lang="en"><a name="id2598781"></a><h2>Implemented Interfaces</h2><p>
GimpColorSelector implements
 AtkImplementorIface.</p></div><div class="refsect1" lang="en"><a name="id2598797"></a><h2>Signal Prototypes</h2><pre class="synopsis">

"<a href="GimpColorSelector.html#GimpColorSelector-channel-changed">channel-changed</a>"
            void        user_function      (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *gimpcolorselector,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
"<a href="GimpColorSelector.html#GimpColorSelector-color-changed">color-changed</a>"
            void        user_function      (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *gimpcolorselector,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> arg2,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
</pre></div><div class="refsect1" lang="en"><a name="id2602182"></a><h2>Description</h2><p>
Functions and definitions for creating pluggable GIMP color
selector modules.
</p></div><div class="refsect1" lang="en"><a name="id2602193"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2602198"></a><h3><a name="GimpColorSelector-struct"></a>GimpColorSelector</h3><a class="indexterm" name="id2602207"></a><pre class="programlisting">typedef struct _GimpColorSelector GimpColorSelector;</pre><p>

</p></div><hr><div class="refsect2" lang="en"><a name="id2602217"></a><h3><a name="GIMP-COLOR-SELECTOR-SIZE--CAPS"></a>GIMP_COLOR_SELECTOR_SIZE</h3><a class="indexterm" name="id2602228"></a><pre class="programlisting">#define GIMP_COLOR_SELECTOR_SIZE      150
</pre><p>
The suggested size for a color area in a <a href="GimpColorSelector.html" title="GimpColorSelector"><span class="type">GimpColorSelector</span></a> implementation.
</p></div><hr><div class="refsect2" lang="en"><a name="id2602246"></a><h3><a name="GIMP-COLOR-SELECTOR-BAR-SIZE--CAPS"></a>GIMP_COLOR_SELECTOR_BAR_SIZE</h3><a class="indexterm" name="id2602256"></a><pre class="programlisting">#define GIMP_COLOR_SELECTOR_BAR_SIZE  15
</pre><p>
The suggested width for a color bar in a <a href="GimpColorSelector.html" title="GimpColorSelector"><span class="type">GimpColorSelector</span></a> implementation.
</p></div><hr><div class="refsect2" lang="en"><a name="id2602274"></a><h3><a name="GimpColorSelectorChannel"></a>enum GimpColorSelectorChannel</h3><a class="indexterm" name="id2602284"></a><pre class="programlisting">typedef enum
{
  GIMP_COLOR_SELECTOR_HUE,
  GIMP_COLOR_SELECTOR_SATURATION,
  GIMP_COLOR_SELECTOR_VALUE,
  GIMP_COLOR_SELECTOR_RED,
  GIMP_COLOR_SELECTOR_GREEN,
  GIMP_COLOR_SELECTOR_BLUE,
  GIMP_COLOR_SELECTOR_ALPHA
} GimpColorSelectorChannel;
</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><tt class="literal">GIMP_COLOR_SELECTOR_HUE</tt></span></td><td>the hue channel
</td></tr><tr><td><span class="term"><tt class="literal">GIMP_COLOR_SELECTOR_SATURATION</tt></span></td><td>the saturation channel
</td></tr><tr><td><span class="term"><tt class="literal">GIMP_COLOR_SELECTOR_VALUE</tt></span></td><td>the value channel
</td></tr><tr><td><span class="term"><tt class="literal">GIMP_COLOR_SELECTOR_RED</tt></span></td><td>the red channel
</td></tr><tr><td><span class="term"><tt class="literal">GIMP_COLOR_SELECTOR_GREEN</tt></span></td><td>the green channel
</td></tr><tr><td><span class="term"><tt class="literal">GIMP_COLOR_SELECTOR_BLUE</tt></span></td><td>the blue channel
</td></tr><tr><td><span class="term"><tt class="literal">GIMP_COLOR_SELECTOR_ALPHA</tt></span></td><td>the alpha channel

</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2598955"></a><h3><a name="gimp-color-selector-new"></a>gimp_color_selector_new ()</h3><a class="indexterm" name="id2598963"></a><pre class="programlisting"><a
href="../gtk/GtkWidget.html"
>GtkWidget</a>*  gimp_color_selector_new         (<a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> selector_type,
                                             const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *rgb,
                                             const <a
href="../libgimpcolor/libgimpcolor-GimpHSV.html#GimpHSV"
>GimpHSV</a> *hsv,
                                             <a href="GimpColorSelector.html#GimpColorSelectorChannel">GimpColorSelectorChannel</a> channel);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selector_type</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>rgb</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>hsv</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>


</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599058"></a><h3><a name="gimp-color-selector-set-toggles-visible"></a>gimp_color_selector_set_toggles_visible ()</h3><a class="indexterm" name="id2599070"></a><pre class="programlisting">void        gimp_color_selector_set_toggles_visible
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> visible);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selector</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>visible</tt></i>:</span></td><td>


</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599123"></a><h3><a name="gimp-color-selector-set-toggles-sensitive"></a>gimp_color_selector_set_toggles_sensitive ()</h3><a class="indexterm" name="id2599135"></a><pre class="programlisting">void        gimp_color_selector_set_toggles_sensitive
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> sensitive);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selector</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>sensitive</tt></i>:</span></td><td>


</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2599188"></a><h3><a name="gimp-color-selector-set-show-alpha"></a>gimp_color_selector_set_show_alpha ()</h3><a class="indexterm" name="id2599200"></a><pre class="programlisting">void        gimp_color_selector_set_show_alpha
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> show_alpha);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selector</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>show_alpha</tt></i>:</span></td><td>


</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2604213"></a><h3><a name="gimp-color-selector-set-color"></a>gimp_color_selector_set_color ()</h3><a class="indexterm" name="id2604224"></a><pre class="programlisting">void        gimp_color_selector_set_color   (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             const <a
href="../libgimpcolor/libgimpcolor-GimpRGB.html#GimpRGB"
>GimpRGB</a> *rgb,
                                             const <a
href="../libgimpcolor/libgimpcolor-GimpHSV.html#GimpHSV"
>GimpHSV</a> *hsv);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selector</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>rgb</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>hsv</tt></i>:</span></td><td>


</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2604293"></a><h3><a name="gimp-color-selector-set-channel"></a>gimp_color_selector_set_channel ()</h3><a class="indexterm" name="id2604304"></a><pre class="programlisting">void        gimp_color_selector_set_channel (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector,
                                             <a href="GimpColorSelector.html#GimpColorSelectorChannel">GimpColorSelectorChannel</a> channel);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selector</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>channel</tt></i>:</span></td><td>


</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2604356"></a><h3><a name="gimp-color-selector-color-changed"></a>gimp_color_selector_color_changed ()</h3><a class="indexterm" name="id2604368"></a><pre class="programlisting">void        gimp_color_selector_color_changed
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selector</tt></i>:</span></td><td>


</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2604403"></a><h3><a name="gimp-color-selector-channel-changed"></a>gimp_color_selector_channel_changed ()</h3><a class="indexterm" name="id2604415"></a><pre class="programlisting">void        gimp_color_selector_channel_changed
                                            (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *selector);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>selector</tt></i>:</span></td><td>


</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2604452"></a><h2>Signals</h2><div class="refsect2" lang="en"><a name="id2604457"></a><h3><a name="GimpColorSelector-channel-changed"></a>The "channel-changed" signal</h3><pre class="programlisting">void        user_function                  (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *gimpcolorselector,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gimpcolorselector</tt></i>:</span></td><td>the object which received the signal.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>arg1</tt></i>:</span></td><td>

</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>:</span></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2604533"></a><h3><a name="GimpColorSelector-color-changed"></a>The "color-changed" signal</h3><pre class="programlisting">void        user_function                  (<a href="GimpColorSelector.html" title="GimpColorSelector">GimpColorSelector</a> *gimpcolorselector,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> arg2,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);</pre><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>gimpcolorselector</tt></i>:</span></td><td>the object which received the signal.
</td></tr><tr><td><span class="term"><i class="parameter"><tt>arg1</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><i class="parameter"><tt>arg2</tt></i>:</span></td><td>

</td></tr><tr><td><span class="term"><i class="parameter"><tt>user_data</tt></i>:</span></td><td>user data set when the signal handler was connected.</td></tr></tbody></table></div></div></div><div class="refsect1" lang="en"><a name="id2604628"></a><h2>See Also</h2><p>
<a
href="../glib/glib-Dynamic-Loading-of-Modules.html#GModule"
><span class="type">GModule</span></a>
</p><p>
<a
href="../gobject/GTypeModule.html"
><span class="type">GTypeModule</span></a>
</p><p>
<span class="type">libgimp-gimpmodule</span>
</p></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libgimpwidgets-colorselector.html"><b>&lt;&lt;PartIII.GIMP Color Selectors</b></a></td><td align="right"><a accesskey="n" href="GimpColorNotebook.html"><b>GimpColorNotebook&gt;&gt;</b></a></td></tr></table></body></html>