harmony 鸿蒙drawing_point.h

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

drawing_point.h

Overview

The drawing_point.h file declares the functions related to the coordinate point in the drawing module.

File to include: <native_drawing/drawing_point.h>

Library: libnative_drawing.so

Since: 11

Related module: Drawing

Summary

Functions

Name Description
OH_Drawing_Point * OH_Drawing_PointCreate (float x, float y) Creates an OH_Drawing_Point object.
OH_Drawing_ErrorCode OH_Drawing_PointGetX (const OH_Drawing_Point *point, float *x) Obtains the X coordinate of a point.
OH_Drawing_ErrorCode OH_Drawing_PointGetY (const OH_Drawing_Point *point, float *y) Obtains the Y coordinate of a point.
OH_Drawing_ErrorCode OH_Drawing_PointSet (OH_Drawing_Point *point, float x, float y) Sets the X and Y coordinates of a point.
void OH_Drawing_PointDestroy (OH_Drawing_Point *) Destroys an OH_Drawing_Point object and reclaims the memory occupied by the object.

你可能感兴趣的鸿蒙文章

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  赞