Next: , Previous: GtkHandleBox, Up: Top


120 GtkIMContextSimple

An input method context supporting table-based input methods

120.1 Overview

120.2 Usage

— Class: <gtk-im-context-simple>

Derives from <gtk-im-context>.

This class defines no direct slots.

— Function: gtk-im-context-simple-new ⇒  (ret <gtk-im-context>)

Creates a new <gtk-im-context-simple>.

ret
a new <gtk-im-context-simple>.
— Function: gtk-im-context-simple-add-table (self <gtk-im-context-simple>) (max_seq_len int) (n_seqs int) ⇒  (data unsigned-int16)
— Method: add-table

Adds an additional table to search to the input context. Each row of the table consists of max-seq-len key symbols followed by two <guint16> interpreted as the high and low words of a <gunicode> value. Tables are searched starting from the last added.

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.)

context-simple
A <gtk-im-context-simple>
data
the table
max-seq-len
Maximum length of a sequence in the table (cannot be greater than <gtk-max-compose-len>)
n-seqs
number of sequences in the table