Imported Upstream version 2.8.0
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
<link rel="home" href="index.html" title="GIMP Widgets Library Reference Manual">
|
||||
<link rel="up" href="libgimpwidgets-widgets.html" title="Part I. GIMP Widgets">
|
||||
<link rel="prev" href="GimpIntComboBox.html" title="GimpIntComboBox">
|
||||
<link rel="next" href="GimpMemsizeEntry.html" title="GimpMemsizeEntry">
|
||||
<link rel="next" href="GimpMemsizeEntry.html" title="GimpMemSizeEntry">
|
||||
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
@ -37,7 +37,8 @@
|
||||
<div class="refnamediv"><table width="100%"><tr>
|
||||
<td valign="top">
|
||||
<h2><span class="refentrytitle"><a name="GimpIntStore.top_of_page"></a>GimpIntStore</span></h2>
|
||||
<p>GimpIntStore — A model for integer based name-value pairs (e.g. enums)</p>
|
||||
<p>GimpIntStore — A model for integer based name-value pairs
|
||||
(e.g. enums)</p>
|
||||
</td>
|
||||
<td valign="top" align="right"></td>
|
||||
</tr></table></div>
|
||||
@ -45,17 +46,17 @@
|
||||
<a name="GimpIntStore.synopsis"></a><h2>Synopsis</h2>
|
||||
<pre class="synopsis"> <a class="link" href="GimpIntStore.html#GimpIntStore-struct" title="GimpIntStore">GimpIntStore</a>;
|
||||
enum <a class="link" href="GimpIntStore.html#GimpIntStoreColumns" title="enum GimpIntStoreColumns">GimpIntStoreColumns</a>;
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkListStore.html"><span class="returnvalue">GtkListStore</span></a> * <a class="link" href="GimpIntStore.html#gimp-int-store-new" title="gimp_int_store_new ()">gimp_int_store_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
||||
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></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> (<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> *model</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> *iter</code></em>);
|
||||
<span class="returnvalue">GtkListStore</span> * <a class="link" href="GimpIntStore.html#gimp-int-store-new" title="gimp_int_store_new ()">gimp_int_store_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
|
||||
<span class="returnvalue">gboolean</span> <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> (<em class="parameter"><code><span class="type">GtkTreeModel</span> *model</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> value</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkTreeIter</span> *iter</code></em>);
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GimpIntStore.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
||||
<pre class="synopsis">
|
||||
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
|
||||
+----<a href="http://library.gnome.org/devel/gtk3/GtkListStore.html">GtkListStore</a>
|
||||
GObject
|
||||
+----GtkListStore
|
||||
+----GimpIntStore
|
||||
+----<a class="link" href="GimpEnumStore.html" title="GimpEnumStore">GimpEnumStore</a>
|
||||
</pre>
|
||||
@ -64,12 +65,12 @@ enum <a class="link" href="GimpIntStore.html#GimpIntStoreColumns"
|
||||
<a name="GimpIntStore.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
|
||||
<p>
|
||||
GimpIntStore implements
|
||||
<a href="http://library.gnome.org/devel/gtk3/GtkTreeModel.html">GtkTreeModel</a>, <a href="http://library.gnome.org/devel/gtk3/gtk-GtkTreeView-drag-and-drop.html#GtkTreeDragSource">GtkTreeDragSource</a>, <a href="http://library.gnome.org/devel/gtk3/gtk-GtkTreeView-drag-and-drop.html#GtkTreeDragDest">GtkTreeDragDest</a>, <a href="http://library.gnome.org/devel/gtk3/GtkTreeSortable.html">GtkTreeSortable</a> and <a href="http://library.gnome.org/devel/gtk3/GtkBuildable.html">GtkBuildable</a>.</p>
|
||||
GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.</p>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
<a name="GimpIntStore.properties"></a><h2>Properties</h2>
|
||||
<pre class="synopsis">
|
||||
"<a class="link" href="GimpIntStore.html#GimpIntStore--user-data-type" title='The "user-data-type" property'>user-data-type</a>" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a>* : Read / Write / Construct Only
|
||||
"<a class="link" href="GimpIntStore.html#GimpIntStore--user-data-type" title='The "user-data-type" property'>user-data-type</a>" <span class="type">GType</span>* : Read / Write / Construct Only
|
||||
</pre>
|
||||
</div>
|
||||
<div class="refsect1">
|
||||
@ -99,14 +100,50 @@ A model for integer based name-value pairs (e.g. enums)
|
||||
} GimpIntStoreColumns;
|
||||
</pre>
|
||||
<p>
|
||||
The column types of <a class="link" href="GimpIntStore.html" title="GimpIntStore"><span class="type">GimpIntStore</span></a>.
|
||||
</p>
|
||||
<div class="variablelist"><table border="0">
|
||||
<col align="left" valign="top">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><p><a name="GIMP-INT-STORE-VALUE:CAPS"></a><span class="term"><code class="literal">GIMP_INT_STORE_VALUE</code></span></p></td>
|
||||
<td>the integer value
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><a name="GIMP-INT-STORE-LABEL:CAPS"></a><span class="term"><code class="literal">GIMP_INT_STORE_LABEL</code></span></p></td>
|
||||
<td>a human-readable label
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><a name="GIMP-INT-STORE-STOCK-ID:CAPS"></a><span class="term"><code class="literal">GIMP_INT_STORE_STOCK_ID</code></span></p></td>
|
||||
<td>a stock ID
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><a name="GIMP-INT-STORE-PIXBUF:CAPS"></a><span class="term"><code class="literal">GIMP_INT_STORE_PIXBUF</code></span></p></td>
|
||||
<td>a <span class="type">GdkPixbuf</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><a name="GIMP-INT-STORE-USER-DATA:CAPS"></a><span class="term"><code class="literal">GIMP_INT_STORE_USER_DATA</code></span></p></td>
|
||||
<td>arbitrary user data
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><a name="GIMP-INT-STORE-NUM-COLUMNS:CAPS"></a><span class="term"><code class="literal">GIMP_INT_STORE_NUM_COLUMNS</code></span></p></td>
|
||||
<td>the number of columns
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gimp-int-store-new"></a><h3>gimp_int_store_new ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk3/GtkListStore.html"><span class="returnvalue">GtkListStore</span></a> * gimp_int_store_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
||||
<pre class="programlisting"><span class="returnvalue">GtkListStore</span> * gimp_int_store_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
|
||||
<p>
|
||||
Creates a <a href="http://library.gnome.org/devel/gtk3/GtkListStore.html"><span class="type">GtkListStore</span></a> with a number of useful columns.
|
||||
Creates a <span class="type">GtkListStore</span> with a number of useful columns.
|
||||
<a class="link" href="GimpIntStore.html" title="GimpIntStore"><span class="type">GimpIntStore</span></a> is especially useful if the items you want to store
|
||||
are identified using an integer value.
|
||||
</p>
|
||||
@ -122,9 +159,9 @@ are identified using an integer value.
|
||||
<hr>
|
||||
<div class="refsect2">
|
||||
<a name="gimp-int-store-lookup-by-value"></a><h3>gimp_int_store_lookup_by_value ()</h3>
|
||||
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gimp_int_store_lookup_by_value (<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkTreeModel.html"><span class="type">GtkTreeModel</span></a> *model</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value</code></em>,
|
||||
<em class="parameter"><code><a href="http://library.gnome.org/devel/gtk3/GtkTreeModel.html#GtkTreeIter"><span class="type">GtkTreeIter</span></a> *iter</code></em>);</pre>
|
||||
<pre class="programlisting"><span class="returnvalue">gboolean</span> gimp_int_store_lookup_by_value (<em class="parameter"><code><span class="type">GtkTreeModel</span> *model</code></em>,
|
||||
<em class="parameter"><code><span class="type">gint</span> value</code></em>,
|
||||
<em class="parameter"><code><span class="type">GtkTreeIter</span> *iter</code></em>);</pre>
|
||||
<p>
|
||||
Iterate over the <em class="parameter"><code>model</code></em> looking for <em class="parameter"><code>value</code></em>.
|
||||
</p>
|
||||
@ -149,8 +186,8 @@ Iterate over the <em class="parameter"><code>model</code></em> looking for <em c
|
||||
<tr>
|
||||
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
||||
<td>
|
||||
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the value has been located and <em class="parameter"><code>iter</code></em> is
|
||||
valid, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
|
||||
<code class="literal">TRUE</code> if the value has been located and <em class="parameter"><code>iter</code></em> is
|
||||
valid, <code class="literal">FALSE</code> otherwise.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
@ -161,9 +198,9 @@ valid, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macro
|
||||
<a name="GimpIntStore.property-details"></a><h2>Property Details</h2>
|
||||
<div class="refsect2">
|
||||
<a name="GimpIntStore--user-data-type"></a><h3>The <code class="literal">"user-data-type"</code> property</h3>
|
||||
<pre class="programlisting"> "user-data-type" <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a>* : Read / Write / Construct Only</pre>
|
||||
<pre class="programlisting"> "user-data-type" <span class="type">GType</span>* : Read / Write / Construct Only</pre>
|
||||
<p>
|
||||
Allows to set the <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> for the GIMP_INT_STORE_USER_DATA column.
|
||||
Allows to set the <span class="type">GType</span> for the GIMP_INT_STORE_USER_DATA column.
|
||||
</p>
|
||||
<p>
|
||||
You need to set this property when constructing the store if you want
|
||||
|
||||
Reference in New Issue
Block a user