drawing_text_declaration.h

Overview

The drawing_text_declaration.h file declares the structs related to text in 2D drawing.

File to include: <native_drawing/drawing_text_declaration.h>

Library: libnative_drawing.so

Since: 8

Related module: Drawing

Summary

Types

Name Description
OH_Drawing_FontCollection Defines an OH_Drawing_FontCollection, which is used to load fonts.
OH_Drawing_Typography Defines an OH_Drawing_Typography, which is used to manage the typography layout and display.
OH_Drawing_TextStyle Defines an OH_Drawing_TextStyle, which is used to manage text colors and decorations.
OH_Drawing_TypographyStyle Defines an OH_Drawing_TypographyStyle, which is used to manage the typography style, such as the text direction.
OH_Drawing_TypographyCreate Creates an OH_Drawing_Typography.
OH_Drawing_TextBox Defines an OH_Drawing_TextBox, which is used to receive the rectangle size, direction, and quantity of text boxes.
OH_Drawing_PositionAndAffinity Defines an OH_Drawing_PositionAndAffinity, which is used to receive the position and affinity of the font.
OH_Drawing_Range Defines an OH_Drawing_Range, which is used to receive the start position and end position of the font.