SCIMBridge  0.4.x

◆ delete_surrounding_string()

retval_t ScimBridgeAgentClientListenerImpl::delete_surrounding_string ( scim_bridge_imcontext_id_t  imcontext_id,
int  offset,
int  length 
)
virtual

Delete the surrounding string of the preedit cursor.

@parm imcontext_id The id of the IMContext.

Parameters
offsetThe begining offset to remove from the cursor.
lengthThe length of the string to remove.
Returns
REVAL_FAILED when a serious error has occurred, or RETVAL_IGNORED if an timeout has happened. Otherwise it returns RETVAL_SUCCEEDED.

Implements ScimBridgeAgentClientListener.

References scim_bridge_alloc_message(), scim_bridge_free_message(), SCIM_BRIDGE_MESSAGE_DELETE_SURROUNDING_TEXT, scim_bridge_message_set_argument(), scim_bridge_messenger_push_message(), scim_bridge_pdebugln(), scim_bridge_string_from_int(), and scim_bridge_string_from_uint().