Class: Gtk::IMContextSimple

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#add_compose_file(compose_file) ⇒ nil

Parameters:

  • compose_file (String)

Returns:

  • (nil)

#add_table(data, max_seq_len, n_seqs) ⇒ nil

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

Parameters:

  • data (Array<Integer>)

    the table

  • max_seq_len (Integer)

    Maximum length of a sequence in the table (cannot be greater than #GTK_MAX_COMPOSE_LEN)

  • n_seqs (Integer)

    number of sequences in the table

Returns:

  • (nil)

#newGtk::IMContext

Creates a new Gtk::IMContextSimple.

Returns: