Method

WebKit2InputMethodContextget_preedit

Declaration [src]

void
webkit_input_method_context_get_preedit (
  WebKitInputMethodContext* context,
  char** text,
  GList** underlines,
  guint* cursor_offset
)

Description [src]

Get the current preedit string for the context, and a list of WebKitInputMethodUnderline to apply to the string. The string will be displayed inserted at cursor_offset.

Available since:2.28

Parameters

text char**
 

Location to store the preedit string.

 The argument will be set by the function.
 The argument can be set to NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
 The value is a NUL terminated UTF-8 string.
underlines A list of None
 

Location to store the underlines as a GList of WebKitInputMethodUnderline.

 The argument will be set by the function.
 The argument can be set to NULL.
 The instance takes ownership of the data, and is responsible for freeing it.
cursor_offset guint*
 

Location to store the position of cursor in preedit string.

 The argument will be set by the function.
 The argument can be set to NULL.