Skip to main content

OH_TextAvoidInfo_Create

Function OH_TextAvoidInfo_Create 

Source
pub unsafe extern "C" fn OH_TextAvoidInfo_Create(
    positionY: f64,
    height: f64,
) -> *mut InputMethod_TextAvoidInfo
Expand description

@brief Create a new {@link InputMethod_TextAvoidInfo} instance.

@param positionY The y-coordinate of the avoid area. @param height The height of the avoid area. @return If the creation succeeds, a pointer to the newly created {@link InputMethod_TextAvoidInfo} instance is returned. If the creation fails, NULL is returned, possible cause is insufficient memory. @since 12