Skip to main content

OH_Drawing_GetLeftFromTextBox

Function OH_Drawing_GetLeftFromTextBox 

Source
pub unsafe extern "C" fn OH_Drawing_GetLeftFromTextBox(
    textbox: *mut OH_Drawing_TextBox,
    index: c_int,
) -> f32
Expand description

@brief Obtains the left position of a text box.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param textbox Pointer to the OH_Drawing_TextBox object, which is obtained from {@link OH_Drawing_TypographyGetRectsForRange} or {@link OH_Drawing_TypographyGetRectsForPlaceholders}. @param index Index of the text box. The value ranges from 0 to the number of text boxes minus 1. The number of text boxes can be obtained through {@link OH_Drawing_GetSizeOfTextBox}. 0.0 is returned when the index is out of range. @return Left position. @since 11 @version 1.0