Class: Gtk::IMContextSimple

Inherits:
IMContext show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from IMContext

#activate_osk, #client_widget=, #cursor_location=, #delete_surrounding, #filter_key, #filter_keypress, #focus_in, #focus_out, #get_preedit_string, #get_surrounding, #get_surrounding_with_selection, #input_hints, #input_hints=, #input_purpose, #input_purpose=, #reset, #set_surrounding, #set_surrounding_with_selection, #use_preedit=

Constructor Details

#initializeGtk::IMContext

Creates a new GtkIMContextSimple.

Instance Method Details

#add_compose_file(compose_file) ⇒ nil

Adds an additional table from the X11 compose file.

Parameters:

  • compose_file (String)

    The path of compose file

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

  • n_seqs (Integer)

    number of sequences in the table

Returns:

  • (nil)