harmony 鸿蒙drawing_text_blob.h
drawing_text_blob.h
Overview
The drawing_text_blob.h file declares the functions related to the text blob in the drawing module.
File to include: <native_drawing/drawing_text_blob.h>
Library: libnative_drawing.so
Since: 11
Related module: Drawing
Summary
Structs
Name | Description |
---|---|
struct OH_Drawing_RunBuffer | Describes a run, which provides storage for glyphs and positions. |
Types
Name | Description |
---|---|
typedef struct OH_Drawing_RunBuffer OH_Drawing_RunBuffer | Defines a struct that describes a run, which provides storage for glyphs and positions. |
Functions
Name | Description |
---|---|
OH_Drawing_TextBlobBuilder * OH_Drawing_TextBlobBuilderCreate (void) | Creates an OH_Drawing_TextBlobBuilder object. |
OH_Drawing_TextBlob * OH_Drawing_TextBlobCreateFromText (const void *text, size_t byteLength, const OH_Drawing_Font *, OH_Drawing_TextEncoding) | Creates an OH_Drawing_TextBlob object from the text. |
OH_Drawing_TextBlob * OH_Drawing_TextBlobCreateFromPosText (const void *text, size_t byteLength, OH_Drawing_Point2D *, const OH_Drawing_Font *, OH_Drawing_TextEncoding) | Creates an OH_Drawing_TextBlob object from the text. The coordinates of each character in the OH_Drawing_TextBlob object are determined by the coordinate information in the OH_Drawing_Point2D array. |
OH_Drawing_TextBlob * OH_Drawing_TextBlobCreateFromString (const char *str, const OH_Drawing_Font *, OH_Drawing_TextEncoding) | Creates an OH_Drawing_TextBlob object from a string. |
void OH_Drawing_TextBlobGetBounds (OH_Drawing_TextBlob *, OH_Drawing_Rect *) | Obtains the bounds of an OH_Drawing_TextBlob object. |
uint32_t OH_Drawing_TextBlobUniqueID (const OH_Drawing_TextBlob *) | Obtains the unique identifier of a text blob. The identifier is a non-zero value. |
const OH_Drawing_RunBuffer * OH_Drawing_TextBlobBuilderAllocRunPos (OH_Drawing_TextBlobBuilder *, const OH_Drawing_Font *, int32_t count, const OH_Drawing_Rect *) | Allocates a run to store glyphs and positions. The pointer returned does not need to be managed by the caller. It can no longer be used after OH_Drawing_TextBlobBuilderMake is called. |
OH_Drawing_TextBlob * OH_Drawing_TextBlobBuilderMake (OH_Drawing_TextBlobBuilder *) | Makes an OH_Drawing_TextBlob object from an OH_Drawing_TextBlobBuilder. |
void OH_Drawing_TextBlobDestroy (OH_Drawing_TextBlob *) | Destroys an OH_Drawing_TextBlob object and reclaims the memory occupied by the object. |
void OH_Drawing_TextBlobBuilderDestroy (OH_Drawing_TextBlobBuilder *) | Destroys an OH_Drawing_TextBlobBuilder object and reclaims the memory occupied by the object. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙DisplaySoloist_ExpectedRateRange
harmony 鸿蒙NativeColorSpaceManager
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦