GtkIMContextClass

preedit_start () Default handler of the "preedit-start" signal. preedit_end () Default handler of the "preedit-end" signal. preedit_changed () Default handler of the "preedit-changed" signal. commit () Default handler of the "commit" signal. retrieve_surrounding () Default handler of the "retrieve-surrounding" signal. delete_surrounding () Default handler of the "delete-surrounding" signal. set_client_window () Called via gtk_im_context_set_client_window() when the input window where the entered text will appear changes. Override this to keep track of the current input window, for instance for the purpose of positioning a status display of your input method. get_preedit_string () Called via gtk_im_context_get_preedit_string() to retrieve the text currently being preedited for display at the cursor position. Any input method which composes complex characters or any other compositions from multiple sequential key presses should override this method to provide feedback. filter_keypress () Called via gtk_im_context_filter_keypress() on every key press or release event. Every non-trivial input method needs to override this in order to implement the mapping from key events to text. A return value of TRUE indicates to the caller that the event was consumed by the input method. In that case, the "commit" signal should be emitted upon completion of a key sequence to pass the resulting text back to the input widget. Alternatively, FALSE may be returned to indicate that the event wasn't handled by the input method. If a builtin mapping exists for the key, it is used to produce a character. focus_in () Called via gtk_im_context_focus_in() when the input widget has gained focus. May be overridden to keep track of the current focus. focus_out () Called via gtk_im_context_focus_out() when the input widget has lost focus. May be overridden to keep track of the current focus. reset () Called via gtk_im_context_reset() to signal a change such as a change in cursor position. An input method that implements preediting should override this method to clear the preedit state on reset. set_cursor_location () Called via gtk_im_context_set_cursor_location() to inform the input method of the current cursor location relative to the client window. May be overridden to implement the display of popup windows at the cursor position. set_use_preedit () Called via gtk_im_context_set_use_preedit() to control the use of the preedit string. Override this to display feedback by some other means if turned off. set_surrounding () Called via gtk_im_context_set_surrounding() in response to signal "retrieve-surrounding" to update the input method's idea of the context around the cursor. It is not necessary to override this method even with input methods which implement context-dependent behavior. The base implementation is sufficient for gtk_im_context_get_surrounding() to work. get_surrounding () Called via gtk_im_context_get_surrounding() to update the context around the cursor location. It is not necessary to override this method even with input methods which implement context-dependent behavior. The base implementation emits "retrieve-surrounding" and records the context received by the subsequent invocation of get_surrounding.

Members

Variables

commit
void function(GtkIMContext* context, char* str) commit;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
deleteSurrounding
int function(GtkIMContext* context, int offset, int nChars) deleteSurrounding;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
filterKeypress
int function(GtkIMContext* context, GdkEventKey* event) filterKeypress;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
focusIn
void function(GtkIMContext* context) focusIn;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
focusOut
void function(GtkIMContext* context) focusOut;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
getPreeditString
void function(GtkIMContext* context, char** str, PangoAttrList** attrs, int* cursorPos) getPreeditString;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
getSurrounding
int function(GtkIMContext* context, char** text, int* cursorIndex) getSurrounding;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
preeditChanged
void function(GtkIMContext* context) preeditChanged;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
preeditEnd
void function(GtkIMContext* context) preeditEnd;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
preeditStart
void function(GtkIMContext* context) preeditStart;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
reset
void function(GtkIMContext* context) reset;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
retrieveSurrounding
int function(GtkIMContext* context) retrieveSurrounding;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
setClientWindow
void function(GtkIMContext* context, GdkWindow* window) setClientWindow;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
setCursorLocation
void function(GtkIMContext* context, Rectangle* area) setCursorLocation;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
setSurrounding
void function(GtkIMContext* context, char* text, int len, int cursorIndex) setSurrounding;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
setUsePreedit
void function(GtkIMContext* context, int usePreedit) setUsePreedit;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta