harmony 鸿蒙drawing_round_rect.h

  • 2025-06-12
  • 浏览 (5)

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 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

0  赞