138 lines
5.4 KiB
XML
138 lines
5.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
|
|
|
|
<refentry id="GimpIntStore">
|
|
<refmeta>
|
|
<refentrytitle role="top_of_page">GimpIntStore</refentrytitle>
|
|
<manvolnum>3</manvolnum>
|
|
<refmiscinfo>LIBGIMPWIDGETS Library</refmiscinfo>
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
<refname>GimpIntStore</refname>
|
|
<refpurpose>A model for integer based name-value pairs (e.g. enums)</refpurpose>
|
|
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv role="synopsis">
|
|
<title role="synopsis.title">Synopsis</title>
|
|
|
|
<synopsis>
|
|
|
|
|
|
|
|
<link linkend="GimpIntStore-struct">GimpIntStore</link>;
|
|
enum <link linkend="GimpIntStoreColumns">GimpIntStoreColumns</link>;
|
|
<link linkend="GtkListStore">GtkListStore</link>* <link linkend="gimp-int-store-new">gimp_int_store_new</link> (void);
|
|
<link linkend="gboolean">gboolean</link> <link linkend="gimp-int-store-lookup-by-value">gimp_int_store_lookup_by_value</link> (<link linkend="GtkTreeModel">GtkTreeModel</link> *model,
|
|
<link linkend="gint">gint</link> value,
|
|
<link linkend="GtkTreeIter">GtkTreeIter</link> *iter);
|
|
|
|
</synopsis>
|
|
</refsynopsisdiv>
|
|
|
|
<refsect1 role="object_hierarchy">
|
|
<title role="object_hierarchy.title">Object Hierarchy</title>
|
|
<synopsis>
|
|
|
|
<link linkend="GObject">GObject</link>
|
|
+----<link linkend="GtkListStore">GtkListStore</link>
|
|
+----GimpIntStore
|
|
+----<link linkend="GimpEnumStore">GimpEnumStore</link>
|
|
</synopsis>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 role="impl_interfaces">
|
|
<title role="impl_interfaces.title">Implemented Interfaces</title>
|
|
<para>
|
|
GimpIntStore implements
|
|
<link linkend="GtkTreeModel">GtkTreeModel</link>, <link linkend="GtkTreeDragSource">GtkTreeDragSource</link>, <link linkend="GtkTreeDragDest">GtkTreeDragDest</link> and <link linkend="GtkTreeSortable">GtkTreeSortable</link>.</para>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
|
|
|
|
<refsect1 role="desc">
|
|
<title role="desc.title">Description</title>
|
|
<para>
|
|
A model for integer based name-value pairs (e.g. enums)
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="details">
|
|
<title role="details.title">Details</title>
|
|
<refsect2>
|
|
<title><anchor id="GimpIntStore-struct" role="struct"/>GimpIntStore</title>
|
|
<indexterm><primary>GimpIntStore</primary></indexterm><programlisting>typedef struct _GimpIntStore GimpIntStore;</programlisting>
|
|
<para>
|
|
|
|
</para></refsect2>
|
|
<refsect2>
|
|
<title><anchor id="GimpIntStoreColumns" role="enum"/>enum GimpIntStoreColumns</title>
|
|
<indexterm><primary>GimpIntStoreColumns</primary></indexterm><programlisting>typedef enum
|
|
{
|
|
GIMP_INT_STORE_VALUE,
|
|
GIMP_INT_STORE_LABEL,
|
|
GIMP_INT_STORE_STOCK_ID,
|
|
GIMP_INT_STORE_PIXBUF,
|
|
GIMP_INT_STORE_USER_DATA,
|
|
GIMP_INT_STORE_NUM_COLUMNS
|
|
} GimpIntStoreColumns;
|
|
</programlisting>
|
|
<para>
|
|
|
|
</para></refsect2>
|
|
<refsect2>
|
|
<title><anchor id="gimp-int-store-new" role="function" condition="since:GIMP 2.2"/>gimp_int_store_new ()</title>
|
|
<indexterm role="GIMP 2.2"><primary>gimp_int_store_new</primary></indexterm><programlisting><link linkend="GtkListStore">GtkListStore</link>* gimp_int_store_new (void);</programlisting>
|
|
<para>
|
|
Creates a <link linkend="GtkListStore"><type>GtkListStore</type></link> with a number of useful columns.
|
|
<link linkend="GimpIntStore"><type>GimpIntStore</type></link> is especially useful if the items you want to store
|
|
are identified using an integer value.</para>
|
|
<para>
|
|
|
|
</para><variablelist role="params">
|
|
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> a new <link linkend="GimpIntStore"><type>GimpIntStore</type></link>.
|
|
|
|
</simpara></listitem></varlistentry>
|
|
</variablelist><para>Since GIMP 2.2
|
|
</para></refsect2>
|
|
<refsect2>
|
|
<title><anchor id="gimp-int-store-lookup-by-value" role="function" condition="since:GIMP 2.2"/>gimp_int_store_lookup_by_value ()</title>
|
|
<indexterm role="GIMP 2.2"><primary>gimp_int_store_lookup_by_value</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> gimp_int_store_lookup_by_value (<link linkend="GtkTreeModel">GtkTreeModel</link> *model,
|
|
<link linkend="gint">gint</link> value,
|
|
<link linkend="GtkTreeIter">GtkTreeIter</link> *iter);</programlisting>
|
|
<para>
|
|
Iterate over the <parameter>model</parameter> looking for <parameter>value</parameter>.</para>
|
|
<para>
|
|
|
|
</para><variablelist role="params">
|
|
<varlistentry><term><parameter>model</parameter> :</term>
|
|
<listitem><simpara> a <link linkend="GimpIntStore"><type>GimpIntStore</type></link>
|
|
</simpara></listitem></varlistentry>
|
|
<varlistentry><term><parameter>value</parameter> :</term>
|
|
<listitem><simpara> an integer value to lookup in the <parameter>model</parameter>
|
|
</simpara></listitem></varlistentry>
|
|
<varlistentry><term><parameter>iter</parameter> :</term>
|
|
<listitem><simpara> return location for the iter of the given <parameter>value</parameter>
|
|
</simpara></listitem></varlistentry>
|
|
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the value has been located and <parameter>iter</parameter> is
|
|
valid, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise.
|
|
|
|
</simpara></listitem></varlistentry>
|
|
</variablelist><para>Since GIMP 2.2
|
|
</para></refsect2>
|
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
|
|
</refentry>
|