4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>GimpIntStore</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
<link rel="start" href="index.html" title="GIMP Widgets Library Reference Manual">
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="GIMP Widgets Library Reference Manual">
8
8
<link rel="up" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
9
9
<link rel="prev" href="GimpIntComboBox.html" title="GimpIntComboBox">
10
10
<link rel="next" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="part" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
14
14
<link rel="chapter" href="libgimpwidgets-hierarchy.html" title="Object Hierarchy">
34
34
<th width="100%" align="center">GIMP Widgets Library Reference Manual</th>
35
35
<td><a accesskey="n" href="GimpMemsizeEntry.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
37
<tr><td colspan="5" class="shortcuts"><nobr><a href="#GimpIntStore.synopsis" class="shortcut">Top</a>
39
<a href="#GimpIntStore.description" class="shortcut">Description</a>
41
<a href="#GimpIntStore.object-hierarchy" class="shortcut">Object Hierarchy</a>
43
<a href="#GimpIntStore.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
45
<a href="#GimpIntStore.properties" class="shortcut">Properties</a></nobr></td></tr>
37
<tr><td colspan="5" class="shortcuts">
38
<a href="#GimpIntStore.synopsis" class="shortcut">Top</a>
40
<a href="#GimpIntStore.description" class="shortcut">Description</a>
42
<a href="#GimpIntStore.object-hierarchy" class="shortcut">Object Hierarchy</a>
44
<a href="#GimpIntStore.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
46
<a href="#GimpIntStore.properties" class="shortcut">Properties</a>
47
<div class="refentry" lang="en">
49
<div class="refentry" title="GimpIntStore">
48
50
<a name="GimpIntStore"></a><div class="titlepage"></div>
49
51
<div class="refnamediv"><table width="100%"><tr>
54
56
<td valign="top" align="right"></td>
55
57
</tr></table></div>
56
<div class="refsynopsisdiv">
58
<div class="refsynopsisdiv" title="Synopsis">
57
59
<a name="GimpIntStore.synopsis"></a><h2>Synopsis</h2>
58
60
<pre class="synopsis">
59
61
<a class="link" href="GimpIntStore.html#GimpIntStore-struct" title="GimpIntStore">GimpIntStore</a>;
60
62
enum <a class="link" href="GimpIntStore.html#GimpIntStoreColumns" title="enum GimpIntStoreColumns">GimpIntStoreColumns</a>;
62
href="/usr/share/gtk-doc/html/gtk/GtkListStore.html"
63
>GtkListStore</a>* <a class="link" href="GimpIntStore.html#gimp-int-store-new" title="gimp_int_store_new ()">gimp_int_store_new</a> (void);
64
href="http://library.gnome.org/devel/gtk/unstable/GtkListStore.html"
65
>GtkListStore</a> * <a class="link" href="GimpIntStore.html#gimp-int-store-new" title="gimp_int_store_new ()">gimp_int_store_new</a> (void);
65
67
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
66
68
>gboolean</a> <a class="link" href="GimpIntStore.html#gimp-int-store-lookup-by-value" title="gimp_int_store_lookup_by_value ()">gimp_int_store_lookup_by_value</a> (<a
67
href="/usr/share/gtk-doc/html/gtk/GtkTreeModel.html"
69
href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"
68
70
>GtkTreeModel</a> *model,
70
72
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
73
href="/usr/share/gtk-doc/html/gtk/GtkTreeModel.html#GtkTreeIter"
75
href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html#GtkTreeIter"
74
76
>GtkTreeIter</a> *iter);
77
<div class="refsect1" lang="en">
79
<div class="refsect1" title="Object Hierarchy">
78
80
<a name="GimpIntStore.object-hierarchy"></a><h2>Object Hierarchy</h2>
79
81
<pre class="synopsis">
81
83
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
84
href="/usr/share/gtk-doc/html/gtk/GtkListStore.html"
86
href="http://library.gnome.org/devel/gtk/unstable/GtkListStore.html"
87
89
+----<a class="link" href="GimpEnumStore.html" title="GimpEnumStore">GimpEnumStore</a>
90
<div class="refsect1" lang="en">
92
<div class="refsect1" title="Implemented Interfaces">
91
93
<a name="GimpIntStore.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
93
95
GimpIntStore implements
95
href="/usr/share/gtk-doc/html/gtk/gtk-gtkbuildable.html#GtkBuildable"
97
href="http://library.gnome.org/devel/gtk/unstable/gtk-gtkbuildable.html#GtkBuildable"
96
98
>GtkBuildable</a>, <a
97
href="/usr/share/gtk-doc/html/gtk/GtkTreeModel.html"
99
href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"
98
100
>GtkTreeModel</a>, <a
99
href="/usr/share/gtk-doc/html/gtk/gtk-GtkTreeView-drag-and-drop.html#GtkTreeDragSource"
101
href="http://library.gnome.org/devel/gtk/unstable/gtk-GtkTreeView-drag-and-drop.html#GtkTreeDragSource"
100
102
>GtkTreeDragSource</a>, <a
101
href="/usr/share/gtk-doc/html/gtk/gtk-GtkTreeView-drag-and-drop.html#GtkTreeDragDest"
103
href="http://library.gnome.org/devel/gtk/unstable/gtk-GtkTreeView-drag-and-drop.html#GtkTreeDragDest"
102
104
>GtkTreeDragDest</a> and <a
103
href="/usr/share/gtk-doc/html/gtk/GtkTreeSortable.html"
105
href="http://library.gnome.org/devel/gtk/unstable/GtkTreeSortable.html"
104
106
>GtkTreeSortable</a>.</p>
106
<div class="refsect1" lang="en">
108
<div class="refsect1" title="Properties">
107
109
<a name="GimpIntStore.properties"></a><h2>Properties</h2>
108
110
<pre class="synopsis">
109
111
"<a class="link" href="GimpIntStore.html#GimpIntStore--user-data-type" title='The "user-data-type" property'>user-data-type</a>" <a
111
113
>GType</a>* : Read / Write / Construct Only
114
<div class="refsect1" lang="en">
116
<div class="refsect1" title="Description">
115
117
<a name="GimpIntStore.description"></a><h2>Description</h2>
117
119
A model for integer based name-value pairs (e.g. enums)
120
<div class="refsect1" lang="en">
122
<div class="refsect1" title="Details">
121
123
<a name="GimpIntStore.details"></a><h2>Details</h2>
122
<div class="refsect2" lang="en">
124
<div class="refsect2" title="GimpIntStore">
123
125
<a name="GimpIntStore-struct"></a><h3>GimpIntStore</h3>
124
126
<pre class="programlisting">typedef struct _GimpIntStore GimpIntStore;</pre>
130
<div class="refsect2" lang="en">
131
<div class="refsect2" title="enum GimpIntStoreColumns">
131
132
<a name="GimpIntStoreColumns"></a><h3>enum GimpIntStoreColumns</h3>
132
133
<pre class="programlisting">typedef enum
140
141
} GimpIntStoreColumns;
147
<div class="refsect2" lang="en">
147
<div class="refsect2" title="gimp_int_store_new ()">
148
148
<a name="gimp-int-store-new"></a><h3>gimp_int_store_new ()</h3>
149
149
<pre class="programlisting"><a
150
href="/usr/share/gtk-doc/html/gtk/GtkListStore.html"
151
>GtkListStore</a>* gimp_int_store_new (void);</pre>
150
href="http://library.gnome.org/devel/gtk/unstable/GtkListStore.html"
151
>GtkListStore</a> * gimp_int_store_new (void);</pre>
154
href="/usr/share/gtk-doc/html/gtk/GtkListStore.html"
154
href="http://library.gnome.org/devel/gtk/unstable/GtkListStore.html"
155
155
><span class="type">GtkListStore</span></a> with a number of useful columns.
156
156
<a class="link" href="GimpIntStore.html" title="GimpIntStore"><span class="type">GimpIntStore</span></a> is especially useful if the items you want to store
157
157
are identified using an integer value.</p>
161
160
<div class="variablelist"><table border="0">
162
161
<col align="left" valign="top">
170
<p class="since">Since GIMP 2.2
169
<p class="since">Since GIMP 2.2</p>
174
<div class="refsect2" lang="en">
172
<div class="refsect2" title="gimp_int_store_lookup_by_value ()">
175
173
<a name="gimp-int-store-lookup-by-value"></a><h3>gimp_int_store_lookup_by_value ()</h3>
176
174
<pre class="programlisting"><a
177
175
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
178
176
>gboolean</a> gimp_int_store_lookup_by_value (<a
179
href="/usr/share/gtk-doc/html/gtk/GtkTreeModel.html"
177
href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html"
180
178
>GtkTreeModel</a> *model,
182
180
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"
185
href="/usr/share/gtk-doc/html/gtk/GtkTreeModel.html#GtkTreeIter"
183
href="http://library.gnome.org/devel/gtk/unstable/GtkTreeModel.html#GtkTreeIter"
186
184
>GtkTreeIter</a> *iter);</pre>
188
186
Iterate over the <em class="parameter"><code>model</code></em> looking for <em class="parameter"><code>value</code></em>.</p>
192
189
<div class="variablelist"><table border="0">
193
190
<col align="left" valign="top">
211
208
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
213
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"
210
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
214
211
><code class="literal">TRUE</code></a> if the value has been located and <em class="parameter"><code>iter</code></em> is
216
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"
213
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
217
214
><code class="literal">FALSE</code></a> otherwise.
223
<p class="since">Since GIMP 2.2
227
<div class="refsect1" lang="en">
220
<p class="since">Since GIMP 2.2</p>
223
<div class="refsect1" title="Property Details">
228
224
<a name="GimpIntStore.property-details"></a><h2>Property Details</h2>
229
<div class="refsect2" lang="en">
225
<div class="refsect2" title='The "user-data-type" property'>
230
226
<a name="GimpIntStore--user-data-type"></a><h3>The <code class="literal">"user-data-type"</code> property</h3>
231
227
<pre class="programlisting"> "user-data-type" <a
232
228
href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"