harmony 鸿蒙drawing_round_rect.h
drawing_round_rect.h
Overview
The drawing_round_rect.h file declares the functions related to the rounded rectangle in the drawing module.
File to include:
Library: libnative_drawing.so
Since: 11
Related module: Drawing
Summary
Types
Name | Description |
---|---|
typedef enum OH_Drawing_CornerPos OH_Drawing_CornerPos | Defines an enum for the corner positions of a rounded rectangle. |
Enums
Name | Description |
---|---|
OH_Drawing_CornerPos { CORNER_POS_TOP_LEFT, CORNER_POS_TOP_RIGHT, CORNER_POS_BOTTOM_RIGHT, CORNER_POS_BOTTOM_LEFT } | Enumerates the corner positions of a rounded rectangle. |
Functions
Name | Description |
---|---|
OH_Drawing_RoundRect * OH_Drawing_RoundRectCreate (const OH_Drawing_Rect *, float xRad, float yRad) | Creates an OH_Drawing_RoundRect object. |
void OH_Drawing_RoundRectSetCorner (OH_Drawing_RoundRect *, OH_Drawing_CornerPos pos, OH_Drawing_Corner_Radii) | Sets the radii of the specified rounded corner in a rounded rectangle. |
OH_Drawing_Corner_Radii OH_Drawing_RoundRectGetCorner (OH_Drawing_RoundRect *, OH_Drawing_CornerPos pos) | Obtains the radii of the specified rounded corner in a rounded rectangle. |
void OH_Drawing_RoundRectDestroy (OH_Drawing_RoundRect *) | Destroys an OH_Drawing_RoundRect object and reclaims the memory occupied by the object. |
OH_Drawing_ErrorCode OH_Drawing_RoundRectOffset (OH_Drawing_RoundRect *roundRect, float dx, float dy) | Translates a rounded rectangle by an offset along the X axis and Y axis. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙DisplaySoloist_ExpectedRateRange
harmony 鸿蒙NativeColorSpaceManager
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦