Skip to main content

OH_TextEditorProxy_HandleSetSelectionFunc

Type Alias OH_TextEditorProxy_HandleSetSelectionFunc 

Source
pub type OH_TextEditorProxy_HandleSetSelectionFunc = Option<unsafe extern "C" fn(textEditorProxy: *mut InputMethod_TextEditorProxy, start: i32, end: i32)>;
Expand description

@brief Called when input method requesting to set selection.

You need to implement this function, set it to {@link InputMethod_TextEditorProxy} through {@link OH_TextEditorProxy_SetHandleSetSelectionFunc}, 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 start Represents the start position of the selection. @param end Represents the end position of the selection. @since 12

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.