IMContext.connectDeleteSurrounding
gulong connectDeleteSurrounding(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == bool)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == int)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.imcontext.IMContext)))
&& Parameters!T.length < 4)Connect to DeleteSurrounding signal.
The ::delete-surrounding signal is emitted when the input method needs to delete all or part of the context surrounding the cursor.
Parameters
callback | signal callback delegate or function to connect bool callback(int offset, int nChars, gtk.imcontext.IMContext iMContext) offset the character offset from the cursor position of the text to be deleted. A negative value indicates a position before the cursor. (optional) nChars the number of characters to be deleted (optional) iMContext the instance the signal is connected to (optional) Returns true if the signal was handled. |
after | Yes.After to execute callback after default handler, No.After to execute before (default) |
Returns
Signal ID