IMContext.getPreeditString

void getPreeditString(out string str, out pango.attr_list.AttrList attrs, out int cursorPos)

Retrieve the current preedit string for the input context, and a list of attributes to apply to the string.

This string should be displayed inserted at the insertion point.

Parameters

strlocation to store the retrieved string. The string retrieved must be freed with [glib.global.gfree].
attrslocation to store the retrieved attribute list. When you are done with this list, you must unreference it with [pango.attr_list.AttrList.unref].
cursorPoslocation to store position of cursor (in characters) within the preedit string.