1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
<title>GimpItemComboBox</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
7
<link rel="start" href="index.html" title="GIMP Library Reference Manual">
8
<link rel="up" href="libgimpui.html" title="Part II. GIMP User Interface Library">
9
<link rel="prev" href="GimpZoomPreview.html" title="GimpZoomPreview">
10
<link rel="next" href="GimpImageComboBox.html" title="gimpimagecombobox">
11
<meta name="generator" content="GTK-Doc V1.8 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="libgimp.html" title="Part I. GIMP Library">
14
<link rel="chapter" href="libgimp-general.html" title="Functions not Related to Specific Images">
15
<link rel="chapter" href="libgimp-image.html" title="Manupulating Images and their Properties">
16
<link rel="chapter" href="libgimp-data.html" title="Data Objects">
17
<link rel="chapter" href="libgimp-selectors.html" title="Controlling the Core's Selection Dialogs">
18
<link rel="part" href="libgimpui.html" title="Part II. GIMP User Interface Library">
19
<link rel="chapter" href="libgimpui-hierarchy.html" title="Object Hierarchy">
20
<link rel="index" href="libgimp-index.html" title="Index">
21
<link rel="index" href="libgimp-index-new-in-2-2.html" title="Index of new symbols in GIMP 2.2">
22
<link rel="index" href="libgimp-index-new-in-2-4.html" title="Index of new symbols in GIMP 2.4">
23
<link rel="index" href="libgimp-index-deprecated.html" title="Index of deprecated symbols">
25
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
26
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
28
<td><a accesskey="p" href="GimpZoomPreview.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
29
<td><a accesskey="u" href="libgimpui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
30
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
31
<th width="100%" align="center">GIMP Library Reference Manual</th>
32
<td><a accesskey="n" href="GimpImageComboBox.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
34
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2571387" class="shortcut">Top</a>
36
<a href="#id2713134" class="shortcut">Description</a>
38
<a href="#id2710821" class="shortcut">Object Hierarchy</a>
40
<a href="#id2715190" class="shortcut">Implemented Interfaces</a></nobr></td></tr>
42
<div class="refentry" lang="en">
43
<a name="libgimp-GimpItemComboBox"></a><div class="titlepage"></div>
44
<div class="refnamediv"><table width="100%"><tr>
47
<a name="id2571387"></a><span class="refentrytitle">GimpItemComboBox</span>
49
<p>GimpItemComboBox</p>
51
<td valign="top" align="right"></td>
53
<div class="refsynopsisdiv">
55
<a name="GimpDrawableComboBox"></a><a name="GimpChannelComboBox"></a><a name="GimpLayerComboBox"></a><a name="GimpVectorsComboBox"></a><pre class="synopsis">
59
gboolean (<a href="libgimp-GimpItemComboBox.html#GimpItemConstraintFunc">*GimpItemConstraintFunc</a>) (gint32 image_id,
62
<a href="libgimp-GimpItemComboBox.html#GimpDrawableComboBox-struct">GimpDrawableComboBox</a>;
63
typedef <a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a>;
64
GtkWidget* <a href="libgimp-GimpItemComboBox.html#gimp-drawable-combo-box-new">gimp_drawable_combo_box_new</a> (<a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
66
<a href="libgimp-GimpItemComboBox.html#GimpChannelComboBox-struct">GimpChannelComboBox</a>;
67
GtkWidget* <a href="libgimp-GimpItemComboBox.html#gimp-channel-combo-box-new">gimp_channel_combo_box_new</a> (<a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
69
<a href="libgimp-GimpItemComboBox.html#GimpLayerComboBox-struct">GimpLayerComboBox</a>;
70
GtkWidget* <a href="libgimp-GimpItemComboBox.html#gimp-layer-combo-box-new">gimp_layer_combo_box_new</a> (<a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
72
<a href="libgimp-GimpItemComboBox.html#GimpVectorsComboBox-struct">GimpVectorsComboBox</a>;
73
typedef <a href="libgimp-GimpItemComboBox.html#GimpVectorsConstraintFunc">GimpVectorsConstraintFunc</a>;
74
GtkWidget* <a href="libgimp-GimpItemComboBox.html#gimp-vectors-combo-box-new">gimp_vectors_combo_box_new</a> (<a href="libgimp-GimpItemComboBox.html#GimpVectorsConstraintFunc">GimpVectorsConstraintFunc</a> constraint,
79
<div class="refsect1" lang="en">
80
<a name="id2710821"></a><h2>Object Hierarchy</h2>
81
<pre class="synopsis">
84
+----GInitiallyUnowned
91
href="../libgimpwidgets/GimpIntComboBox.html"
93
+----GimpDrawableComboBox
95
<pre class="synopsis">
98
+----GInitiallyUnowned
105
href="../libgimpwidgets/GimpIntComboBox.html"
107
+----GimpChannelComboBox
109
<pre class="synopsis">
112
+----GInitiallyUnowned
119
href="../libgimpwidgets/GimpIntComboBox.html"
121
+----GimpLayerComboBox
123
<pre class="synopsis">
126
+----GInitiallyUnowned
133
href="../libgimpwidgets/GimpIntComboBox.html"
135
+----GimpVectorsComboBox
138
<div class="refsect1" lang="en">
139
<a name="id2715190"></a><h2>Implemented Interfaces</h2>
141
GimpDrawableComboBox implements
142
AtkImplementorIface, GtkCellLayout and GtkCellEditable.</p>
144
GimpChannelComboBox implements
145
AtkImplementorIface, GtkCellLayout and GtkCellEditable.</p>
147
GimpLayerComboBox implements
148
AtkImplementorIface, GtkCellLayout and GtkCellEditable.</p>
150
GimpVectorsComboBox implements
151
AtkImplementorIface, GtkCellLayout and GtkCellEditable.</p>
153
<div class="refsect1" lang="en">
154
<a name="id2713134"></a><h2>Description</h2>
159
<div class="refsect1" lang="en">
160
<a name="id2713150"></a><h2>Details</h2>
161
<div class="refsect2" lang="en">
162
<a name="id2713161"></a><h3>
163
<a name="GimpItemConstraintFunc"></a>GimpItemConstraintFunc ()</h3>
164
<a class="indexterm" name="id2713172"></a><pre class="programlisting">gboolean (*GimpItemConstraintFunc) (gint32 image_id,
166
gpointer data);</pre>
170
<div class="variablelist"><table border="0">
171
<col align="left" valign="top">
174
<td><span class="term"><em class="parameter"><code>image_id</code></em> :</span></td>
179
<td><span class="term"><em class="parameter"><code>item_id</code></em> :</span></td>
184
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
189
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
199
<div class="refsect2" lang="en">
200
<a name="id2713271"></a><h3>
201
<a name="GimpDrawableComboBox-struct"></a>GimpDrawableComboBox</h3>
202
<a class="indexterm" name="id2713282"></a><pre class="programlisting">typedef struct _GimpDrawableComboBox GimpDrawableComboBox;</pre>
208
<div class="refsect2" lang="en">
209
<a name="id2713298"></a><h3>
210
<a name="GimpDrawableConstraintFunc"></a>GimpDrawableConstraintFunc</h3>
211
<a class="indexterm" name="id2713309"></a><pre class="programlisting">typedef GimpItemConstraintFunc GimpDrawableConstraintFunc;
218
<div class="refsect2" lang="en">
219
<a name="id2713325"></a><h3>
220
<a name="gimp-drawable-combo-box-new"></a>gimp_drawable_combo_box_new ()</h3>
221
<a class="indexterm" name="id2713339"></a><pre class="programlisting">GtkWidget* gimp_drawable_combo_box_new (<a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
222
gpointer data);</pre>
225
href="../libgimpwidgets/GimpIntComboBox.html"
226
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
227
drawables. If a <em class="parameter"><code>constraint</code></em> function is specified, it is called for
228
each drawable and only if the function returns <code class="literal">TRUE</code>, the drawable
229
is added to the combobox.
233
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-connect"
234
><code class="function">gimp_int_combo_box_connect()</code></a> to initialize and connect
236
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-set-active"
237
><code class="function">gimp_int_combo_box_set_active()</code></a> to get the active
239
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-get-active"
240
><code class="function">gimp_int_combo_box_get_active()</code></a> to retrieve the ID
241
of the selected drawable.</p>
245
<div class="variablelist"><table border="0">
246
<col align="left" valign="top">
249
<td><span class="term"><em class="parameter"><code>constraint</code></em> :</span></td>
250
<td> a <a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc"><span class="type">GimpDrawableConstraintFunc</span></a> or <code class="literal">NULL</code>
254
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
255
<td> a pointer that is passed to <em class="parameter"><code>constraint</code></em>
259
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
261
href="../libgimpwidgets/GimpIntComboBox.html"
262
><span class="type">GimpIntComboBox</span></a>.
268
<p class="since">Since GIMP 2.2
272
<div class="refsect2" lang="en">
273
<a name="id2713511"></a><h3>
274
<a name="GimpChannelComboBox-struct"></a>GimpChannelComboBox</h3>
275
<a class="indexterm" name="id2718272"></a><pre class="programlisting">typedef struct _GimpChannelComboBox GimpChannelComboBox;</pre>
281
<div class="refsect2" lang="en">
282
<a name="id2718287"></a><h3>
283
<a name="gimp-channel-combo-box-new"></a>gimp_channel_combo_box_new ()</h3>
284
<a class="indexterm" name="id2718299"></a><pre class="programlisting">GtkWidget* gimp_channel_combo_box_new (<a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
285
gpointer data);</pre>
288
href="../libgimpwidgets/GimpIntComboBox.html"
289
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
290
channels. See <code class="function">gimp_drawable_combo_box()</code> for more info.</p>
294
<div class="variablelist"><table border="0">
295
<col align="left" valign="top">
298
<td><span class="term"><em class="parameter"><code>constraint</code></em> :</span></td>
299
<td> a <a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc"><span class="type">GimpDrawableConstraintFunc</span></a> or <code class="literal">NULL</code>
303
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
304
<td> a pointer that is passed to <em class="parameter"><code>constraint</code></em>
308
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
310
href="../libgimpwidgets/GimpIntComboBox.html"
311
><span class="type">GimpIntComboBox</span></a>.
317
<p class="since">Since GIMP 2.2
321
<div class="refsect2" lang="en">
322
<a name="id2718419"></a><h3>
323
<a name="GimpLayerComboBox-struct"></a>GimpLayerComboBox</h3>
324
<a class="indexterm" name="id2718430"></a><pre class="programlisting">typedef struct _GimpLayerComboBox GimpLayerComboBox;</pre>
330
<div class="refsect2" lang="en">
331
<a name="id2718444"></a><h3>
332
<a name="gimp-layer-combo-box-new"></a>gimp_layer_combo_box_new ()</h3>
333
<a class="indexterm" name="id2718457"></a><pre class="programlisting">GtkWidget* gimp_layer_combo_box_new (<a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc">GimpDrawableConstraintFunc</a> constraint,
334
gpointer data);</pre>
337
href="../libgimpwidgets/GimpIntComboBox.html"
338
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
339
layers. See <code class="function">gimp_drawable_combo_box()</code> for more info.</p>
343
<div class="variablelist"><table border="0">
344
<col align="left" valign="top">
347
<td><span class="term"><em class="parameter"><code>constraint</code></em> :</span></td>
348
<td> a <a href="libgimp-GimpItemComboBox.html#GimpDrawableConstraintFunc"><span class="type">GimpDrawableConstraintFunc</span></a> or <code class="literal">NULL</code>
352
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
353
<td> a pointer that is passed to <em class="parameter"><code>constraint</code></em>
357
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
359
href="../libgimpwidgets/GimpIntComboBox.html"
360
><span class="type">GimpIntComboBox</span></a>.
366
<p class="since">Since GIMP 2.2
370
<div class="refsect2" lang="en">
371
<a name="id2718577"></a><h3>
372
<a name="GimpVectorsComboBox-struct"></a>GimpVectorsComboBox</h3>
373
<a class="indexterm" name="id2718588"></a><pre class="programlisting">typedef struct _GimpVectorsComboBox GimpVectorsComboBox;</pre>
379
<div class="refsect2" lang="en">
380
<a name="id2718602"></a><h3>
381
<a name="GimpVectorsConstraintFunc"></a>GimpVectorsConstraintFunc</h3>
382
<a class="indexterm" name="id2718613"></a><pre class="programlisting">typedef GimpItemConstraintFunc GimpVectorsConstraintFunc;
389
<div class="refsect2" lang="en">
390
<a name="id2718627"></a><h3>
391
<a name="gimp-vectors-combo-box-new"></a>gimp_vectors_combo_box_new ()</h3>
392
<a class="indexterm" name="id2718640"></a><pre class="programlisting">GtkWidget* gimp_vectors_combo_box_new (<a href="libgimp-GimpItemComboBox.html#GimpVectorsConstraintFunc">GimpVectorsConstraintFunc</a> constraint,
393
gpointer data);</pre>
396
href="../libgimpwidgets/GimpIntComboBox.html"
397
><span class="type">GimpIntComboBox</span></a> filled with all currently opened
398
vectors objects. If a <em class="parameter"><code>constraint</code></em> function is specified, it is called for
399
each vectors object and only if the function returns <code class="literal">TRUE</code>, the vectors
400
object is added to the combobox.
404
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-connect"
405
><code class="function">gimp_int_combo_box_connect()</code></a> to initialize and connect
407
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-set-active"
408
><code class="function">gimp_int_combo_box_set_active()</code></a> to set the active
410
href="../libgimpwidgets/GimpIntComboBox.html#gimp-int-combo-box-get-active"
411
><code class="function">gimp_int_combo_box_get_active()</code></a> to retrieve the ID
412
of the selected vectors object.</p>
416
<div class="variablelist"><table border="0">
417
<col align="left" valign="top">
420
<td><span class="term"><em class="parameter"><code>constraint</code></em> :</span></td>
421
<td> a <a href="libgimp-GimpItemComboBox.html#GimpVectorsConstraintFunc"><span class="type">GimpVectorsConstraintFunc</span></a> or <code class="literal">NULL</code>
425
<td><span class="term"><em class="parameter"><code>data</code></em> :</span></td>
426
<td> a pointer that is passed to <em class="parameter"><code>constraint</code></em>
430
<td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
432
href="../libgimpwidgets/GimpIntComboBox.html"
433
><span class="type">GimpIntComboBox</span></a>.
439
<p class="since">Since GIMP 2.4