GtkIMContextClass.setSurroundingWithSelection

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.

struct GtkIMContextClass
extern (C)
void function(GtkIMContext* context, const(char)* text, int len, int cursorIndex, int anchorIndex) setSurroundingWithSelection;