Skip to main content

OH_Drawing_TypographyGetLineInfo

Function OH_Drawing_TypographyGetLineInfo 

Source
pub unsafe extern "C" fn OH_Drawing_TypographyGetLineInfo(
    typography: *mut OH_Drawing_Typography,
    lineNumber: c_int,
    oneLine: bool,
    includeWhitespace: bool,
    drawingLineMetrics: *mut OH_Drawing_LineMetrics,
) -> bool
Expand description

@brief Gets the position of the specified line or the first text of the specified line.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param typography Indicates the pointer to a typography object OH_Drawing_Typography. @param lineNumber Line number. @param oneLine True is the information for the whole line, and false is the information to get the first character @param includeWhitespace Whether the text width contains whitespace. @param drawingLineMetrics Indicates the pointer to a line metrics object OH_Drawing_LineMetrics. @return return whether the information was successfully fetched. @since 12 @version 1.0