IMContext.connectRetrieveSurrounding

Connect to RetrieveSurrounding signal.

The ::retrieve-surrounding 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 gtk.imcontext.IMContext.setSurrounding method.

class IMContext
ulong
connectRetrieveSurrounding
(
T
)
(,
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] : gtk.imcontext.IMContext)
)
)
&&
Parameters!T.length < 2
)

Parameters

callback T

signal callback delegate or function to connect

bool callback(gtk.imcontext.IMContext iMContext)

iMContext the instance the signal is connected to (optional)

Returns true if the signal was handled.

after Flag!"After"

Yes.After to execute callback after default handler, No.After to execute before (default)

Return Value

Type: ulong

Signal ID