pub type OH_TextEditorProxy_GetRightTextOfCursorFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, number: i32, text: *mut u16, length: *mut usize)>;Expand description
@brief Called when input method requesting to get right text of cursor.
You need to implement this function, set it to {@link InputMethod_TextEditorProxy} through {@link OH_TextEditorProxy_SetGetRightTextOfCursorFunc}, and use {@link OH_InputMethodController_Attach} to complete the registration.\n
@param textEditorProxy Represents a pointer to an {@link InputMethod_TextEditorProxy} instance which will be set in. @param number Represents the number of characters to be get. @param text Represents the right text of cursor, you need to assing this parameter. You can only access the memory when this callback is called. After this callback returns, the memory will be released and you should not access this memory again. @param length Represents the length of the right text of cursor. @since 12
Aliased Type§
pub enum OH_TextEditorProxy_GetRightTextOfCursorFunc {
None,
Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy, i32, *mut u16, *mut usize)),
}