Virtual Method

WebKit2InputMethodContextnotify_surrounding

Declaration [src]

void
notify_surrounding (
  WebKitInputMethodContext* context,
  const gchar* text,
  guint length,
  guint cursor_index,
  guint selection_index
)

Description [src]

Notify context that the context surrounding the cursor has changed.

If there’s no selection selection_index is the same as cursor_index.

Available since:2.28

Parameters

text const gchar*
 

Text surrounding the insertion point.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
length guint
 

The length of text, or -1 if text is nul-terminated.

cursor_index guint
 

The byte index of the insertion cursor within text.

selection_index guint
 

The byte index of the selection cursor within text.