Skip to main content

OH_TextEditorProxy_GetTextIndexAtCursorFunc

Type Alias OH_TextEditorProxy_GetTextIndexAtCursorFunc 

Source
pub type OH_TextEditorProxy_GetTextIndexAtCursorFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy) -> i32>;
Expand description

@brief Called when input method requesting to get text index at cursor.

You need to implement this function, set it to {@link InputMethod_TextEditorProxy} through {@link OH_TextEditorProxy_SetGetTextIndexAtCursorFunc}, 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. @return Returns the index of text at cursor. @since 12

Aliased Type§

pub enum OH_TextEditorProxy_GetTextIndexAtCursorFunc {
    None,
    Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut InputMethod_TextEditorProxy) -> i32)

Some value of type T.