<refentry id="GtkIMContextSimple">
<refmeta>
<refentrytitle>GtkIMContextSimple</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>GtkIMContextSimple</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>
<synopsis>

#include &lt;gtk/gtk.h&gt;


struct      <link linkend="GtkIMContextSimple-struct">GtkIMContextSimple</link>;
<link linkend="GtkIMContext">GtkIMContext</link>* <link linkend="gtk-im-context-simple-new">gtk_im_context_simple_new</link>     (void);
void        <link linkend="gtk-im-context-simple-add-table">gtk_im_context_simple_add_table</link> (<link linkend="GtkIMContextSimple">GtkIMContextSimple</link> *context_simple,
                                             <link linkend="guint16">guint16</link> *data,
                                             <link linkend="gint">gint</link> max_seq_len,
                                             <link linkend="gint">gint</link> n_seqs);
#define     <link linkend="GTK-MAX-COMPOSE-LEN-CAPS">GTK_MAX_COMPOSE_LEN</link>


</synopsis>
</refsynopsisdiv>

<refsect1>
<title>Object Hierarchy</title>
<synopsis>

  <link linkend="GObject">GObject</link>
   +----<link linkend="GtkIMContext">GtkIMContext</link>
         +----GtkIMContextSimple
</synopsis>

</refsect1>




<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="GtkIMContextSimple-struct">struct GtkIMContextSimple</title>
<programlisting>struct GtkIMContextSimple;</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gtk-im-context-simple-new">gtk_im_context_simple_new ()</title>
<programlisting><link linkend="GtkIMContext">GtkIMContext</link>* gtk_im_context_simple_new     (void);</programlisting>
<para>
Creates a new <link linkend="GtkIMContextSimple">GtkIMContextSimple</link>.</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> a new <link linkend="GtkIMContextSimple">GtkIMContextSimple</link>.
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="gtk-im-context-simple-add-table">gtk_im_context_simple_add_table ()</title>
<programlisting>void        gtk_im_context_simple_add_table (<link linkend="GtkIMContextSimple">GtkIMContextSimple</link> *context_simple,
                                             <link linkend="guint16">guint16</link> *data,
                                             <link linkend="gint">gint</link> max_seq_len,
                                             <link linkend="gint">gint</link> n_seqs);</programlisting>
<para>
Adds an additional table to search to the input context.
Each row of the table consists of <parameter>max_seq_len</parameter> key symbols
followed by two <link linkend="guint16">guint16</link> interpreted as the high and low
words of a <link linkend="gunicode">gunicode</link> value. Tables are searched starting
from the last added.
</para>
<para>
The table must be sorted in dictionary order on the
numeric value of the key symbol fields. (Values beyond
the length of the sequence should be zero.)</para>
<para>

</para><informaltable pgwide="1" frame="none" role="params">
<tgroup cols="2">
<colspec colwidth="2*">
<colspec colwidth="8*">
<tbody>
<row><entry align="right"><parameter>context_simple</parameter>&nbsp;:</entry>
<entry> A <link linkend="GtkIMContextSimple">GtkIMContextSimple</link>
</entry></row>
<row><entry align="right"><parameter>data</parameter>&nbsp;:</entry>
<entry> the table 
</entry></row>
<row><entry align="right"><parameter>max_seq_len</parameter>&nbsp;:</entry>
<entry> Maximum length of a sequence in the table
              (cannot be greater than <link linkend="GTK-MAX-COMPOSE-LEN-CAPS">GTK_MAX_COMPOSE_LEN</link>)
</entry></row>
<row><entry align="right"><parameter>n_seqs</parameter>&nbsp;:</entry>
<entry> number of sequences in the table
</entry></row>
</tbody></tgroup></informaltable></refsect2>
<refsect2>
<title><anchor id="GTK-MAX-COMPOSE-LEN-CAPS">GTK_MAX_COMPOSE_LEN</title>
<programlisting>#define GTK_MAX_COMPOSE_LEN 7
</programlisting>
<para>
The maximum length of sequences in compose tables.
</para></refsect2>

</refsect1>




</refentry>
