Default handler of the gtk.imcontext.IMContext.commit signal.
Default handler of the signal@Gtk.IMContext::delete-surrounding signal.
Called via gtk.imcontext.IMContext.filterKeypress 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 gtk.imcontext.IMContext.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.
Called via gtk.imcontext.IMContext.focusIn when the input widget has gained focus. May be overridden to keep track of the current focus.
Called via gtk.imcontext.IMContext.focusOut when the input widget has lost focus. May be overridden to keep track of the current focus.
Called via gtk.imcontext.IMContext.getPreeditString 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.
Called via gtk.imcontext.IMContext.getSurrounding 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 signal@Gtk.IMContext::retrieve-surrounding and records the context received by the subsequent invocation of vfunc@Gtk.IMContext.get_surrounding.
Called via gtk.imcontext.IMContext.getSurroundingWithSelection 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 signal@Gtk.IMContext::retrieve-surrounding and records the context received by the subsequent invocation of vfunc@Gtk.IMContext.get_surrounding.
Default handler of the signal@Gtk.IMContext::preedit-changed signal.
Default handler of the signal@Gtk.IMContext::preedit-end signal.
Default handler of the signal@Gtk.IMContext::preedit-start signal.
Called via gtk.imcontext.IMContext.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.
Default handler of the signal@Gtk.IMContext::retrieve-surrounding signal.
Called via gtk.imcontext.IMContext.setClientWidget 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.
Called via gtk.imcontext.IMContext.setCursorLocation 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.
Called via gtk.imcontext.IMContext.setSurrounding in response to signal@Gtk.IMContext::retrieve-surrounding signal 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.imcontext.IMContext.getSurrounding to work.
Called via gtk.imcontext.IMContext.setSurroundingWithSelection in response to the signal@Gtk.IMContext::retrieve-surrounding signal 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.imcontext.IMContext.getSurrounding to work.
Called via gtk.imcontext.IMContext.setUsePreedit to control the use of the preedit string. Override this to display feedback by some other means if turned off.