Rounding package:gi-gtk

The deleteSurrounding signal is emitted when the input method needs to delete all or part of the context surrounding the cursor.
The retrieveSurrounding signal is emitted when the input method requires the context surrounding the cursor. The callback should set the input method surrounding context by calling the iMContextSetSurrounding method.
Connect a signal handler for the deleteSurrounding signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after iMContext #deleteSurrounding callback
By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.
Connect a signal handler for the retrieveSurrounding signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after iMContext #retrieveSurrounding callback
By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.
Asks the widget that the input context is attached to delete characters around the cursor position by emitting the ::delete_surrounding signal. Note that offset and nChars are in characters not in bytes which differs from the usage other places in GtkIMContext. In order to use this function, you should first call iMContextGetSurrounding to get the current context, and call this function immediately afterwards to make sure that you know what you are deleting. You should also account for the fact that even if the signal was handled, the input context might not have deleted all the characters that were requested to be deleted. This function is used by an input method that wants to make substitutions in the existing text in response to new input. It is not useful for applications.
Deprecated: (Since version 4.2)Use iMContextGetSurroundingWithSelection instead.
Retrieves context around the insertion point. Input methods typically want context in order to constrain input text based on existing text; this is important for languages such as Thai where only some sequences of characters are allowed. This function is implemented by emitting the IMContext::retrieveSurrounding signal on the input method; in response to this signal, a widget should provide as much context as is available, up to an entire paragraph, by calling iMContextSetSurroundingWithSelection. Note that there is no obligation for a widget to respond to the ::retrieve-surrounding signal, so input methods must be prepared to function without context. Since: 4.2
Deprecated: (Since version 4.2)Use iMContextSetSurroundingWithSelection instead
Sets surrounding context around the insertion point and preedit string. This function is expected to be called in response to the signalgtk.IMContext[retrieve_surrounding] signal, and will likely have no effect if called at other times. Since: 4.2
Connect a signal handler for the deleteSurrounding signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on iMContext #deleteSurrounding callback
Connect a signal handler for the retrieveSurrounding signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on iMContext #retrieveSurrounding callback