SCIMBridge  0.4.x
boolean scim_bridge_client_imcontext_get_surrounding_text ( ScimBridgeClientIMContext imcontext,
int  before_max,
int  after_max,
char **  string,
int *  cursor_position 
)

Get the surrounding text of an IMContext.

Parameters
imcontextThe IMContext.
before_maxThe maximum number of characters (in wchar) to fetch before the cursor (= caret).
after_maxThe maximum number of characters (in wchar) to fetch after the cursor (= caret).
stringThe pointer for the gotten string.
cursor_positionThe cursor position in the gotten string (in wchar).
Returns
It returns TRUE if succeeded to get it, otherwise it returns FALSE.