Skip to main content

ohos_native_drawing_sys/
lib.rs

1/* automatically generated by rust-bindgen 0.65.1 */
2
3#![allow(non_snake_case)]
4#![allow(non_upper_case_globals)]
5#![allow(non_camel_case_types)]
6#![allow(clippy::missing_safety_doc)]
7
8#[allow(unused_imports)]
9use ohos_image_native_sys::*;
10use ohos_image_sys::*;
11
12#[link(name = "native_drawing")]
13unsafe extern "C" {}
14
15#[repr(C)]
16#[derive(Debug, Copy, Clone)]
17pub struct OH_Drawing_Canvas {
18    _unused: [u8; 0],
19}
20#[repr(C)]
21#[derive(Debug, Copy, Clone)]
22pub struct OH_Drawing_Pen {
23    _unused: [u8; 0],
24}
25#[repr(C)]
26#[derive(Debug, Copy, Clone)]
27pub struct OH_Drawing_Region {
28    _unused: [u8; 0],
29}
30#[repr(C)]
31#[derive(Debug, Copy, Clone)]
32pub struct OH_Drawing_Brush {
33    _unused: [u8; 0],
34}
35#[repr(C)]
36#[derive(Debug, Copy, Clone)]
37pub struct OH_Drawing_Path {
38    _unused: [u8; 0],
39}
40#[repr(C)]
41#[derive(Debug, Copy, Clone)]
42pub struct OH_Drawing_PathIterator {
43    _unused: [u8; 0],
44}
45#[repr(C)]
46#[derive(Debug, Copy, Clone)]
47pub struct OH_Drawing_Lattice {
48    _unused: [u8; 0],
49}
50#[repr(C)]
51#[derive(Debug, Copy, Clone)]
52pub struct OH_Drawing_Bitmap {
53    _unused: [u8; 0],
54}
55#[repr(C)]
56#[derive(Debug, Copy, Clone)]
57pub struct OH_Drawing_Point {
58    _unused: [u8; 0],
59}
60#[repr(C)]
61#[derive(Debug, Copy, Clone)]
62pub struct OH_Drawing_PixelMap {
63    _unused: [u8; 0],
64}
65#[repr(C)]
66#[derive(Debug, Copy, Clone)]
67pub struct OH_Drawing_ColorSpace {
68    _unused: [u8; 0],
69}
70#[doc = " @brief Defines a point of 2d.\n\n @since 12\n @version 1.0"]
71#[repr(C)]
72#[derive(Debug, Copy, Clone)]
73pub struct OH_Drawing_Point2D {
74    pub x: f32,
75    pub y: f32,
76}
77#[doc = " @brief Defines a corner radii, which is on x-axis and y-axis.\n\n @since 12\n @version 1.0"]
78pub type OH_Drawing_Corner_Radii = OH_Drawing_Point2D;
79#[doc = " @brief Defines a point of 3d, which is used to describe the coordinate point.\n\n @since 12\n @version 1.0"]
80#[repr(C)]
81#[derive(Debug, Copy, Clone)]
82pub struct OH_Drawing_Point3D {
83    pub x: f32,
84    pub y: f32,
85    pub z: f32,
86}
87#[repr(C)]
88#[derive(Debug, Copy, Clone)]
89pub struct OH_Drawing_PathEffect {
90    _unused: [u8; 0],
91}
92#[repr(C)]
93#[derive(Debug, Copy, Clone)]
94pub struct OH_Drawing_Rect {
95    _unused: [u8; 0],
96}
97#[repr(C)]
98#[derive(Debug, Copy, Clone)]
99pub struct OH_Drawing_RoundRect {
100    _unused: [u8; 0],
101}
102#[repr(C)]
103#[derive(Debug, Copy, Clone)]
104pub struct OH_Drawing_Matrix {
105    _unused: [u8; 0],
106}
107#[repr(C)]
108#[derive(Debug, Copy, Clone)]
109pub struct OH_Drawing_ShaderEffect {
110    _unused: [u8; 0],
111}
112#[repr(C)]
113#[derive(Debug, Copy, Clone)]
114pub struct OH_Drawing_ShadowLayer {
115    _unused: [u8; 0],
116}
117#[repr(C)]
118#[derive(Debug, Copy, Clone)]
119pub struct OH_Drawing_Filter {
120    _unused: [u8; 0],
121}
122#[repr(C)]
123#[derive(Debug, Copy, Clone)]
124pub struct OH_Drawing_MaskFilter {
125    _unused: [u8; 0],
126}
127#[repr(C)]
128#[derive(Debug, Copy, Clone)]
129pub struct OH_Drawing_ColorFilter {
130    _unused: [u8; 0],
131}
132#[repr(C)]
133#[derive(Debug, Copy, Clone)]
134pub struct OH_Drawing_Font {
135    _unused: [u8; 0],
136}
137#[repr(C)]
138#[derive(Debug, Copy, Clone)]
139pub struct OH_Drawing_FontFeatures {
140    _unused: [u8; 0],
141}
142#[repr(C)]
143#[derive(Debug, Copy, Clone)]
144pub struct OH_Drawing_MemoryStream {
145    _unused: [u8; 0],
146}
147#[repr(C)]
148#[derive(Debug, Copy, Clone)]
149pub struct OH_Drawing_FontArguments {
150    _unused: [u8; 0],
151}
152#[repr(C)]
153#[derive(Debug, Copy, Clone)]
154pub struct OH_Drawing_Typeface {
155    _unused: [u8; 0],
156}
157#[repr(C)]
158#[derive(Debug, Copy, Clone)]
159pub struct OH_Drawing_TextBlob {
160    _unused: [u8; 0],
161}
162#[repr(C)]
163#[derive(Debug, Copy, Clone)]
164pub struct OH_Drawing_Image {
165    _unused: [u8; 0],
166}
167#[repr(C)]
168#[derive(Debug, Copy, Clone)]
169pub struct OH_Drawing_ImageFilter {
170    _unused: [u8; 0],
171}
172#[repr(C)]
173#[derive(Debug, Copy, Clone)]
174pub struct OH_Drawing_SamplingOptions {
175    _unused: [u8; 0],
176}
177#[repr(C)]
178#[derive(Debug, Copy, Clone)]
179pub struct OH_Drawing_TextBlobBuilder {
180    _unused: [u8; 0],
181}
182#[repr(C)]
183#[derive(Debug, Copy, Clone)]
184pub struct OH_Drawing_GpuContext {
185    _unused: [u8; 0],
186}
187#[repr(C)]
188#[derive(Debug, Copy, Clone)]
189pub struct OH_Drawing_Surface {
190    _unused: [u8; 0],
191}
192#[doc = " Unknown format."]
193pub const OH_Drawing_ColorFormat_COLOR_FORMAT_UNKNOWN: OH_Drawing_ColorFormat = 0;
194#[doc = " Each pixel is represented by 8 bits, which together indicate alpha."]
195pub const OH_Drawing_ColorFormat_COLOR_FORMAT_ALPHA_8: OH_Drawing_ColorFormat = 1;
196#[doc = " Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n the first 5 bits indicate red, the subsequent 6 bits indicate green, and the last 5 bits indicate blue."]
197pub const OH_Drawing_ColorFormat_COLOR_FORMAT_RGB_565: OH_Drawing_ColorFormat = 2;
198#[doc = " Each pixel is represented by 16 bits. From the most significant bit to the least significant bit,\n every 4 bits indicate alpha, red, green, and blue, respectively."]
199pub const OH_Drawing_ColorFormat_COLOR_FORMAT_ARGB_4444: OH_Drawing_ColorFormat = 3;
200#[doc = " Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n every 8 bits indicate alpha, red, green, and blue, respectively."]
201pub const OH_Drawing_ColorFormat_COLOR_FORMAT_RGBA_8888: OH_Drawing_ColorFormat = 4;
202#[doc = " Each pixel is represented by 32 bits. From the most significant bit to the least significant bit,\n every 8 bits indicate blue, green, red, and alpha, respectively."]
203pub const OH_Drawing_ColorFormat_COLOR_FORMAT_BGRA_8888: OH_Drawing_ColorFormat = 5;
204#[doc = " @brief Enumerates storage formats of bitmap pixels.\n\n @since 8\n @version 1.0"]
205pub type OH_Drawing_ColorFormat = u32;
206#[doc = " Unknown format."]
207pub const OH_Drawing_AlphaFormat_ALPHA_FORMAT_UNKNOWN: OH_Drawing_AlphaFormat = 0;
208#[doc = " The bitmap does not have the alpha component."]
209pub const OH_Drawing_AlphaFormat_ALPHA_FORMAT_OPAQUE: OH_Drawing_AlphaFormat = 1;
210#[doc = " The color component of each pixel is premultiplied by the alpha component."]
211pub const OH_Drawing_AlphaFormat_ALPHA_FORMAT_PREMUL: OH_Drawing_AlphaFormat = 2;
212#[doc = " The color component of each pixel is not premultiplied by the alpha component."]
213pub const OH_Drawing_AlphaFormat_ALPHA_FORMAT_UNPREMUL: OH_Drawing_AlphaFormat = 3;
214#[doc = " @brief Enumerates alpha formats of bitmap pixels.\n\n @since 8\n @version 1.0"]
215pub type OH_Drawing_AlphaFormat = u32;
216#[doc = " r = 0."]
217pub const OH_Drawing_BlendMode_BLEND_MODE_CLEAR: OH_Drawing_BlendMode = 0;
218#[doc = " r = s."]
219pub const OH_Drawing_BlendMode_BLEND_MODE_SRC: OH_Drawing_BlendMode = 1;
220#[doc = " r = d."]
221pub const OH_Drawing_BlendMode_BLEND_MODE_DST: OH_Drawing_BlendMode = 2;
222#[doc = " r = s + (1-sa)*d."]
223pub const OH_Drawing_BlendMode_BLEND_MODE_SRC_OVER: OH_Drawing_BlendMode = 3;
224#[doc = " r = d + (1-da)*s."]
225pub const OH_Drawing_BlendMode_BLEND_MODE_DST_OVER: OH_Drawing_BlendMode = 4;
226#[doc = " r = s * da."]
227pub const OH_Drawing_BlendMode_BLEND_MODE_SRC_IN: OH_Drawing_BlendMode = 5;
228#[doc = " r = d * sa."]
229pub const OH_Drawing_BlendMode_BLEND_MODE_DST_IN: OH_Drawing_BlendMode = 6;
230#[doc = " r = s * (1-da)."]
231pub const OH_Drawing_BlendMode_BLEND_MODE_SRC_OUT: OH_Drawing_BlendMode = 7;
232#[doc = " r = d * (1-sa)."]
233pub const OH_Drawing_BlendMode_BLEND_MODE_DST_OUT: OH_Drawing_BlendMode = 8;
234#[doc = " r = s*da + d*(1-sa)."]
235pub const OH_Drawing_BlendMode_BLEND_MODE_SRC_ATOP: OH_Drawing_BlendMode = 9;
236#[doc = " r = d*sa + s*(1-da)."]
237pub const OH_Drawing_BlendMode_BLEND_MODE_DST_ATOP: OH_Drawing_BlendMode = 10;
238#[doc = " r = s*(1-da) + d*(1-sa)."]
239pub const OH_Drawing_BlendMode_BLEND_MODE_XOR: OH_Drawing_BlendMode = 11;
240#[doc = " r = min(s + d, 1)."]
241pub const OH_Drawing_BlendMode_BLEND_MODE_PLUS: OH_Drawing_BlendMode = 12;
242#[doc = " r = s*d."]
243pub const OH_Drawing_BlendMode_BLEND_MODE_MODULATE: OH_Drawing_BlendMode = 13;
244#[doc = " r = s + d - s*d."]
245pub const OH_Drawing_BlendMode_BLEND_MODE_SCREEN: OH_Drawing_BlendMode = 14;
246#[doc = " multiply or screen, depending on destination."]
247pub const OH_Drawing_BlendMode_BLEND_MODE_OVERLAY: OH_Drawing_BlendMode = 15;
248#[doc = " rc = s + d - max(s*da, d*sa), ra = s + (1-sa)*d."]
249pub const OH_Drawing_BlendMode_BLEND_MODE_DARKEN: OH_Drawing_BlendMode = 16;
250#[doc = " rc = s + d - min(s*da, d*sa), ra = s + (1-sa)*d."]
251pub const OH_Drawing_BlendMode_BLEND_MODE_LIGHTEN: OH_Drawing_BlendMode = 17;
252#[doc = " brighten destination to reflect source."]
253pub const OH_Drawing_BlendMode_BLEND_MODE_COLOR_DODGE: OH_Drawing_BlendMode = 18;
254#[doc = " darken destination to reflect source."]
255pub const OH_Drawing_BlendMode_BLEND_MODE_COLOR_BURN: OH_Drawing_BlendMode = 19;
256#[doc = " multiply or screen, depending on source."]
257pub const OH_Drawing_BlendMode_BLEND_MODE_HARD_LIGHT: OH_Drawing_BlendMode = 20;
258#[doc = " lighten or darken, depending on source."]
259pub const OH_Drawing_BlendMode_BLEND_MODE_SOFT_LIGHT: OH_Drawing_BlendMode = 21;
260#[doc = " rc = s + d - 2*(min(s*da, d*sa)), ra = s + (1-sa)*d."]
261pub const OH_Drawing_BlendMode_BLEND_MODE_DIFFERENCE: OH_Drawing_BlendMode = 22;
262#[doc = " rc = s + d - two(s*d), ra = s + (1-sa)*d."]
263pub const OH_Drawing_BlendMode_BLEND_MODE_EXCLUSION: OH_Drawing_BlendMode = 23;
264#[doc = " r = s*(1-da) + d*(1-sa) + s*d."]
265pub const OH_Drawing_BlendMode_BLEND_MODE_MULTIPLY: OH_Drawing_BlendMode = 24;
266#[doc = " hue of source with saturation and luminosity of destination."]
267pub const OH_Drawing_BlendMode_BLEND_MODE_HUE: OH_Drawing_BlendMode = 25;
268#[doc = " saturation of source with hue and luminosity of destination."]
269pub const OH_Drawing_BlendMode_BLEND_MODE_SATURATION: OH_Drawing_BlendMode = 26;
270#[doc = " hue and saturation of source with luminosity of destination."]
271pub const OH_Drawing_BlendMode_BLEND_MODE_COLOR: OH_Drawing_BlendMode = 27;
272#[doc = " luminosity of source with hue and saturation of destination."]
273pub const OH_Drawing_BlendMode_BLEND_MODE_LUMINOSITY: OH_Drawing_BlendMode = 28;
274#[doc = " @brief The blending operation generates a new color for the two colors (source, destination).\n These operations are the same on the 4 color channels: red, green, blue, alpha.\n For these, we use alpha channel as an example, rather than naming each channel individually.\n\n For brevity, we use the following abbreviations.\n s  : source\n d  : destination\n sa : source alpha\n da : destination alpha\n\n Results are abbreviated\n r  : if all 4 channels are computed in the same manner\n ra : result alpha channel\n rc : result \"color\": red, green, blue channels\n\n @since 11\n @version 1.0"]
275pub type OH_Drawing_BlendMode = u32;
276#[doc = " @brief Defines image info struct.\n\n @since 12\n @version 1.0"]
277#[repr(C)]
278#[derive(Debug, Copy, Clone)]
279pub struct OH_Drawing_Image_Info {
280    #[doc = " storage for width of image"]
281    pub width: i32,
282    #[doc = " storage for height of image"]
283    pub height: i32,
284    #[doc = " storage for color formats"]
285    pub colorType: OH_Drawing_ColorFormat,
286    #[doc = " storage for alpha formats"]
287    pub alphaType: OH_Drawing_AlphaFormat,
288}
289#[doc = " @brief Defines rectstyle info struct.\n\n @since 12\n @version 1.0"]
290#[repr(C)]
291#[derive(Debug, Copy, Clone)]
292pub struct OH_Drawing_RectStyle_Info {
293    #[doc = " color of rectstyle"]
294    pub color: u32,
295    #[doc = " radius in left top of rectstyle"]
296    pub leftTopRadius: f64,
297    #[doc = " radius in right top of rectstyle"]
298    pub rightTopRadius: f64,
299    #[doc = " radius in right bottom of rectstyle"]
300    pub rightBottomRadius: f64,
301    #[doc = " radius in left bottom of rectstyle"]
302    pub leftBottomRadius: f64,
303}
304#[doc = " @brief Defines the string information struct.\n\n @since 14\n @version 1.0"]
305#[cfg(feature = "api-14")]
306#[repr(C)]
307#[derive(Debug, Copy, Clone)]
308pub struct OH_Drawing_String {
309    #[doc = " A pointer to a byte string containing UTF-16 encoded entities"]
310    pub strData: *mut u8,
311    #[doc = " The length of `strData` in bytes"]
312    pub strLen: u32,
313}
314#[doc = " uses bytes to represent UTF-8 or ASCII"]
315pub const OH_Drawing_TextEncoding_TEXT_ENCODING_UTF8: OH_Drawing_TextEncoding = 0;
316#[doc = " uses two byte words to represent most of Unicode"]
317pub const OH_Drawing_TextEncoding_TEXT_ENCODING_UTF16: OH_Drawing_TextEncoding = 1;
318#[doc = " uses four byte words to represent all of Unicode"]
319pub const OH_Drawing_TextEncoding_TEXT_ENCODING_UTF32: OH_Drawing_TextEncoding = 2;
320#[doc = " uses two byte words to represent glyph indices"]
321pub const OH_Drawing_TextEncoding_TEXT_ENCODING_GLYPH_ID: OH_Drawing_TextEncoding = 3;
322#[doc = " @brief Enumerates text encoding types.\n @since 12\n @version 1.0"]
323pub type OH_Drawing_TextEncoding = u32;
324#[repr(C)]
325#[derive(Debug, Copy, Clone)]
326pub struct OH_Drawing_FontMgr {
327    _unused: [u8; 0],
328}
329#[repr(C)]
330#[derive(Debug, Copy, Clone)]
331pub struct OH_Drawing_FontStyleSet {
332    _unused: [u8; 0],
333}
334#[repr(C)]
335#[derive(Debug, Copy, Clone)]
336pub struct OH_Drawing_RecordCmdUtils {
337    _unused: [u8; 0],
338}
339#[repr(C)]
340#[derive(Debug, Copy, Clone)]
341pub struct OH_Drawing_RecordCmd {
342    _unused: [u8; 0],
343}
344#[repr(C)]
345#[derive(Debug, Copy, Clone)]
346pub struct OH_Drawing_Array {
347    _unused: [u8; 0],
348}
349#[doc = " @brief Defines the pixel format of a bitmap, including the color type and alpha type.\n\n @since 8\n @version 1.0"]
350#[repr(C)]
351#[derive(Debug, Copy, Clone)]
352pub struct OH_Drawing_BitmapFormat {
353    #[doc = " Storage format of bitmap pixels"]
354    pub colorFormat: OH_Drawing_ColorFormat,
355    #[doc = " Alpha format of bitmap pixels"]
356    pub alphaFormat: OH_Drawing_AlphaFormat,
357}
358extern "C" {
359    #[doc = " @brief Creates an <b>OH_Drawing_Bitmap</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Bitmap</b> object created.\n @since 8\n @version 1.0"]
360    pub fn OH_Drawing_BitmapCreate() -> *mut OH_Drawing_Bitmap;
361}
362extern "C" {
363    #[doc = " @brief Destroys an <b>OH_Drawing_Bitmap</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @since 8\n @version 1.0"]
364    pub fn OH_Drawing_BitmapDestroy(bitmap: *mut OH_Drawing_Bitmap);
365}
366extern "C" {
367    #[doc = " @brief Creates an <b>OH_Drawing_Bitmap</b> object with <b>OH_Drawing_Image_Info</b> object\n and sets the mem address or pixel storage.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param imageInfo Indicates the pointer to an <b>OH_Drawing_Image_Info</b> object.\n @param pixels the pointer to memory address or pixel storage.\n @param rowBytes size of pixel row or larger.\n @return Returns the pointer to the <b>OH_Drawing_Bitmap</b> object created.\n @since 12\n @version 1.0"]
368    pub fn OH_Drawing_BitmapCreateFromPixels(
369        imageInfo: *mut OH_Drawing_Image_Info,
370        pixels: *mut ::std::os::raw::c_void,
371        rowBytes: u32,
372    ) -> *mut OH_Drawing_Bitmap;
373}
374extern "C" {
375    #[doc = " @brief Initializes the width and height of an <b>OH_Drawing_Bitmap</b> object\n and sets the pixel format for the bitmap.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @param width Indicates the width of the bitmap to be initialized.\n @param height Indicates the height of the bitmap to be initialized.\n @param bitmapFormat Indicates the pixel format of the bitmap to be initialized,\n                                including the pixel color type and alpha type.\n @since 8\n @version 1.0"]
376    pub fn OH_Drawing_BitmapBuild(
377        bitmap: *mut OH_Drawing_Bitmap,
378        width: u32,
379        height: u32,
380        bitmapFormat: *const OH_Drawing_BitmapFormat,
381    );
382}
383extern "C" {
384    #[doc = " @brief Obtains the width of a bitmap.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @return Returns the width.\n @since 8\n @version 1.0"]
385    pub fn OH_Drawing_BitmapGetWidth(bitmap: *mut OH_Drawing_Bitmap) -> u32;
386}
387extern "C" {
388    #[doc = " @brief Obtains the height of a bitmap.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @return Returns the height.\n @since 8\n @version 1.0"]
389    pub fn OH_Drawing_BitmapGetHeight(bitmap: *mut OH_Drawing_Bitmap) -> u32;
390}
391extern "C" {
392    #[doc = " @brief Obtains the color format of a bitmap.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @return Returns the bitmap color format.\n @since 12\n @version 1.0"]
393    pub fn OH_Drawing_BitmapGetColorFormat(
394        bitmap: *mut OH_Drawing_Bitmap,
395    ) -> OH_Drawing_ColorFormat;
396}
397extern "C" {
398    #[doc = " @brief Obtains the alpha format of a bitmap.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @return Returns the bitmap alpha format.\n @since 12\n @version 1.0"]
399    pub fn OH_Drawing_BitmapGetAlphaFormat(
400        bitmap: *mut OH_Drawing_Bitmap,
401    ) -> OH_Drawing_AlphaFormat;
402}
403extern "C" {
404    #[doc = " @brief Obtains the pixel address of a bitmap. You can use this address to obtain the pixel data of the bitmap.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @return Returns the pixel address.\n @since 8\n @version 1.0"]
405    pub fn OH_Drawing_BitmapGetPixels(
406        bitmap: *mut OH_Drawing_Bitmap,
407    ) -> *mut ::std::os::raw::c_void;
408}
409extern "C" {
410    #[doc = " @brief Gets the image info.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @param imageInfo Indicates the pointer to an <b>OH_Drawing_Image_Info</b> object.\n @since 12\n @version 1.0"]
411    pub fn OH_Drawing_BitmapGetImageInfo(
412        bitmap: *mut OH_Drawing_Bitmap,
413        imageInfo: *mut OH_Drawing_Image_Info,
414    );
415}
416extern "C" {
417    #[doc = " @brief Copies a rect of pixels from bitmap to dstPixels. Copy starts at (srcX, srcY),\n and does not exceed bitmap width and height.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @param dstInfo Indicates the pointer to an <b>OH_Drawing_Image_Info</b> object.\n @param dstPixels Destination pixel storage.\n @param dstRowBytes Destination row length.\n @param srcX Column index whose absolute value is less than width.\n @param srcY Row index whose absolute value is less than height.\n @return Returns true if pixels are copied to dstPixels.\n @since 12\n @version 1.0"]
418    pub fn OH_Drawing_BitmapReadPixels(
419        bitmap: *mut OH_Drawing_Bitmap,
420        dstInfo: *const OH_Drawing_Image_Info,
421        dstPixels: *mut ::std::os::raw::c_void,
422        dstRowBytes: usize,
423        srcX: i32,
424        srcY: i32,
425    ) -> bool;
426}
427#[doc = " @error Operation completed successfully."]
428pub const OH_Drawing_ErrorCode_OH_DRAWING_SUCCESS: OH_Drawing_ErrorCode = 0;
429#[doc = " @error Permission verification failed."]
430pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_NO_PERMISSION: OH_Drawing_ErrorCode = 201;
431#[doc = " @error Invalid input parameter. For example, the pointer in the parameter is a nullptr."]
432pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_INVALID_PARAMETER: OH_Drawing_ErrorCode = 401;
433#[doc = " @error The parameter is not in the valid range."]
434pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE: OH_Drawing_ErrorCode =
435    26200001;
436#[doc = " @error mem allocate failed.\n @since 13"]
437#[cfg(feature = "api-13")]
438pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_ALLOCATION_FAILED: OH_Drawing_ErrorCode = 26200002;
439#[doc = " @error The attribute id is not recognized or supported.\n @since 21"]
440#[cfg(feature = "api-21")]
441pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH: OH_Drawing_ErrorCode =
442    26200003;
443#[doc = " @error incorrect input parameter. The possible cause is that the provided pointer is null.\n @since 22"]
444#[cfg(feature = "api-22")]
445pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_INCORRECT_PARAMETER: OH_Drawing_ErrorCode =
446    26200004;
447#[doc = " @error File not found. The specified file does not exist or the path is incorrect..\n @since 23"]
448#[cfg(feature = "api-23")]
449pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_FILE_NOT_FOUND: OH_Drawing_ErrorCode = 26200005;
450#[doc = " @error Failed to open the file. The file cannot be opened due to permission or I/O issues.\n @since 23"]
451#[cfg(feature = "api-23")]
452pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_OPEN_FILE_FAILED: OH_Drawing_ErrorCode = 26200006;
453#[doc = " @error File seek failed. The system failed to reposition the file read pointer..\n @since 23"]
454#[cfg(feature = "api-23")]
455pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_FILE_SEEK_FAILED: OH_Drawing_ErrorCode = 26200007;
456#[doc = " @error Failed to get the file size. The system was unable to obtain the file size information.\n @since 23"]
457#[cfg(feature = "api-23")]
458pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_GET_FILE_SIZE_FAILED: OH_Drawing_ErrorCode =
459    26200008;
460#[doc = " @error Failed to read the file. The file could not be read completely or contains unreadable data.\n @since 23"]
461#[cfg(feature = "api-23")]
462pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_READ_FILE_FAILED: OH_Drawing_ErrorCode = 26200009;
463#[doc = " @error Empty file. The specified file is empty and contains no valid data.\n @since 23"]
464#[cfg(feature = "api-23")]
465pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_EMPTY_FILE: OH_Drawing_ErrorCode = 26200010;
466#[doc = " @error Corrupted file. The file content is invalid or damaged and cannot be parsed.\n @since 23"]
467#[cfg(feature = "api-23")]
468pub const OH_Drawing_ErrorCode_OH_DRAWING_ERROR_FILE_CORRUPTED: OH_Drawing_ErrorCode = 26200011;
469#[doc = " @brief Enumerates error codes of drawing.\n @since 12"]
470pub type OH_Drawing_ErrorCode = u32;
471extern "C" {
472    #[doc = " @brief Obtains the error code of the drawing module.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the error code.\n @since 12\n @version 1.0"]
473    pub fn OH_Drawing_ErrorCodeGet() -> OH_Drawing_ErrorCode;
474}
475extern "C" {
476    #[doc = " @brief Resets the error code of the drawing module to OH_DRAWING_SUCCESS.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @since 18\n @version 1.0"]
477    #[cfg(feature = "api-18")]
478    pub fn OH_Drawing_ErrorCodeReset();
479}
480extern "C" {
481    #[doc = " @brief Creates an <b>OH_Drawing_Brush</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Brush</b> object created.\n @since 8\n @version 1.0"]
482    pub fn OH_Drawing_BrushCreate() -> *mut OH_Drawing_Brush;
483}
484extern "C" {
485    #[doc = " @brief Creates an <b>OH_Drawing_Brush</b> copy object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Brush</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty or a nullptr is passed.\n @since 12\n @version 1.0"]
486    pub fn OH_Drawing_BrushCopy(brush: *mut OH_Drawing_Brush) -> *mut OH_Drawing_Brush;
487}
488extern "C" {
489    #[doc = " @brief Destroys an <b>OH_Drawing_Brush</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @since 8\n @version 1.0"]
490    pub fn OH_Drawing_BrushDestroy(brush: *mut OH_Drawing_Brush);
491}
492extern "C" {
493    #[doc = " @brief Checks whether anti-aliasing is enabled for a brush. If anti-aliasing is enabled,\n edges will be drawn with partial transparency.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @return Returns <b>true</b> if anti-aliasing is enabled; returns <b>false</b> otherwise.\n @since 8\n @version 1.0"]
494    pub fn OH_Drawing_BrushIsAntiAlias(brush: *const OH_Drawing_Brush) -> bool;
495}
496extern "C" {
497    #[doc = " @brief Enables or disables anti-aliasing for a brush. If anti-aliasing is enabled,\n edges will be drawn with partial transparency.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param antiAlias Specifies whether to enable anti-aliasing. The value <b>true</b> means\n             to enable anti-aliasing, and <b>false</b> means the opposite.\n @since 8\n @version 1.0"]
498    pub fn OH_Drawing_BrushSetAntiAlias(brush: *mut OH_Drawing_Brush, antiAlias: bool);
499}
500extern "C" {
501    #[doc = " @brief Obtains the color of a brush. The color is used by the brush to fill in a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @return Returns a 32-bit (ARGB) variable that describes the color.\n @since 8\n @version 1.0"]
502    pub fn OH_Drawing_BrushGetColor(brush: *const OH_Drawing_Brush) -> u32;
503}
504extern "C" {
505    #[doc = " @brief Sets the color for a brush. The color will be used by the brush to fill in a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param color Indicates the color to set, which is a 32-bit (ARGB) variable.\n @since 8\n @version 1.0"]
506    pub fn OH_Drawing_BrushSetColor(brush: *mut OH_Drawing_Brush, color: u32);
507}
508extern "C" {
509    #[doc = " @brief Obtains the alpha of a brush. The alpha is used by the brush to fill in a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @return Returns a 8-bit variable that describes the alpha.\n @since 11\n @version 1.0"]
510    pub fn OH_Drawing_BrushGetAlpha(brush: *const OH_Drawing_Brush) -> u8;
511}
512extern "C" {
513    #[doc = " @brief Sets the alpha for a brush. The alpha will be used by the brush to fill in a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param alpha Indicates the alpha to set, which is a 8-bit variable.\n @since 11\n @version 1.0"]
514    pub fn OH_Drawing_BrushSetAlpha(brush: *mut OH_Drawing_Brush, alpha: u8);
515}
516extern "C" {
517    #[doc = " @brief Sets the color for a brush. The color will be used by the brush to fill in a shape.\n The color is an ARGB structure described by floating point numbers and interpreted as being in the colorSpaceManager.\n If colorSpaceManager is nullptr, then color is assumed to be in the sRGB color space.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param a Indicates the alpha component of color, represented as a floating point number between 0 and 1.\n @param r Indicates the red component of color, represented as a floating point number between 0 and 1.\n @param g Indicates the green component of color, represented as a floating point number between 0 and 1.\n @param b Indicates the blue component of color, represented as a floating point number between 0 and 1.\n @param colorSpaceManager Indicates the pointer to an <b>OH_NativeColorSpaceManager</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush is nullptr.\n @since 20\n @version 1.0"]
518    #[cfg(feature = "api-20")]
519    pub fn OH_Drawing_BrushSetColor4f(
520        brush: *mut OH_Drawing_Brush,
521        a: f32,
522        r: f32,
523        g: f32,
524        b: f32,
525        colorSpaceManager: *mut OH_NativeColorSpaceManager,
526    ) -> OH_Drawing_ErrorCode;
527}
528extern "C" {
529    #[doc = " @brief Obtains the alpha component of a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param a Indicates the alpha component of color.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush or a is nullptr.\n @since 20\n @version 1.0"]
530    #[cfg(feature = "api-20")]
531    pub fn OH_Drawing_BrushGetAlphaFloat(
532        brush: *const OH_Drawing_Brush,
533        a: *mut f32,
534    ) -> OH_Drawing_ErrorCode;
535}
536extern "C" {
537    #[doc = " @brief Obtains the red component of a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param r Indicates the red component of color.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush or r is nullptr.\n @since 20\n @version 1.0"]
538    #[cfg(feature = "api-20")]
539    pub fn OH_Drawing_BrushGetRedFloat(
540        brush: *const OH_Drawing_Brush,
541        r: *mut f32,
542    ) -> OH_Drawing_ErrorCode;
543}
544extern "C" {
545    #[doc = " @brief Obtains the green component of a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param g Indicates the green component of color.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush or g is nullptr.\n @since 20\n @version 1.0"]
546    #[cfg(feature = "api-20")]
547    pub fn OH_Drawing_BrushGetGreenFloat(
548        brush: *const OH_Drawing_Brush,
549        g: *mut f32,
550    ) -> OH_Drawing_ErrorCode;
551}
552extern "C" {
553    #[doc = " @brief Obtains the blue component of a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param b Indicates the blue component of color.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if brush or b is nullptr.\n @since 20\n @version 1.0"]
554    #[cfg(feature = "api-20")]
555    pub fn OH_Drawing_BrushGetBlueFloat(
556        brush: *const OH_Drawing_Brush,
557        b: *mut f32,
558    ) -> OH_Drawing_ErrorCode;
559}
560extern "C" {
561    #[doc = " @brief Sets the shaderEffect for a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param shaderEffect Indicates the pointer to an <b>OH_Drawing_ShaderEffect</b> object.\n @since 11\n @version 1.0"]
562    pub fn OH_Drawing_BrushSetShaderEffect(
563        brush: *mut OH_Drawing_Brush,
564        shaderEffect: *mut OH_Drawing_ShaderEffect,
565    );
566}
567extern "C" {
568    #[doc = " @brief Sets the shadowLayer for a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param shadowLayer Indicates the pointer to an <b>OH_Drawing_ShadowLayer</b> object.\n @since 12\n @version 1.0"]
569    pub fn OH_Drawing_BrushSetShadowLayer(
570        brush: *mut OH_Drawing_Brush,
571        shadowLayer: *mut OH_Drawing_ShadowLayer,
572    );
573}
574extern "C" {
575    #[doc = " @brief Sets the filter for a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @since 11\n @version 1.0"]
576    pub fn OH_Drawing_BrushSetFilter(brush: *mut OH_Drawing_Brush, filter: *mut OH_Drawing_Filter);
577}
578extern "C" {
579    #[doc = " @brief Gets the filter from a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @since 12\n @version 1.0"]
580    pub fn OH_Drawing_BrushGetFilter(brush: *mut OH_Drawing_Brush, filter: *mut OH_Drawing_Filter);
581}
582extern "C" {
583    #[doc = " @brief Sets a blender that implements the specified blendmode enum for a brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param blendMode Indicates the blend mode.\n @since 12\n @version 1.0"]
584    pub fn OH_Drawing_BrushSetBlendMode(
585        brush: *mut OH_Drawing_Brush,
586        blendMode: OH_Drawing_BlendMode,
587    );
588}
589extern "C" {
590    #[doc = " @brief Resets all brush contents to their initial values.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @since 12\n @version 1.0"]
591    pub fn OH_Drawing_BrushReset(brush: *mut OH_Drawing_Brush);
592}
593#[doc = " single sample point (nearest neighbor)"]
594pub const OH_Drawing_FilterMode_FILTER_MODE_NEAREST: OH_Drawing_FilterMode = 0;
595#[doc = " interporate between 2x2 sample points (bilinear interpolation)"]
596pub const OH_Drawing_FilterMode_FILTER_MODE_LINEAR: OH_Drawing_FilterMode = 1;
597#[doc = " @brief Enumerates storage filter mode.\n\n @since 12\n @version 1.0"]
598pub type OH_Drawing_FilterMode = u32;
599#[doc = " ignore mipmap levels, sample from the \"base\""]
600pub const OH_Drawing_MipmapMode_MIPMAP_MODE_NONE: OH_Drawing_MipmapMode = 0;
601#[doc = " sample from the nearest level"]
602pub const OH_Drawing_MipmapMode_MIPMAP_MODE_NEAREST: OH_Drawing_MipmapMode = 1;
603#[doc = " interpolate between the two nearest levels"]
604pub const OH_Drawing_MipmapMode_MIPMAP_MODE_LINEAR: OH_Drawing_MipmapMode = 2;
605#[doc = " @brief Enumerates storage formats mipmap mode.\n\n @since 12\n @version 1.0"]
606pub type OH_Drawing_MipmapMode = u32;
607extern "C" {
608    #[doc = " @brief Creates an <b>OH_Drawing_SamplingOptions</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param filterMode sampling filter mode.\n @param mipmapMode sampling mipmap mode..\n @return Returns the pointer to the <b>OH_Drawing_SamplingOptions</b> object created.\n @since 12\n @version 1.0"]
609    pub fn OH_Drawing_SamplingOptionsCreate(
610        filterMode: OH_Drawing_FilterMode,
611        mipmapMode: OH_Drawing_MipmapMode,
612    ) -> *mut OH_Drawing_SamplingOptions;
613}
614extern "C" {
615    #[doc = " @brief Creates an <b>OH_Drawing_SamplingOptions</b> copy object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param samplingOptions Indicates the pointer to an <b>OH_Drawing_SamplingOptions</b> object.\n @return Returns the pointer to the <b>OH_Drawing_SamplingOptions</b> object created.\n @since 20\n @version 1.0"]
616    #[cfg(feature = "api-20")]
617    pub fn OH_Drawing_SamplingOptionsCopy(
618        samplingOptions: *mut OH_Drawing_SamplingOptions,
619    ) -> *mut OH_Drawing_SamplingOptions;
620}
621extern "C" {
622    #[doc = " @brief Destroys an <b>OH_Drawing_SamplingOptions</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param samplingOptions Indicates the pointer to an <b>OH_Drawing_SamplingOptions</b> object.\n @since 12\n @version 1.0"]
623    pub fn OH_Drawing_SamplingOptionsDestroy(samplingOptions: *mut OH_Drawing_SamplingOptions);
624}
625#[doc = " Using sampling only inside bounds in a slower manner."]
626pub const OH_Drawing_SrcRectConstraint_STRICT_SRC_RECT_CONSTRAINT: OH_Drawing_SrcRectConstraint = 0;
627#[doc = " Using sampling outside bounds in a faster manner."]
628pub const OH_Drawing_SrcRectConstraint_FAST_SRC_RECT_CONSTRAINT: OH_Drawing_SrcRectConstraint = 1;
629#[doc = " @brief Enumeration defines the constraint type.\n\n @since 12\n @version 1.0"]
630pub type OH_Drawing_SrcRectConstraint = u32;
631extern "C" {
632    #[doc = " @brief Creates an <b>OH_Drawing_Canvas</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Canvas</b> object created.\n @since 8\n @version 1.0"]
633    pub fn OH_Drawing_CanvasCreate() -> *mut OH_Drawing_Canvas;
634}
635extern "C" {
636    #[doc = " @brief Creates an <b>OH_Drawing_Canvas</b> object from <b>OH_Drawing_PixelMap</b>.\n The OH_Drawing_PixelMap should be dissolved by OH_Drawing_PixelMapDissolve after the OH_Drawing_Canvas is destroyed.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pixelMap Indicates the pointer to an <b>OH_Drawing_PixelMap</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Canvas</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty or pixelMap is nullptr.\n @since 20\n @version 1.0"]
637    #[cfg(feature = "api-20")]
638    pub fn OH_Drawing_CanvasCreateWithPixelMap(
639        pixelMap: *mut OH_Drawing_PixelMap,
640    ) -> *mut OH_Drawing_Canvas;
641}
642extern "C" {
643    #[doc = " @brief Destroys an <b>OH_Drawing_Canvas</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @since 8\n @version 1.0"]
644    pub fn OH_Drawing_CanvasDestroy(canvas: *mut OH_Drawing_Canvas);
645}
646extern "C" {
647    #[doc = " @brief Binds a bitmap to a canvas so that the content drawn on the canvas\n is output to the bitmap (this process is called CPU rendering).\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @since 8\n @version 1.0"]
648    pub fn OH_Drawing_CanvasBind(canvas: *mut OH_Drawing_Canvas, bitmap: *mut OH_Drawing_Bitmap);
649}
650extern "C" {
651    #[doc = " @brief Attaches a pen to a canvas so that the canvas will use the style and color of the pen to outline a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @since 8\n @version 1.0"]
652    pub fn OH_Drawing_CanvasAttachPen(canvas: *mut OH_Drawing_Canvas, pen: *const OH_Drawing_Pen);
653}
654extern "C" {
655    #[doc = " @brief Detaches the pen from a canvas so that the canvas will not use the style\n and color of the pen to outline a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @since 8\n @version 1.0"]
656    pub fn OH_Drawing_CanvasDetachPen(canvas: *mut OH_Drawing_Canvas);
657}
658extern "C" {
659    #[doc = " @brief Attaches a brush to a canvas so that the canvas will use the style and color of the brush to fill in a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @since 8\n @version 1.0"]
660    pub fn OH_Drawing_CanvasAttachBrush(
661        canvas: *mut OH_Drawing_Canvas,
662        brush: *const OH_Drawing_Brush,
663    );
664}
665extern "C" {
666    #[doc = " @brief Detaches the brush from a canvas so that the canvas will not use the style\n and color of the brush to fill in a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @since 8\n @version 1.0"]
667    pub fn OH_Drawing_CanvasDetachBrush(canvas: *mut OH_Drawing_Canvas);
668}
669extern "C" {
670    #[doc = " @brief Saves the current canvas status (canvas matrix) to the top of the stack.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @since 8\n @version 1.0"]
671    pub fn OH_Drawing_CanvasSave(canvas: *mut OH_Drawing_Canvas);
672}
673extern "C" {
674    #[doc = " @brief Saves matrix and clip, and allocates a bitmap for subsequent drawing.\n Calling restore discards changes to matrix and clip, and draws the bitmap.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @since 12\n @version 1.0"]
675    pub fn OH_Drawing_CanvasSaveLayer(
676        canvas: *mut OH_Drawing_Canvas,
677        rect: *const OH_Drawing_Rect,
678        brush: *const OH_Drawing_Brush,
679    );
680}
681extern "C" {
682    #[doc = " @brief Restores the canvas status (canvas matrix) saved on the top of the stack.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @since 8\n @version 1.0"]
683    pub fn OH_Drawing_CanvasRestore(canvas: *mut OH_Drawing_Canvas);
684}
685extern "C" {
686    #[doc = " @brief Gets the number of the canvas status (canvas matrix) saved in the stack.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @return Returns a 32-bit variable that describes the number of canvas status.\n @since 11\n @version 1.0"]
687    pub fn OH_Drawing_CanvasGetSaveCount(canvas: *mut OH_Drawing_Canvas) -> u32;
688}
689extern "C" {
690    #[doc = " @brief Restores the specific number of the canvas status (canvas matrix) saved in the stack.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param saveCount Indicates the specific number of canvas status.\n @since 11\n @version 1.0"]
691    pub fn OH_Drawing_CanvasRestoreToCount(canvas: *mut OH_Drawing_Canvas, saveCount: u32);
692}
693extern "C" {
694    #[doc = " @brief Draws a line segment.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param x1 Indicates the x coordinate of the start point of the line segment.\n @param y1 Indicates the y coordinate of the start point of the line segment.\n @param x2 Indicates the x coordinate of the end point of the line segment.\n @param y2 Indicates the y coordinate of the end point of the line segment.\n @since 8\n @version 1.0"]
695    pub fn OH_Drawing_CanvasDrawLine(
696        canvas: *mut OH_Drawing_Canvas,
697        x1: f32,
698        y1: f32,
699        x2: f32,
700        y2: f32,
701    );
702}
703extern "C" {
704    #[doc = " @brief Draws a path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @since 8\n @version 1.0"]
705    pub fn OH_Drawing_CanvasDrawPath(canvas: *mut OH_Drawing_Canvas, path: *const OH_Drawing_Path);
706}
707extern "C" {
708    #[doc = " @brief Draw a pixel map on the grid, with the grid evenly distributed over the pixel map.\n\n @param cCanvas Indicates the pointer to an OH_Drawing_Canvas object.\n @param pixelMap Indicates the pointer to an OH_Drawing_PixelMap.\n @param meshWidth The number of columns in the mesh.\n @param meshHeight The number of rows in the mesh.\n @param vertices Indicates the vertex array that specifies the drawing positions of the mesh.\n @param verticesSize The size of vertices.\n @param vertOffset The number of vert elements to skip before drawing.\n @param colors Indicates the color array that specifies a color at each vertex.\n @param colorsSize The size of colors.\n @param colorOffset The number of color elements to skip before drawing.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if any of canvas, pixelMap\n                 and dst is nullptr.\n @since 23\n @version 1.0"]
709    #[cfg(feature = "api-23")]
710    pub fn OH_Drawing_CanvasDrawPixelMapMesh(
711        cCanvas: *mut OH_Drawing_Canvas,
712        pixelMap: *mut OH_Drawing_PixelMap,
713        meshWidth: u32,
714        meshHeight: u32,
715        vertices: *const f32,
716        verticesSize: u32,
717        vertOffset: u32,
718        colors: *const u32,
719        colorsSize: u32,
720        colorOffset: u32,
721    ) -> OH_Drawing_ErrorCode;
722}
723extern "C" {
724    #[doc = " @brief Divides the pixelmap into a grid with nine sections: four sides, four corners, and the center.\n Draws the specified section of the pixelmap onto the canvas, corners are unmodified or scaled down if they exceed\n the destination rectangle, center and four sides are scaled to fit remaining space.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param pixelMap Indicates the pointer to an <b>OH_Drawing_PixelMap</b> object.\n @param center Divides the pixelmap into nine sections: four sides, four corners, and the center.\n @param dst The area of destination canvas.\n @param mode Filter mode.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of canvas, pixelMap\n                 and dst is nullptr.\n @since 18\n @version 1.0"]
725    #[cfg(feature = "api-18")]
726    pub fn OH_Drawing_CanvasDrawPixelMapNine(
727        canvas: *mut OH_Drawing_Canvas,
728        pixelMap: *mut OH_Drawing_PixelMap,
729        center: *const OH_Drawing_Rect,
730        dst: *const OH_Drawing_Rect,
731        mode: OH_Drawing_FilterMode,
732    ) -> OH_Drawing_ErrorCode;
733}
734extern "C" {
735    #[doc = " @brief Draw the specified area of the Media::PixelMap to the specified area of the canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param pixelMap Indicates the pointer to an <b>OH_Drawing_PixelMap</b> object.\n @param src the area of source pixelmap.\n @param dst the area of destination canvas.\n @param samplingOptions the sampling mode.\n @since 12\n @version 1.0"]
736    pub fn OH_Drawing_CanvasDrawPixelMapRect(
737        canvas: *mut OH_Drawing_Canvas,
738        pixelMap: *mut OH_Drawing_PixelMap,
739        src: *const OH_Drawing_Rect,
740        dst: *const OH_Drawing_Rect,
741        samplingOptions: *const OH_Drawing_SamplingOptions,
742    );
743}
744extern "C" {
745    #[doc = " @brief Draw the specified area of the Media::PixelMap to the specified area of the canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param pixelMap Indicates the pointer to an <b>OH_Drawing_PixelMap</b> object.\n @param src Indicates the area of source pixelmap.\n @param dst Indicates the area of destination canvas.\n @param samplingOptions Indicates the sampling mode.\n @param constraint Indicates constraint type.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of canvas, pixelMap\n                 and dst is nullptr.\n @since 20\n @version 1.0"]
746    #[cfg(feature = "api-20")]
747    pub fn OH_Drawing_CanvasDrawPixelMapRectConstraint(
748        canvas: *mut OH_Drawing_Canvas,
749        pixelMap: *mut OH_Drawing_PixelMap,
750        src: *const OH_Drawing_Rect,
751        dst: *const OH_Drawing_Rect,
752        samplingOptions: *const OH_Drawing_SamplingOptions,
753        constraint: OH_Drawing_SrcRectConstraint,
754    ) -> OH_Drawing_ErrorCode;
755}
756extern "C" {
757    #[doc = " @brief Fills clipped canvas area with brush.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @since 12\n @version 1.0"]
758    pub fn OH_Drawing_CanvasDrawBackground(
759        canvas: *mut OH_Drawing_Canvas,
760        brush: *const OH_Drawing_Brush,
761    );
762}
763extern "C" {
764    #[doc = " @brief Draws region using clip, matrix and paint.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @since 12\n @version 1.0"]
765    pub fn OH_Drawing_CanvasDrawRegion(
766        canvas: *mut OH_Drawing_Canvas,
767        region: *const OH_Drawing_Region,
768    );
769}
770#[doc = " Draw each point separately."]
771pub const OH_Drawing_PointMode_POINT_MODE_POINTS: OH_Drawing_PointMode = 0;
772#[doc = " Draw each pair of points as a line segment."]
773pub const OH_Drawing_PointMode_POINT_MODE_LINES: OH_Drawing_PointMode = 1;
774#[doc = " Draw the array of points as a open polygon."]
775pub const OH_Drawing_PointMode_POINT_MODE_POLYGON: OH_Drawing_PointMode = 2;
776#[doc = " @brief Enumerates of scale to fit flags, selects if an array of points are drawn as discrete points, as lines,\n or as an open polygon.\n\n @since 12\n @version 1.0"]
777pub type OH_Drawing_PointMode = u32;
778extern "C" {
779    #[doc = " @brief Draws a point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param point Indicates the pointer to an <b>OH_Drawing_Point</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or point is nullptr.\n @since 12\n @version 1.0"]
780    pub fn OH_Drawing_CanvasDrawPoint(
781        canvas: *mut OH_Drawing_Canvas,
782        point: *const OH_Drawing_Point2D,
783    ) -> OH_Drawing_ErrorCode;
784}
785extern "C" {
786    #[doc = " @brief Draws point array as separate point, line segment or open polygon according to given point mode.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param mode Draw points enum.\n @param count The point count.\n @param point2D Point struct array.\n @since 12\n @version 1.0"]
787    pub fn OH_Drawing_CanvasDrawPoints(
788        canvas: *mut OH_Drawing_Canvas,
789        mode: OH_Drawing_PointMode,
790        count: u32,
791        point2D: *const OH_Drawing_Point2D,
792    );
793}
794extern "C" {
795    #[doc = " @brief Draws a bitmap.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @param left Indicates the left position of the <b>OH_Drawing_Bitmap</b>.\n @param top Indicates the top position of the <b>OH_Drawing_Bitmap</b>.\n @since 11\n @version 1.0"]
796    pub fn OH_Drawing_CanvasDrawBitmap(
797        canvas: *mut OH_Drawing_Canvas,
798        bitmap: *const OH_Drawing_Bitmap,
799        left: f32,
800        top: f32,
801    );
802}
803extern "C" {
804    #[doc = " @brief Draw the specified area of the bitmap to the specified area of the canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @param src the area of source bitmap, can be nullptr.\n @param dst the area of destination canvas.\n @param samplingOptions the sampling mode.\n @since 12\n @version 1.0"]
805    pub fn OH_Drawing_CanvasDrawBitmapRect(
806        canvas: *mut OH_Drawing_Canvas,
807        bitmap: *const OH_Drawing_Bitmap,
808        src: *const OH_Drawing_Rect,
809        dst: *const OH_Drawing_Rect,
810        samplingOptions: *const OH_Drawing_SamplingOptions,
811    );
812}
813extern "C" {
814    #[doc = " @brief Draws a rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @since 11\n @version 1.0"]
815    pub fn OH_Drawing_CanvasDrawRect(canvas: *mut OH_Drawing_Canvas, rect: *const OH_Drawing_Rect);
816}
817extern "C" {
818    #[doc = " @brief Draws a circle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param point Indicates the pointer to an <b>OH_Drawing_Point</b> object.\n @param radius Indicates the radius of the circle.\n @since 11\n @version 1.0"]
819    pub fn OH_Drawing_CanvasDrawCircle(
820        canvas: *mut OH_Drawing_Canvas,
821        point: *const OH_Drawing_Point,
822        radius: f32,
823    );
824}
825extern "C" {
826    #[doc = " @brief Fills the entire canvas with the specified color and blend mode.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param color Indicates the color, which is a 32-bit variable.\n @param blendMode Indicates the blend mode.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas is nullptr.\n @since 12\n @version 1.0"]
827    pub fn OH_Drawing_CanvasDrawColor(
828        canvas: *mut OH_Drawing_Canvas,
829        color: u32,
830        blendMode: OH_Drawing_BlendMode,
831    ) -> OH_Drawing_ErrorCode;
832}
833extern "C" {
834    #[doc = " @brief Draws an oval.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @since 11\n @version 1.0"]
835    pub fn OH_Drawing_CanvasDrawOval(canvas: *mut OH_Drawing_Canvas, rect: *const OH_Drawing_Rect);
836}
837extern "C" {
838    #[doc = " @brief Draws an arc.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param startAngle Indicates the startAngle of the arc.\n @param sweepAngle Indicates the sweepAngle of the arc.\n @since 11\n @version 1.0"]
839    pub fn OH_Drawing_CanvasDrawArc(
840        canvas: *mut OH_Drawing_Canvas,
841        rect: *const OH_Drawing_Rect,
842        startAngle: f32,
843        sweepAngle: f32,
844    );
845}
846extern "C" {
847    #[doc = " @brief Draws an arc with use center.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param startAngle Indicates the startAngle of the arc.\n @param sweepAngle Indicates the sweepAngle of the arc.\n @param useCenter If true, include the center of the oval in the arc, and close it if it is being stroked.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or rect is nullptr.\n @since 18\n @version 1.0"]
848    #[cfg(feature = "api-18")]
849    pub fn OH_Drawing_CanvasDrawArcWithCenter(
850        canvas: *mut OH_Drawing_Canvas,
851        rect: *const OH_Drawing_Rect,
852        startAngle: f32,
853        sweepAngle: f32,
854        useCenter: bool,
855    ) -> OH_Drawing_ErrorCode;
856}
857extern "C" {
858    #[doc = " @brief Draws a roundrect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param roundRect Indicates the pointer to an <b>OH_Drawing_RoundRect</b> object.\n @since 11\n @version 1.0"]
859    pub fn OH_Drawing_CanvasDrawRoundRect(
860        canvas: *mut OH_Drawing_Canvas,
861        roundRect: *const OH_Drawing_RoundRect,
862    );
863}
864extern "C" {
865    #[doc = " @brief Draw two nested rounded rectangles.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param outer Rounded rectangle object, representing the outer rounded rectangle boundary.\n @param inner Rounded rectangle object, representing the internal rounded rectangle boundary.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of canvas, outer\n                 and inner is nullptr.\n @since 18\n @version 1.0"]
866    #[cfg(feature = "api-18")]
867    pub fn OH_Drawing_CanvasDrawNestedRoundRect(
868        canvas: *mut OH_Drawing_Canvas,
869        outer: *const OH_Drawing_RoundRect,
870        inner: *const OH_Drawing_RoundRect,
871    ) -> OH_Drawing_ErrorCode;
872}
873extern "C" {
874    #[doc = " @brief Draws a single character.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param str Indicates the single character encoded in UTF-8.\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param x Indicates the horizontal offset applied to the single character.\n @param y Indicates the vertical offset applied to the single character.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of canvas, str\n                 and font is nullptr or strlen(str) is 0.\n @since 12\n @version 1.0"]
875    pub fn OH_Drawing_CanvasDrawSingleCharacter(
876        canvas: *mut OH_Drawing_Canvas,
877        str_: *const ::std::os::raw::c_char,
878        font: *const OH_Drawing_Font,
879        x: f32,
880        y: f32,
881    ) -> OH_Drawing_ErrorCode;
882}
883extern "C" {
884    #[doc = " @brief Draws a single character with font features.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param str Indicates the single character encoded in UTF-8.\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param x Indicates the horizontal offset applied to the single character.\n @param y Indicates the vertical offset applied to the single character.\n @param fontFeatures Indicates the pointer to an <b>OH_Drawing_FontFeatures</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of canvas, str, font\n                 or fontFeatures is nullptr, or if strlen(str) is 0.\n @since 20\n @version 1.0"]
885    #[cfg(feature = "api-20")]
886    pub fn OH_Drawing_CanvasDrawSingleCharacterWithFeatures(
887        canvas: *mut OH_Drawing_Canvas,
888        str_: *const ::std::os::raw::c_char,
889        font: *const OH_Drawing_Font,
890        x: f32,
891        y: f32,
892        fontFeatures: *mut OH_Drawing_FontFeatures,
893    ) -> OH_Drawing_ErrorCode;
894}
895extern "C" {
896    #[doc = " @brief Draws a textblob.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param textBlob Indicates the pointer to an <b>OH_Drawing_TextBlob</b> object.\n @param x Indicates the horizontal offset applied to blob.\n @param y Indicates the vertical offset applied to blob.\n @since 11\n @version 1.0"]
897    pub fn OH_Drawing_CanvasDrawTextBlob(
898        canvas: *mut OH_Drawing_Canvas,
899        textBlob: *const OH_Drawing_TextBlob,
900        x: f32,
901        y: f32,
902    );
903}
904#[doc = " Clip with difference."]
905pub const OH_Drawing_CanvasClipOp_DIFFERENCE: OH_Drawing_CanvasClipOp = 0;
906#[doc = " Clip with intersection."]
907pub const OH_Drawing_CanvasClipOp_INTERSECT: OH_Drawing_CanvasClipOp = 1;
908#[doc = " @brief Enumerates clip op.\n\n @since 11\n @version 1.0"]
909pub type OH_Drawing_CanvasClipOp = u32;
910extern "C" {
911    #[doc = " @brief Clip a rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param clipOp Indicates the operation to apply to clip.\n @param doAntiAlias Indicates whether clip operation requires anti-aliased.\n @since 11\n @version 1.0"]
912    pub fn OH_Drawing_CanvasClipRect(
913        canvas: *mut OH_Drawing_Canvas,
914        rect: *const OH_Drawing_Rect,
915        clipOp: OH_Drawing_CanvasClipOp,
916        doAntiAlias: bool,
917    );
918}
919extern "C" {
920    #[doc = " @brief Clip a round rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param roundRect Indicates the pointer to an <b>OH_Drawing_RoundRect</b> object.\n @param clipOp Indicates the operation to apply to clip.\n @param doAntiAlias Indicates whether clip operation requires anti-aliased.\n @since 12\n @version 1.0"]
921    pub fn OH_Drawing_CanvasClipRoundRect(
922        canvas: *mut OH_Drawing_Canvas,
923        roundRect: *const OH_Drawing_RoundRect,
924        clipOp: OH_Drawing_CanvasClipOp,
925        doAntiAlias: bool,
926    );
927}
928extern "C" {
929    #[doc = " @brief Clip a path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param clipOp Indicates the operation to apply to clip.\n @param doAntiAlias Indicates whether clip operation requires anti-aliased.\n @since 11\n @version 1.0"]
930    pub fn OH_Drawing_CanvasClipPath(
931        canvas: *mut OH_Drawing_Canvas,
932        path: *const OH_Drawing_Path,
933        clipOp: OH_Drawing_CanvasClipOp,
934        doAntiAlias: bool,
935    );
936}
937extern "C" {
938    #[doc = " @brief Clips a region.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param clipOp To apply to clip.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or region is nullptr.\n @since 12\n @version 1.0"]
939    pub fn OH_Drawing_CanvasClipRegion(
940        canvas: *mut OH_Drawing_Canvas,
941        region: *const OH_Drawing_Region,
942        clipOp: OH_Drawing_CanvasClipOp,
943    ) -> OH_Drawing_ErrorCode;
944}
945extern "C" {
946    #[doc = " @brief Rotates by degrees. Positive degrees rotates clockwise.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param degrees Indicates the amount to rotate, in degrees.\n @param px Indicates the x-axis value of the point to rotate about.\n @param py Indicates the y-axis value of the point to rotate about.\n @since 11\n @version 1.0"]
947    pub fn OH_Drawing_CanvasRotate(canvas: *mut OH_Drawing_Canvas, degrees: f32, px: f32, py: f32);
948}
949extern "C" {
950    #[doc = " @brief Translates by dx along the x-axis and dy along the y-axis.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param dx Indicates the distance to translate on x-axis.\n @param dy Indicates the distance to translate on y-axis.\n @since 11\n @version 1.0"]
951    pub fn OH_Drawing_CanvasTranslate(canvas: *mut OH_Drawing_Canvas, dx: f32, dy: f32);
952}
953extern "C" {
954    #[doc = " @brief Scales by sx on the x-axis and sy on the y-axis.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param sx Indicates the amount to scale on x-axis.\n @param sy Indicates the amount to scale on y-axis.\n @since 11\n @version 1.0"]
955    pub fn OH_Drawing_CanvasScale(canvas: *mut OH_Drawing_Canvas, sx: f32, sy: f32);
956}
957extern "C" {
958    #[doc = " @brief Skew by sx on the x-axis and sy on the y-axis.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param sx Indicates the amount to skew on x-axis.\n @param sy Indicates the amount to skew on y-axis.\n @since 12\n @version 1.0"]
959    pub fn OH_Drawing_CanvasSkew(canvas: *mut OH_Drawing_Canvas, sx: f32, sy: f32);
960}
961extern "C" {
962    #[doc = " @brief Get the width of a canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @since 12\n @version 1.0"]
963    pub fn OH_Drawing_CanvasGetWidth(canvas: *mut OH_Drawing_Canvas) -> i32;
964}
965extern "C" {
966    #[doc = " @brief Get the height of a canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @since 12\n @version 1.0"]
967    pub fn OH_Drawing_CanvasGetHeight(canvas: *mut OH_Drawing_Canvas) -> i32;
968}
969extern "C" {
970    #[doc = " @brief Get the bounds of clip of a canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @since 12\n @version 1.0"]
971    pub fn OH_Drawing_CanvasGetLocalClipBounds(
972        canvas: *mut OH_Drawing_Canvas,
973        rect: *mut OH_Drawing_Rect,
974    );
975}
976extern "C" {
977    #[doc = " @brief Get a 3x3 matrix of the transform from local coordinates to 'device'.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @since 12\n @version 1.0"]
978    pub fn OH_Drawing_CanvasGetTotalMatrix(
979        canvas: *mut OH_Drawing_Canvas,
980        matrix: *mut OH_Drawing_Matrix,
981    );
982}
983extern "C" {
984    #[doc = " @brief Use the passed matrix to transforming the geometry, then use existing matrix.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object,\n represents the matrix which is passed.\n @since 12\n @version 1.0"]
985    pub fn OH_Drawing_CanvasConcatMatrix(
986        canvas: *mut OH_Drawing_Canvas,
987        matrix: *mut OH_Drawing_Matrix,
988    );
989}
990#[doc = " Use no shadow flags."]
991pub const OH_Drawing_CanvasShadowFlags_SHADOW_FLAGS_NONE: OH_Drawing_CanvasShadowFlags = 0;
992#[doc = " The occluding object is transparent."]
993pub const OH_Drawing_CanvasShadowFlags_SHADOW_FLAGS_TRANSPARENT_OCCLUDER:
994    OH_Drawing_CanvasShadowFlags = 1;
995#[doc = " No need to analyze shadows."]
996pub const OH_Drawing_CanvasShadowFlags_SHADOW_FLAGS_GEOMETRIC_ONLY: OH_Drawing_CanvasShadowFlags =
997    2;
998#[doc = " Use all shadow flags."]
999pub const OH_Drawing_CanvasShadowFlags_SHADOW_FLAGS_ALL: OH_Drawing_CanvasShadowFlags = 3;
1000#[doc = " @brief Enumerates of shadow flags.\n\n @since 12\n @version 1.0"]
1001pub type OH_Drawing_CanvasShadowFlags = u32;
1002extern "C" {
1003    #[doc = " @brief Use circular light to draw an offset spot shadow and outlining ambient shadow for the given path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object, use to generate shadows.\n @param planeParams Represents the value of the function which returns Z offset of the occluder from the\n canvas based on x and y.\n @param devLightPos Represents the position of the light relative to the canvas.\n @param lightRadius The radius of the circular light.\n @param ambientColor Ambient shadow's color.\n @param spotColor Spot shadow's color.\n @param flag Indicates the flag to control opaque occluder, shadow, and light position.\n @since 12\n @version 1.0"]
1004    pub fn OH_Drawing_CanvasDrawShadow(
1005        canvas: *mut OH_Drawing_Canvas,
1006        path: *mut OH_Drawing_Path,
1007        planeParams: OH_Drawing_Point3D,
1008        devLightPos: OH_Drawing_Point3D,
1009        lightRadius: f32,
1010        ambientColor: u32,
1011        spotColor: u32,
1012        flag: OH_Drawing_CanvasShadowFlags,
1013    );
1014}
1015extern "C" {
1016    #[doc = " @brief Clears a canvas by using a specified color.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param color Indicates the color, which is a 32-bit (ARGB) variable.\n @since 8\n @version 1.0"]
1017    pub fn OH_Drawing_CanvasClear(canvas: *mut OH_Drawing_Canvas, color: u32);
1018}
1019extern "C" {
1020    #[doc = " @brief Sets matrix of canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @since 12\n @version 1.0"]
1021    pub fn OH_Drawing_CanvasSetMatrix(
1022        canvas: *mut OH_Drawing_Canvas,
1023        matrix: *mut OH_Drawing_Matrix,
1024    );
1025}
1026extern "C" {
1027    #[doc = " @brief Reset matrix to the idenmtity matrix, any prior matrix state is overwritten.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @since 12\n @version 1.0"]
1028    pub fn OH_Drawing_CanvasResetMatrix(canvas: *mut OH_Drawing_Canvas);
1029}
1030extern "C" {
1031    #[doc = " @brief Draws the specified source rectangle of the image onto the canvas,\n scaled and translated to the destination rectangle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param image Indicates the pointer to an <b>OH_Drawing_Image</b> object.\n @param src The area of source image.\n @param dst The area of destination canvas.\n @param samplingOptions Indicates the pointer to an <b>OH_Drawing_SamplingOptions</b> object.\n @param srcRectConstraint Constraint type.\n @since 12\n @version 1.0"]
1032    pub fn OH_Drawing_CanvasDrawImageRectWithSrc(
1033        canvas: *mut OH_Drawing_Canvas,
1034        image: *const OH_Drawing_Image,
1035        src: *const OH_Drawing_Rect,
1036        dst: *const OH_Drawing_Rect,
1037        samplingOptions: *const OH_Drawing_SamplingOptions,
1038        srcRectConstraint: OH_Drawing_SrcRectConstraint,
1039    );
1040}
1041extern "C" {
1042    #[doc = " @brief Draws the specified source rectangle of the image onto the canvas,\n scaled and translated to the destination rectangle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param image Indicates the pointer to an <b>OH_Drawing_Image</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param samplingOptions Indicates the pointer to an <b>OH_Drawing_SamplingOptions</b> object.\n @since 12\n @version 1.0"]
1043    pub fn OH_Drawing_CanvasDrawImageRect(
1044        canvas: *mut OH_Drawing_Canvas,
1045        image: *mut OH_Drawing_Image,
1046        rect: *mut OH_Drawing_Rect,
1047        samplingOptions: *mut OH_Drawing_SamplingOptions,
1048    );
1049}
1050#[doc = " The vertices are a triangle list."]
1051pub const OH_Drawing_VertexMode_VERTEX_MODE_TRIANGLES: OH_Drawing_VertexMode = 0;
1052#[doc = " The vertices are a triangle strip."]
1053pub const OH_Drawing_VertexMode_VERTEX_MODE_TRIANGLES_STRIP: OH_Drawing_VertexMode = 1;
1054#[doc = " The vertices are a triangle fan."]
1055pub const OH_Drawing_VertexMode_VERTEX_MODE_TRIANGLE_FAN: OH_Drawing_VertexMode = 2;
1056#[doc = " @brief Enumerates of vertices flags.\n\n @since 12\n @version 1.0"]
1057pub type OH_Drawing_VertexMode = u32;
1058extern "C" {
1059    #[doc = " @brief Draw a triangular mesh with vertex descriptions.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param vertexMmode Draw a set of vertices.\n @param vertexCount Vertex count.\n @param positions Positions data pointer.\n @param texs Texture coordinate data pointer.\n @param colors Color data pointer.\n @param indexCount Index count.\n @param indices Index data pointer.\n @param mode Blend mode used for drawing.\n @since 12\n @version 1.0"]
1060    pub fn OH_Drawing_CanvasDrawVertices(
1061        canvas: *mut OH_Drawing_Canvas,
1062        vertexMmode: OH_Drawing_VertexMode,
1063        vertexCount: i32,
1064        positions: *const OH_Drawing_Point2D,
1065        texs: *const OH_Drawing_Point2D,
1066        colors: *const u32,
1067        indexCount: i32,
1068        indices: *const u16,
1069        mode: OH_Drawing_BlendMode,
1070    );
1071}
1072extern "C" {
1073    #[doc = " @brief Read pixels data from canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param imageInfo width, height, colorType, and alphaType of dstPixels.\n @param dstPixels destination pixel storage.\n @param dstRowBytes size of one row of pixels.\n @param srcX offset into canvas writable pixels on x-axis.\n @param srcY offset into canvas writable pixels on y-axis.\n @return true if pixels are copied to dstPixels.\n @since 12\n @version 1.0"]
1074    pub fn OH_Drawing_CanvasReadPixels(
1075        canvas: *mut OH_Drawing_Canvas,
1076        imageInfo: *mut OH_Drawing_Image_Info,
1077        dstPixels: *mut ::std::os::raw::c_void,
1078        dstRowBytes: u32,
1079        srcX: i32,
1080        srcY: i32,
1081    ) -> bool;
1082}
1083extern "C" {
1084    #[doc = " @brief Read pixels data to a bitmap from canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @param srcX offset into canvas writable pixels on x-axis.\n @param srcY offset into canvas writable pixels on y-axis.\n @return true if pixels are copied to dstBitmap.\n @since 12\n @version 1.0"]
1085    pub fn OH_Drawing_CanvasReadPixelsToBitmap(
1086        canvas: *mut OH_Drawing_Canvas,
1087        bitmap: *mut OH_Drawing_Bitmap,
1088        srcX: i32,
1089        srcY: i32,
1090    ) -> bool;
1091}
1092extern "C" {
1093    #[doc = " @brief Checks whether the drawable area is empty.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param isClipEmpty Indicates if drawable area is empty.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or isClipEmpty is nullptr.\n @since 12\n @version 1.0"]
1094    pub fn OH_Drawing_CanvasIsClipEmpty(
1095        canvas: *mut OH_Drawing_Canvas,
1096        isClipEmpty: *mut bool,
1097    ) -> OH_Drawing_ErrorCode;
1098}
1099extern "C" {
1100    #[doc = " @brief Gets image info of canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param imageInfo Indicates the pointer to an <b>OH_Drawing_Image_Info</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or imageInfo is nullptr.\n @since 12\n @version 1.0"]
1101    pub fn OH_Drawing_CanvasGetImageInfo(
1102        canvas: *mut OH_Drawing_Canvas,
1103        imageInfo: *mut OH_Drawing_Image_Info,
1104    ) -> OH_Drawing_ErrorCode;
1105}
1106extern "C" {
1107    #[doc = " @brief Replay drawing command.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param recordCmd Indicates the pointer to an <b>OH_Drawing_RecordCmd</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or recordCmd is nullptr.\n @since 13\n @version 1.0"]
1108    #[cfg(feature = "api-13")]
1109    pub fn OH_Drawing_CanvasDrawRecordCmd(
1110        canvas: *mut OH_Drawing_Canvas,
1111        recordCmd: *mut OH_Drawing_RecordCmd,
1112    ) -> OH_Drawing_ErrorCode;
1113}
1114extern "C" {
1115    #[doc = " @brief Replay drawing command.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param recordCmd Indicates the pointer to an <b>OH_Drawing_RecordCmd</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or recordCmd is nullptr.\n @since 19\n @version 1.0"]
1116    #[cfg(feature = "api-19")]
1117    pub fn OH_Drawing_CanvasDrawRecordCmdNesting(
1118        canvas: *mut OH_Drawing_Canvas,
1119        recordCmd: *mut OH_Drawing_RecordCmd,
1120    ) -> OH_Drawing_ErrorCode;
1121}
1122extern "C" {
1123    #[doc = " @brief Checks if the path has been cut off.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param path Indicates the pointer to an <b>OH_Drawing_Paht</b> object.\n @param quickReject Indicates if the path has been cut off.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or path is nullptr,\n                  or quickReject is nullptr.\n @since 18\n @version 1.0"]
1124    #[cfg(feature = "api-18")]
1125    pub fn OH_Drawing_CanvasQuickRejectPath(
1126        canvas: *mut OH_Drawing_Canvas,
1127        path: *const OH_Drawing_Path,
1128        quickReject: *mut bool,
1129    ) -> OH_Drawing_ErrorCode;
1130}
1131extern "C" {
1132    #[doc = " @brief Checks if the rect has been cut off.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param quickReject Indicates if the rect has been cut off.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if canvas or rect is nullptr,\n                  or quickReject is nullptr.\n @since 18\n @version 1.0"]
1133    #[cfg(feature = "api-18")]
1134    pub fn OH_Drawing_CanvasQuickRejectRect(
1135        canvas: *mut OH_Drawing_Canvas,
1136        rect: *const OH_Drawing_Rect,
1137        quickReject: *mut bool,
1138    ) -> OH_Drawing_ErrorCode;
1139}
1140extern "C" {
1141    #[doc = " @brief Converts four variables (alpha, red, green, and blue) into a 32-bit (ARGB) variable that describes a color.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param alpha Indicates a variable that describes alpha. The value ranges from 0x00 to 0xFF.\n @param red Indicates a variable that describes red. The value ranges from 0x00 to 0xFF.\n @param green Indicates a variable that describes green. The value ranges from 0x00 to 0xFF.\n @param blue Indicates a variable that describes blue. The value ranges from 0x00 to 0xFF.\n @return Returns a 32-bit (ARGB) variable that describes the color.\n @since 8\n @version 1.0"]
1142    pub fn OH_Drawing_ColorSetArgb(alpha: u32, red: u32, green: u32, blue: u32) -> u32;
1143}
1144extern "C" {
1145    #[doc = " @brief Creates an <b>OH_Drawing_ColorFilter</b> with a blend mode.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param color Indicates the color, which is a 32-bit (ARGB) variable.\n @param blendMode Indicates the blend mode.\n @return Returns the pointer to the <b>OH_Drawing_ColorFilter</b> object created.\n @since 11\n @version 1.0"]
1146    pub fn OH_Drawing_ColorFilterCreateBlendMode(
1147        color: u32,
1148        blendMode: OH_Drawing_BlendMode,
1149    ) -> *mut OH_Drawing_ColorFilter;
1150}
1151extern "C" {
1152    #[doc = " @brief Creates an <b>OH_Drawing_ColorFilter</b> applies the outerColorFilter and then applies innerColorFilter.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param outerColorFilter Indicates the pointer to an <b>OH_Drawing_ColorFilter</b> object.\n @param innerColorFilter Indicates the pointer to an <b>OH_Drawing_ColorFilter</b> object.\n @return Returns the pointer to the <b>OH_Drawing_ColorFilter</b> object created.\n @since 11\n @version 1.0"]
1153    pub fn OH_Drawing_ColorFilterCreateCompose(
1154        outerColorFilter: *mut OH_Drawing_ColorFilter,
1155        innerColorFilter: *mut OH_Drawing_ColorFilter,
1156    ) -> *mut OH_Drawing_ColorFilter;
1157}
1158extern "C" {
1159    #[doc = " @brief Creates an <b>OH_Drawing_ColorFilter</b> with a 5x4 color matrix.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the matrix, which is represented as a float array of length 20.\n @return Returns the pointer to the <b>OH_Drawing_ColorFilter</b> object created.\n @since 11\n @version 1.0"]
1160    pub fn OH_Drawing_ColorFilterCreateMatrix(matrix: *const f32) -> *mut OH_Drawing_ColorFilter;
1161}
1162extern "C" {
1163    #[doc = " @brief Creates an <b>OH_Drawing_ColorFilter</b> applies the gamma curve of SRGB to the RGB color channel.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_ColorFilter</b> object created.\n @since 11\n @version 1.0"]
1164    pub fn OH_Drawing_ColorFilterCreateLinearToSrgbGamma() -> *mut OH_Drawing_ColorFilter;
1165}
1166extern "C" {
1167    #[doc = " @brief Creates an <b>OH_Drawing_ColorFilter</b> applies the RGB color channel to the gamma curve of SRGB.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_ColorFilter</b> object created.\n @since 11\n @version 1.0"]
1168    pub fn OH_Drawing_ColorFilterCreateSrgbGammaToLinear() -> *mut OH_Drawing_ColorFilter;
1169}
1170extern "C" {
1171    #[doc = " @brief Creates an <b>OH_Drawing_ColorFilter</b> multiplies the luma of its input into the alpha channel,\n and sets the red, green, and blue channels to zero.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_ColorFilter</b> object created.\n @since 11\n @version 1.0"]
1172    pub fn OH_Drawing_ColorFilterCreateLuma() -> *mut OH_Drawing_ColorFilter;
1173}
1174extern "C" {
1175    #[doc = " @brief Creates an <b>OH_Drawing_ColorFilter</b> with the given mutColor used to multiply source color and addColor\n used to add to source color. The Alpha channel will not be affected.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param mulColor Indicates the color, which is a 32-bit (ARGB) variable.\n @param addColor Indicates the color, which is a 32-bit (ARGB) variable.\n @return Returns the pointer to the <b>OH_Drawing_ColorFilter</b> object created.\n @since 20\n @version 1.0"]
1176    #[cfg(feature = "api-20")]
1177    pub fn OH_Drawing_ColorFilterCreateLighting(
1178        mulColor: u32,
1179        addColor: u32,
1180    ) -> *mut OH_Drawing_ColorFilter;
1181}
1182extern "C" {
1183    #[doc = " @brief Destroys an <b>OH_Drawing_ColorFilter</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param colorFilter Indicates the pointer to an <b>OH_Drawing_ColorFilter</b> object.\n @since 11\n @version 1.0"]
1184    pub fn OH_Drawing_ColorFilterDestroy(colorFilter: *mut OH_Drawing_ColorFilter);
1185}
1186extern "C" {
1187    #[doc = " @brief Creates an <b>OH_Drawing_ColorSpace</b> object that represents the SRGB color space.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_ColorSpace</b> object created.\n @since 12\n @version 1.0"]
1188    pub fn OH_Drawing_ColorSpaceCreateSrgb() -> *mut OH_Drawing_ColorSpace;
1189}
1190extern "C" {
1191    #[doc = " @brief Creates an <b>OH_Drawing_ColorSpace</b> object with the SRGB primaries, but a linear (1.0) gamma.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_ColorSpace</b> object created.\n @since 12\n @version 1.0"]
1192    pub fn OH_Drawing_ColorSpaceCreateSrgbLinear() -> *mut OH_Drawing_ColorSpace;
1193}
1194extern "C" {
1195    #[doc = " @brief Destroy an <b>OH_Drawing_ColorSpace</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param colorSpace Indicates the pointer to an <b>OH_Drawing_ColorSpace</b> object.\n @since 12\n @version 1.0"]
1196    pub fn OH_Drawing_ColorSpaceDestroy(colorSpace: *mut OH_Drawing_ColorSpace);
1197}
1198extern "C" {
1199    #[doc = " @brief Creates an <b>OH_Drawing_Filter</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Filter</b> object created.\n @since 11\n @version 1.0"]
1200    pub fn OH_Drawing_FilterCreate() -> *mut OH_Drawing_Filter;
1201}
1202extern "C" {
1203    #[doc = " @brief Sets an <b>OH_Drawing_ImageFilter</b> object for an <b>OH_Drawing_Filter</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @param imageFilter Indicates the pointer to an <b>OH_Drawing_ImageFilter</b> object.\n @since 12\n @version 1.0"]
1204    pub fn OH_Drawing_FilterSetImageFilter(
1205        filter: *mut OH_Drawing_Filter,
1206        imageFilter: *mut OH_Drawing_ImageFilter,
1207    );
1208}
1209extern "C" {
1210    #[doc = " @brief Sets an <b>OH_Drawing_MaskFilter</b> object for an <b>OH_Drawing_Filter</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @param maskFilter Indicates the pointer to an <b>OH_Drawing_MaskFilter</b> object.\n @since 11\n @version 1.0"]
1211    pub fn OH_Drawing_FilterSetMaskFilter(
1212        filter: *mut OH_Drawing_Filter,
1213        maskFilter: *mut OH_Drawing_MaskFilter,
1214    );
1215}
1216extern "C" {
1217    #[doc = " @brief Sets an <b>OH_Drawing_ColorFilter</b> object for an <b>OH_Drawing_Filter</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @param colorFilter Indicates the pointer to an <b>OH_Drawing_ColorFilter</b> object.\n @since 11\n @version 1.0"]
1218    pub fn OH_Drawing_FilterSetColorFilter(
1219        filter: *mut OH_Drawing_Filter,
1220        colorFilter: *mut OH_Drawing_ColorFilter,
1221    );
1222}
1223extern "C" {
1224    #[doc = " @brief Gets an <b>OH_Drawing_ColorFilter</b> object from an <b>OH_Drawing_Filter</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @param colorFilter Indicates the pointer to an <b>OH_Drawing_ColorFilter</b> object.\n @since 12\n @version 1.0"]
1225    pub fn OH_Drawing_FilterGetColorFilter(
1226        filter: *mut OH_Drawing_Filter,
1227        colorFilter: *mut OH_Drawing_ColorFilter,
1228    );
1229}
1230extern "C" {
1231    #[doc = " @brief Destroys an <b>OH_Drawing_Filter</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @since 11\n @version 1.0"]
1232    pub fn OH_Drawing_FilterDestroy(filter: *mut OH_Drawing_Filter);
1233}
1234extern "C" {
1235    #[doc = " @brief Creates an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Font</b> object created.\n @since 11\n @version 1.0"]
1236    pub fn OH_Drawing_FontCreate() -> *mut OH_Drawing_Font;
1237}
1238#[doc = " glyph outlines unchanged"]
1239pub const OH_Drawing_FontHinting_FONT_HINTING_NONE: OH_Drawing_FontHinting = 0;
1240#[doc = " minimal modification to improve contrast"]
1241pub const OH_Drawing_FontHinting_FONT_HINTING_SLIGHT: OH_Drawing_FontHinting = 1;
1242#[doc = " glyph outlines modified to improve contrast"]
1243pub const OH_Drawing_FontHinting_FONT_HINTING_NORMAL: OH_Drawing_FontHinting = 2;
1244#[doc = " modifies glyph outlines for maximum contrast"]
1245pub const OH_Drawing_FontHinting_FONT_HINTING_FULL: OH_Drawing_FontHinting = 3;
1246#[doc = " @brief Enumerates font hinting pattern.\n\n @since 12\n @version 1.0"]
1247pub type OH_Drawing_FontHinting = u32;
1248#[doc = " no transparent pixels on glyph edges"]
1249pub const OH_Drawing_FontEdging_FONT_EDGING_ALIAS: OH_Drawing_FontEdging = 0;
1250#[doc = " may have transparent pixels on glyph edges"]
1251pub const OH_Drawing_FontEdging_FONT_EDGING_ANTI_ALIAS: OH_Drawing_FontEdging = 1;
1252#[doc = " glyph positioned in pixel using transparency"]
1253pub const OH_Drawing_FontEdging_FONT_EDGING_SUBPIXEL_ANTI_ALIAS: OH_Drawing_FontEdging = 2;
1254#[doc = " @brief Enumerates font edging effect.\n\n @since 12\n @version 1.0"]
1255pub type OH_Drawing_FontEdging = u32;
1256extern "C" {
1257    #[doc = " @brief Sets whether the font baselines and pixels alignment when the transformation matrix is \u{200b}\u{200b}axis aligned.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param baselineSnap Indicates whether the font baselines and pixels alignment.\n @since 12\n @version 1.0"]
1258    pub fn OH_Drawing_FontSetBaselineSnap(font: *mut OH_Drawing_Font, baselineSnap: bool);
1259}
1260extern "C" {
1261    #[doc = " @brief Gets whether the font baselines and pixels alignment when the transformation matrix is \u{200b}\u{200b}axis aligned.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns <b>true</b> if the font baselines and pixels alignment; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
1262    pub fn OH_Drawing_FontIsBaselineSnap(font: *const OH_Drawing_Font) -> bool;
1263}
1264extern "C" {
1265    #[doc = " @brief Sets whether the font uses sub-pixel rendering.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param isSubpixel Indicates whether the font uses sub-pixel rendering.\n @since 12\n @version 1.0"]
1266    pub fn OH_Drawing_FontSetSubpixel(font: *mut OH_Drawing_Font, isSubpixel: bool);
1267}
1268extern "C" {
1269    #[doc = " @brief Gets whether the font uses sub-pixel rendering.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns <b>true</b> if the font uses sub-pixel rendering; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
1270    pub fn OH_Drawing_FontIsSubpixel(font: *const OH_Drawing_Font) -> bool;
1271}
1272extern "C" {
1273    #[doc = " @brief Sets whether the font outline is automatically adjusted.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param isForceAutoHinting Indicates whether the font outline is automatically adjusted.\n @since 12\n @version 1.0"]
1274    pub fn OH_Drawing_FontSetForceAutoHinting(font: *mut OH_Drawing_Font, isForceAutoHinting: bool);
1275}
1276extern "C" {
1277    #[doc = " @brief Gets whether the font outline is automatically adjusted.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns <b>true</b> if the font outline is automatically adjusted; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
1278    pub fn OH_Drawing_FontIsForceAutoHinting(font: *const OH_Drawing_Font) -> bool;
1279}
1280extern "C" {
1281    #[doc = " @brief Sets an <b>OH_Drawing_Typeface</b> object for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param typeface Indicates the pointer to an <b>OH_Drawing_Typeface</b> object.\n @since 11\n @version 1.0"]
1282    pub fn OH_Drawing_FontSetTypeface(
1283        font: *mut OH_Drawing_Font,
1284        typeface: *mut OH_Drawing_Typeface,
1285    );
1286}
1287extern "C" {
1288    #[doc = " @brief Gets an <b>OH_Drawing_Typeface</b> object from the <b>OH_Drawing_Typeface</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return OH_Drawing_Typeface Indicates the pointer to an <b>OH_Drawing_Typeface</b> object.\n @since 12\n @version 1.0"]
1289    pub fn OH_Drawing_FontGetTypeface(font: *mut OH_Drawing_Font) -> *mut OH_Drawing_Typeface;
1290}
1291extern "C" {
1292    #[doc = " @brief Sets text size for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param textSize Indicates the text size.\n @since 11\n @version 1.0"]
1293    pub fn OH_Drawing_FontSetTextSize(font: *mut OH_Drawing_Font, textSize: f32);
1294}
1295extern "C" {
1296    #[doc = " @brief Gets text size for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns the size of text.\n @since 12\n @version 1.0"]
1297    pub fn OH_Drawing_FontGetTextSize(font: *const OH_Drawing_Font) -> f32;
1298}
1299extern "C" {
1300    #[doc = " @brief Calculate number of glyphs represented by text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param text Indicates the character storage encoded with text encoding.\n @param byteLength Indicates the text length in bytes.\n @param encoding Indicates the text encoding.\n @since 12\n @version 1.0"]
1301    pub fn OH_Drawing_FontCountText(
1302        font: *mut OH_Drawing_Font,
1303        text: *const ::std::os::raw::c_void,
1304        byteLength: usize,
1305        encoding: OH_Drawing_TextEncoding,
1306    ) -> ::std::os::raw::c_int;
1307}
1308extern "C" {
1309    #[doc = " @brief Converts text into glyph indices.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param text Indicates the character storage encoded with text encoding.\n @param byteLength Indicates the text length in bytes.\n @param encoding Indicates the text encoding.\n @param glyphs Indicates the storage for glyph indices.\n @param maxGlyphCount Indicates the storage capacity.\n @return Returns the number of glyph indices represented by text.\n @since 12\n @version 1.0"]
1310    pub fn OH_Drawing_FontTextToGlyphs(
1311        font: *const OH_Drawing_Font,
1312        text: *const ::std::os::raw::c_void,
1313        byteLength: u32,
1314        encoding: OH_Drawing_TextEncoding,
1315        glyphs: *mut u16,
1316        maxGlyphCount: ::std::os::raw::c_int,
1317    ) -> u32;
1318}
1319extern "C" {
1320    #[doc = " @brief Retrieves the advance for each glyph in glyphs.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param glyphs Indicates the array of glyph indices to be measured.\n @param count Indicates the number of glyphs.\n @param widths Indicates the text advances for each glyph returned to the caller.\n @since 12\n @version 1.0"]
1321    pub fn OH_Drawing_FontGetWidths(
1322        font: *const OH_Drawing_Font,
1323        glyphs: *const u16,
1324        count: ::std::os::raw::c_int,
1325        widths: *mut f32,
1326    );
1327}
1328extern "C" {
1329    #[doc = " @brief Measures the width of a single character.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param str Indicates the single character encoded in UTF-8.\n @param textWidth Indicates the width of the single character.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, str\n                 and textWidth is nullptr or strlen(str) is 0.\n @since 12\n @version 1.0"]
1330    pub fn OH_Drawing_FontMeasureSingleCharacter(
1331        font: *const OH_Drawing_Font,
1332        str_: *const ::std::os::raw::c_char,
1333        textWidth: *mut f32,
1334    ) -> OH_Drawing_ErrorCode;
1335}
1336extern "C" {
1337    #[doc = " @brief Measures the width of a single character with font features.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param str Indicates the single character encoded in UTF-8.\n @param fontFeatures Indicates the pointer to an <b>OH_Drawing_FontFeatures</b> object.\n @param textWidth Indicates the width of the single character.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, str\n                 fontFeatures or textWidth is nullptr, or if strlen(str) is 0.\n @since 20\n @version 1.0"]
1338    #[cfg(feature = "api-20")]
1339    pub fn OH_Drawing_FontMeasureSingleCharacterWithFeatures(
1340        font: *const OH_Drawing_Font,
1341        str_: *const ::std::os::raw::c_char,
1342        fontFeatures: *const OH_Drawing_FontFeatures,
1343        textWidth: *mut f32,
1344    ) -> OH_Drawing_ErrorCode;
1345}
1346extern "C" {
1347    #[doc = " @brief Measures the width of text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param text Indicates the character storage encoded with text encoding.\n @param byteLength Indicates the text length in bytes.\n @param encoding Indicates the text encoding.\n @param bounds Gets the bounding box relative to (0, 0) if not nullptr.\n @param textWidth Indicates the width of text.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, text\n                 and textWidth is nullptr or byteLength is 0.\n @since 12\n @version 1.0"]
1348    pub fn OH_Drawing_FontMeasureText(
1349        font: *const OH_Drawing_Font,
1350        text: *const ::std::os::raw::c_void,
1351        byteLength: usize,
1352        encoding: OH_Drawing_TextEncoding,
1353        bounds: *mut OH_Drawing_Rect,
1354        textWidth: *mut f32,
1355    ) -> OH_Drawing_ErrorCode;
1356}
1357extern "C" {
1358    #[doc = " @brief Measures the width of text with brush or pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param text Indicates the character storage encoded with text encoding.\n @param byteLength Indicates the text length in bytes.\n @param encoding Indicates the text encoding.\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param bounds Gets the bounding box relative to (0, 0) if not nullptr.\n @param textWidth Indicates the width of text.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, text\n                 and textWidth is nullptr or byteLength is 0 or brush and pen are both not empty.\n @since 19\n @version 1.0"]
1359    #[cfg(feature = "api-19")]
1360    pub fn OH_Drawing_FontMeasureTextWithBrushOrPen(
1361        font: *const OH_Drawing_Font,
1362        text: *const ::std::os::raw::c_void,
1363        byteLength: usize,
1364        encoding: OH_Drawing_TextEncoding,
1365        brush: *const OH_Drawing_Brush,
1366        pen: *const OH_Drawing_Pen,
1367        bounds: *mut OH_Drawing_Rect,
1368        textWidth: *mut f32,
1369    ) -> OH_Drawing_ErrorCode;
1370}
1371extern "C" {
1372    #[doc = " @brief Retrieves the advance and bounding box for each glyph in glyphs.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param glyphs Indicates the array of glyph indices to be measured.\n @param count Indicates the number of glyphs.\n @param brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param widths Indicates the text advances for each glyph returned to the caller.\n @param bounds Indicates the text bounding box for each glyph returned to the caller.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font and glyphs is nullptr\n                 or count is no larger than 0 or brush and pen are both not empty.\n @since 19\n @version 1.0"]
1373    #[cfg(feature = "api-19")]
1374    pub fn OH_Drawing_FontGetWidthsBounds(
1375        font: *const OH_Drawing_Font,
1376        glyphs: *const u16,
1377        count: ::std::os::raw::c_int,
1378        brush: *const OH_Drawing_Brush,
1379        pen: *const OH_Drawing_Pen,
1380        widths: *mut f32,
1381        bounds: *mut OH_Drawing_Array,
1382    ) -> OH_Drawing_ErrorCode;
1383}
1384extern "C" {
1385    #[doc = " @brief Retrieves the positions for each glyph, beginning at the specified origin.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param glyphs Indicates the array of glyph indices to be measured.\n @param count Indicates the number of glyphs.\n @param origin Indicates the location of the first glyph.\n @param points Indicates the relative position for each glyph returned to the caller.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, glyphs and points is nullptr or\n                 count is no larger than 0.\n @since 19\n @version 1.0"]
1386    #[cfg(feature = "api-19")]
1387    pub fn OH_Drawing_FontGetPos(
1388        font: *const OH_Drawing_Font,
1389        glyphs: *const u16,
1390        count: ::std::os::raw::c_int,
1391        origin: *const OH_Drawing_Point,
1392        points: *mut OH_Drawing_Point2D,
1393    ) -> OH_Drawing_ErrorCode;
1394}
1395extern "C" {
1396    #[doc = " @brief Returns the recommended spacing between lines.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param spacing Indicates the recommended spacing between lines.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font and spacing is nullptr.\n @since 19\n @version 1.0"]
1397    #[cfg(feature = "api-19")]
1398    pub fn OH_Drawing_FontGetSpacing(
1399        font: *const OH_Drawing_Font,
1400        spacing: *mut f32,
1401    ) -> OH_Drawing_ErrorCode;
1402}
1403extern "C" {
1404    #[doc = " @brief Enables or disables linearly scalable font for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param isLinearText Indicates whether to enable linearly scalable font.\n @since 11\n @version 1.0"]
1405    pub fn OH_Drawing_FontSetLinearText(font: *mut OH_Drawing_Font, isLinearText: bool);
1406}
1407extern "C" {
1408    #[doc = " @brief Gets whether the font is linearly scalable.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns <b>true</b> if the font is linearly scalable; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
1409    pub fn OH_Drawing_FontIsLinearText(font: *const OH_Drawing_Font) -> bool;
1410}
1411extern "C" {
1412    #[doc = " @brief Sets text skew on x-axis for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param skewX Indicates the additional shear on x-axis relative to y-axis.\n @since 11\n @version 1.0"]
1413    pub fn OH_Drawing_FontSetTextSkewX(font: *mut OH_Drawing_Font, skewX: f32);
1414}
1415extern "C" {
1416    #[doc = " @brief Gets text skew on x-axis for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns additional skew on x-axis relative to y-axis.\n @since 12\n @version 1.0"]
1417    pub fn OH_Drawing_FontGetTextSkewX(font: *const OH_Drawing_Font) -> f32;
1418}
1419extern "C" {
1420    #[doc = " @brief Enables or disables to increase stroke width to approximate bold fonts for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param isFakeBoldText Indicates whether to enable to increase stroke width.\n @since 11\n @version 1.0"]
1421    pub fn OH_Drawing_FontSetFakeBoldText(font: *mut OH_Drawing_Font, isFakeBoldText: bool);
1422}
1423extern "C" {
1424    #[doc = " @brief Gets whether to increase the stroke width to approximate bold fonts.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns <b>true</b> to increase the stroke width to approximate bold fonts; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
1425    pub fn OH_Drawing_FontIsFakeBoldText(font: *const OH_Drawing_Font) -> bool;
1426}
1427extern "C" {
1428    #[doc = " @brief Sets text scale on x-axis for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param scaleX Indicates the text horizontal scale.\n @since 12\n @version 1.0"]
1429    pub fn OH_Drawing_FontSetScaleX(font: *mut OH_Drawing_Font, scaleX: f32);
1430}
1431extern "C" {
1432    #[doc = " @brief Gets text scale on x-axis from an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns text horizontal scale on x-axis.\n @since 12\n @version 1.0"]
1433    pub fn OH_Drawing_FontGetScaleX(font: *const OH_Drawing_Font) -> f32;
1434}
1435extern "C" {
1436    #[doc = " @brief Sets hinting pattern for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param fontHinting Indicates the font hinting pattern.\n @since 12\n @version 1.0"]
1437    pub fn OH_Drawing_FontSetHinting(
1438        font: *mut OH_Drawing_Font,
1439        fontHinting: OH_Drawing_FontHinting,
1440    );
1441}
1442extern "C" {
1443    #[doc = " @brief Gets hinting pattern from an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns the font hinting pattern.\n @since 12\n @version 1.0"]
1444    pub fn OH_Drawing_FontGetHinting(font: *const OH_Drawing_Font) -> OH_Drawing_FontHinting;
1445}
1446extern "C" {
1447    #[doc = " @brief Sets whether to use bitmaps instead of outlines in the <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param isEmbeddedBitmaps Indicates whether to use bitmaps instead of outlines.\n @since 12\n @version 1.0"]
1448    pub fn OH_Drawing_FontSetEmbeddedBitmaps(font: *mut OH_Drawing_Font, isEmbeddedBitmaps: bool);
1449}
1450extern "C" {
1451    #[doc = " @brief Gets whether to use bitmaps instead of outlines in the <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns <b>true</b> if using bitmaps instead of outlines; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
1452    pub fn OH_Drawing_FontIsEmbeddedBitmaps(font: *const OH_Drawing_Font) -> bool;
1453}
1454extern "C" {
1455    #[doc = " @brief Sets the font edging effect for an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param fontEdging Indicates the font edging effect.\n @since 12\n @version 1.0"]
1456    pub fn OH_Drawing_FontSetEdging(font: *mut OH_Drawing_Font, fontEdging: OH_Drawing_FontEdging);
1457}
1458extern "C" {
1459    #[doc = " @brief Gets the font edging effect from an <b>OH_Drawing_Font</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @return Returns the font edging effect.\n @since 12\n @version 1.0"]
1460    pub fn OH_Drawing_FontGetEdging(font: *const OH_Drawing_Font) -> OH_Drawing_FontEdging;
1461}
1462extern "C" {
1463    #[doc = " @brief Destroys an <b>OH_Drawing_Font</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @since 11\n @version 1.0"]
1464    pub fn OH_Drawing_FontDestroy(font: *mut OH_Drawing_Font);
1465}
1466#[doc = " @brief Defines a run, supplies storage for the metrics of an <b>OH_Drawing_Font</b>.\n\n @since 12\n @version 1.0"]
1467#[repr(C)]
1468#[derive(Debug, Copy, Clone)]
1469pub struct OH_Drawing_Font_Metrics {
1470    #[doc = " Indicating which metrics are valid"]
1471    pub flags: u32,
1472    #[doc = " storage for top in font metrics"]
1473    pub top: f32,
1474    #[doc = " storage for ascent in font metrics"]
1475    pub ascent: f32,
1476    #[doc = " storage for descent in font metrics"]
1477    pub descent: f32,
1478    #[doc = " storage for bottom in font metrics"]
1479    pub bottom: f32,
1480    #[doc = " storage for leading in font metrics"]
1481    pub leading: f32,
1482    #[doc = "  Average character width, zero if unknown"]
1483    pub avgCharWidth: f32,
1484    #[doc = " Maximum character width, zero if unknown"]
1485    pub maxCharWidth: f32,
1486    #[doc = " Greatest extent to left of origin of any glyph bounding box, typically negative; deprecated with variable fonts"]
1487    pub xMin: f32,
1488    #[doc = " Greatest extent to right of origin of any glyph bounding box, typically positive; deprecated with variable fonts"]
1489    pub xMax: f32,
1490    #[doc = " Height of lower-case letter, zero if unknown, typically negative"]
1491    pub xHeight: f32,
1492    #[doc = " Height of an upper-case letter, zero if unknown, typically negative"]
1493    pub capHeight: f32,
1494    #[doc = " @brief Underline thickness"]
1495    pub underlineThickness: f32,
1496    #[doc = " Distance from baseline to top of stroke, typically positive"]
1497    pub underlinePosition: f32,
1498    #[doc = " Strikeout thickness"]
1499    pub strikeoutThickness: f32,
1500    #[doc = " Distance from baseline to bottom of stroke, typically negative"]
1501    pub strikeoutPosition: f32,
1502}
1503extern "C" {
1504    #[doc = " @brief Obtains the metrics of a font.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param fontMetrics Indicates the pointer to an <b>OH_Drawing_Font_Metrics</b> object.\n @return Returns a float variable that recommended spacing between lines.\n @since 12\n @version 1.0"]
1505    pub fn OH_Drawing_FontGetMetrics(
1506        font: *mut OH_Drawing_Font,
1507        fontMetrics: *mut OH_Drawing_Font_Metrics,
1508    ) -> f32;
1509}
1510extern "C" {
1511    #[doc = " @brief Retrieves the bound rect for each glyph in glyph array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param glyphs Indicates the array of glyph indices to be measured.\n @param count Indicates the number of glyphs.\n @param bounds The bound rect array for each glyph, returned to the caller.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, glyphs\n                 and bounds is nullptr or count is 0.\n @since 18\n @version 1.0"]
1512    #[cfg(feature = "api-18")]
1513    pub fn OH_Drawing_FontGetBounds(
1514        font: *const OH_Drawing_Font,
1515        glyphs: *const u16,
1516        count: u32,
1517        bounds: *mut OH_Drawing_Array,
1518    ) -> OH_Drawing_ErrorCode;
1519}
1520extern "C" {
1521    #[doc = " @brief Retrieves the path for specified Glyph.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param glyph glyph index to be obtained.\n @param path The path object, returned to the caller.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, path\n                 is nullptr or glyph not exist.\n @since 18\n @version 1.0"]
1522    #[cfg(feature = "api-18")]
1523    pub fn OH_Drawing_FontGetPathForGlyph(
1524        font: *const OH_Drawing_Font,
1525        glyph: u16,
1526        path: *mut OH_Drawing_Path,
1527    ) -> OH_Drawing_ErrorCode;
1528}
1529extern "C" {
1530    #[doc = " @brief Get the text outline path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param text Indicates the character storage encoded with text encoding.\n @param byteLength Indicates to get the byte length of the corresponding text path. If this byte length is greater\n than the byte length of the text string, undefined behavior will occur.\n @param encoding <b>OH_Drawing_TextEncoding</b> Indicates the text encoding.\n @param x Indicates x coordinates of the text.\n @param y Indicates y coordinates of the text.\n @param path <b>OH_Drawing_Path</b> The path object, returned to the caller.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of font, text or path is nullptr.\n @since 18"]
1531    #[cfg(feature = "api-18")]
1532    pub fn OH_Drawing_FontGetTextPath(
1533        font: *const OH_Drawing_Font,
1534        text: *const ::std::os::raw::c_void,
1535        byteLength: usize,
1536        encoding: OH_Drawing_TextEncoding,
1537        x: f32,
1538        y: f32,
1539        path: *mut OH_Drawing_Path,
1540    ) -> OH_Drawing_ErrorCode;
1541}
1542extern "C" {
1543    #[doc = " @brief Creates an <b>OH_Drawing_FontFeatures</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_FontFeatures</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty.\n @since 20\n @version 1.0"]
1544    #[cfg(feature = "api-20")]
1545    pub fn OH_Drawing_FontFeaturesCreate() -> *mut OH_Drawing_FontFeatures;
1546}
1547extern "C" {
1548    #[doc = " @brief Adds a font feature for an <b>OH_Drawing_FontFeatures</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontFeatures Indicates the pointer to an <b>OH_Drawing_FontFeatures</b> object.\n @param name Indicates the feature name.\n @param value Indicates the value of the feature.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either fontFeatures or name is nullptr.\n @since 20\n @version 1.0"]
1549    #[cfg(feature = "api-20")]
1550    pub fn OH_Drawing_FontFeaturesAddFeature(
1551        fontFeatures: *mut OH_Drawing_FontFeatures,
1552        name: *const ::std::os::raw::c_char,
1553        value: f32,
1554    ) -> OH_Drawing_ErrorCode;
1555}
1556extern "C" {
1557    #[doc = " @brief Destroys an <b>OH_Drawing_FontFeatures</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontFeatures Indicates the pointer to an <b>OH_Drawing_FontFeatures</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if fontFeatures is nullptr.\n @since 20\n @version 1.0"]
1558    #[cfg(feature = "api-20")]
1559    pub fn OH_Drawing_FontFeaturesDestroy(
1560        fontFeatures: *mut OH_Drawing_FontFeatures,
1561    ) -> OH_Drawing_ErrorCode;
1562}
1563extern "C" {
1564    #[doc = " @brief Sets whether to follow the theme font. If the value is true, the theme font is used when typeface is not set.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param followed Indicates whether to follow the theme font.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if font is nullptr.\n @since 15"]
1565    #[cfg(feature = "api-15")]
1566    pub fn OH_Drawing_FontSetThemeFontFollowed(
1567        font: *mut OH_Drawing_Font,
1568        followed: bool,
1569    ) -> OH_Drawing_ErrorCode;
1570}
1571extern "C" {
1572    #[doc = " @brief Gets whether to follow the theme font.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param followed Indicates whether to follow the theme font.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if font or followed is nullptr.\n @since 15"]
1573    #[cfg(feature = "api-15")]
1574    pub fn OH_Drawing_FontIsThemeFontFollowed(
1575        font: *const OH_Drawing_Font,
1576        followed: *mut bool,
1577    ) -> OH_Drawing_ErrorCode;
1578}
1579#[repr(C)]
1580#[derive(Debug, Copy, Clone)]
1581pub struct OH_Drawing_FontCollection {
1582    _unused: [u8; 0],
1583}
1584#[repr(C)]
1585#[derive(Debug, Copy, Clone)]
1586pub struct OH_Drawing_Typography {
1587    _unused: [u8; 0],
1588}
1589#[repr(C)]
1590#[derive(Debug, Copy, Clone)]
1591pub struct OH_Drawing_LineTypography {
1592    _unused: [u8; 0],
1593}
1594#[repr(C)]
1595#[derive(Debug, Copy, Clone)]
1596pub struct OH_Drawing_TextStyle {
1597    _unused: [u8; 0],
1598}
1599#[repr(C)]
1600#[derive(Debug, Copy, Clone)]
1601pub struct OH_Drawing_TypographyStyle {
1602    _unused: [u8; 0],
1603}
1604#[repr(C)]
1605#[derive(Debug, Copy, Clone)]
1606pub struct OH_Drawing_TypographyCreate {
1607    _unused: [u8; 0],
1608}
1609#[repr(C)]
1610#[derive(Debug, Copy, Clone)]
1611pub struct OH_Drawing_TextBox {
1612    _unused: [u8; 0],
1613}
1614#[repr(C)]
1615#[derive(Debug, Copy, Clone)]
1616pub struct OH_Drawing_PositionAndAffinity {
1617    _unused: [u8; 0],
1618}
1619#[repr(C)]
1620#[derive(Debug, Copy, Clone)]
1621pub struct OH_Drawing_Range {
1622    _unused: [u8; 0],
1623}
1624#[repr(C)]
1625#[derive(Debug, Copy, Clone)]
1626pub struct OH_Drawing_FontParser {
1627    _unused: [u8; 0],
1628}
1629#[repr(C)]
1630#[derive(Debug, Copy, Clone)]
1631pub struct OH_Drawing_TextShadow {
1632    _unused: [u8; 0],
1633}
1634#[repr(C)]
1635#[derive(Debug, Copy, Clone)]
1636pub struct OH_Drawing_TextTab {
1637    _unused: [u8; 0],
1638}
1639#[repr(C)]
1640#[derive(Debug, Copy, Clone)]
1641pub struct OH_Drawing_TextLine {
1642    _unused: [u8; 0],
1643}
1644#[repr(C)]
1645#[derive(Debug, Copy, Clone)]
1646pub struct OH_Drawing_Run {
1647    _unused: [u8; 0],
1648}
1649#[repr(C)]
1650#[derive(Debug, Copy, Clone)]
1651pub struct OH_Drawing_FontFullDescriptor {
1652    _unused: [u8; 0],
1653}
1654extern "C" {
1655    #[doc = " @brief Creates an <b>OH_Drawing_FontCollection</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_FontCollection</b> object created.\n @since 8\n @version 1.0"]
1656    pub fn OH_Drawing_CreateFontCollection() -> *mut OH_Drawing_FontCollection;
1657}
1658extern "C" {
1659    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_FontCollection</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @since 8\n @version 1.0"]
1660    pub fn OH_Drawing_DestroyFontCollection(fontCollection: *mut OH_Drawing_FontCollection);
1661}
1662extern "C" {
1663    #[doc = " @brief Disable the font collection fallback.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @since 12\n @version 1.0\n @deprecated since 18\n @useinstead OH_Drawing_DisableFontCollectionSystemFont"]
1664    pub fn OH_Drawing_DisableFontCollectionFallback(fontCollection: *mut OH_Drawing_FontCollection);
1665}
1666extern "C" {
1667    #[doc = " @brief Disable the font collection systemfont.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @since 12\n @version 1.0"]
1668    pub fn OH_Drawing_DisableFontCollectionSystemFont(
1669        fontCollection: *mut OH_Drawing_FontCollection,
1670    );
1671}
1672extern "C" {
1673    #[doc = " @brief Creates an <b>OH_Drawing_FontCollection</b> object with shared usage between\n <b>OH_Drawing_TypographyCreate</b>.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_FontCollection</b> object created.\n @since 12\n @version 1.0"]
1674    pub fn OH_Drawing_CreateSharedFontCollection() -> *mut OH_Drawing_FontCollection;
1675}
1676extern "C" {
1677    #[doc = " @brief Clear font caches.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @since 12\n @version 1.0"]
1678    pub fn OH_Drawing_ClearFontCaches(fontCollection: *mut OH_Drawing_FontCollection);
1679}
1680extern "C" {
1681    #[doc = " @brief Get the <b>OH_Drawing_FontCollection</b> global instance.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Return the pointer to the <b>OH_Drawing_FontCollection</b> global instance.\n @since 14\n @version 1.0"]
1682    #[cfg(feature = "api-14")]
1683    pub fn OH_Drawing_GetFontCollectionGlobalInstance() -> *mut OH_Drawing_FontCollection;
1684}
1685#[doc = " Right to left (RTL)"]
1686pub const OH_Drawing_TextDirection_TEXT_DIRECTION_RTL: OH_Drawing_TextDirection = 0;
1687#[doc = " Left to right (LTR)"]
1688pub const OH_Drawing_TextDirection_TEXT_DIRECTION_LTR: OH_Drawing_TextDirection = 1;
1689#[doc = " @brief Enumerates text directions.\n\n @since 8\n @version 1.0"]
1690pub type OH_Drawing_TextDirection = u32;
1691#[doc = " Left-aligned"]
1692pub const OH_Drawing_TextAlign_TEXT_ALIGN_LEFT: OH_Drawing_TextAlign = 0;
1693#[doc = " Right-aligned"]
1694pub const OH_Drawing_TextAlign_TEXT_ALIGN_RIGHT: OH_Drawing_TextAlign = 1;
1695#[doc = " Center-aligned"]
1696pub const OH_Drawing_TextAlign_TEXT_ALIGN_CENTER: OH_Drawing_TextAlign = 2;
1697#[doc = " Justified, which means that each line (except the last line) is stretched so that every line has equal width,\n and the left and right margins are straight."]
1698pub const OH_Drawing_TextAlign_TEXT_ALIGN_JUSTIFY: OH_Drawing_TextAlign = 3;
1699#[doc = " <b>TEXT_ALIGN_START</b> achieves the same effect as <b>TEXT_ALIGN_LEFT</b>\n when <b>OH_Drawing_TextDirection</b> is <b>TEXT_DIRECTION_LTR</b>;\n it achieves the same effect as <b>TEXT_ALIGN_RIGHT</b>\n when <b>OH_Drawing_TextDirection</b> is <b>TEXT_DIRECTION_RTL</b>."]
1700pub const OH_Drawing_TextAlign_TEXT_ALIGN_START: OH_Drawing_TextAlign = 4;
1701#[doc = " <b>TEXT_ALIGN_END</b> achieves the same effect as <b>TEXT_ALIGN_RIGHT</b>\n when <b>OH_Drawing_TextDirection</b> is <b>TEXT_DIRECTION_LTR</b>;\n it achieves the same effect as <b>TEXT_ALIGN_LEFT</b>\n when <b>OH_Drawing_TextDirection</b> is <b>TEXT_DIRECTION_RTL</b>."]
1702pub const OH_Drawing_TextAlign_TEXT_ALIGN_END: OH_Drawing_TextAlign = 5;
1703#[doc = " @brief Enumerates text alignment modes.\n\n @since 8\n @version 1.0"]
1704pub type OH_Drawing_TextAlign = u32;
1705#[doc = " Thin"]
1706pub const OH_Drawing_FontWeight_FONT_WEIGHT_100: OH_Drawing_FontWeight = 0;
1707#[doc = " Extra-light"]
1708pub const OH_Drawing_FontWeight_FONT_WEIGHT_200: OH_Drawing_FontWeight = 1;
1709#[doc = " Light"]
1710pub const OH_Drawing_FontWeight_FONT_WEIGHT_300: OH_Drawing_FontWeight = 2;
1711#[doc = " Normal/Regular"]
1712pub const OH_Drawing_FontWeight_FONT_WEIGHT_400: OH_Drawing_FontWeight = 3;
1713#[doc = " Medium"]
1714pub const OH_Drawing_FontWeight_FONT_WEIGHT_500: OH_Drawing_FontWeight = 4;
1715#[doc = " Semi-bold"]
1716pub const OH_Drawing_FontWeight_FONT_WEIGHT_600: OH_Drawing_FontWeight = 5;
1717#[doc = " Bold"]
1718pub const OH_Drawing_FontWeight_FONT_WEIGHT_700: OH_Drawing_FontWeight = 6;
1719#[doc = " Extra-bold"]
1720pub const OH_Drawing_FontWeight_FONT_WEIGHT_800: OH_Drawing_FontWeight = 7;
1721#[doc = " Black"]
1722pub const OH_Drawing_FontWeight_FONT_WEIGHT_900: OH_Drawing_FontWeight = 8;
1723#[doc = " @brief Enumerates font weights.\n\n @since 8\n @version 1.0"]
1724pub type OH_Drawing_FontWeight = u32;
1725#[doc = " Alphabetic, where the letters in alphabets like English sit on."]
1726pub const OH_Drawing_TextBaseline_TEXT_BASELINE_ALPHABETIC: OH_Drawing_TextBaseline = 0;
1727#[doc = " Ideographic. The baseline is at the bottom of the text area."]
1728pub const OH_Drawing_TextBaseline_TEXT_BASELINE_IDEOGRAPHIC: OH_Drawing_TextBaseline = 1;
1729#[doc = " @brief Enumerates text baselines.\n\n @since 8\n @version 1.0"]
1730pub type OH_Drawing_TextBaseline = u32;
1731#[doc = " No decoration."]
1732pub const OH_Drawing_TextDecoration_TEXT_DECORATION_NONE: OH_Drawing_TextDecoration = 0;
1733#[doc = " A underline is used for decoration."]
1734pub const OH_Drawing_TextDecoration_TEXT_DECORATION_UNDERLINE: OH_Drawing_TextDecoration = 1;
1735#[doc = " An overline is used for decoration."]
1736pub const OH_Drawing_TextDecoration_TEXT_DECORATION_OVERLINE: OH_Drawing_TextDecoration = 2;
1737#[doc = " A strikethrough is used for decoration."]
1738pub const OH_Drawing_TextDecoration_TEXT_DECORATION_LINE_THROUGH: OH_Drawing_TextDecoration = 4;
1739#[doc = " @brief Enumerates text decorations.\n\n @since 8\n @version 1.0"]
1740pub type OH_Drawing_TextDecoration = u32;
1741#[doc = " Normal style"]
1742pub const OH_Drawing_FontStyle_FONT_STYLE_NORMAL: OH_Drawing_FontStyle = 0;
1743#[doc = " Italic style"]
1744pub const OH_Drawing_FontStyle_FONT_STYLE_ITALIC: OH_Drawing_FontStyle = 1;
1745#[doc = " Oblique style"]
1746pub const OH_Drawing_FontStyle_FONT_STYLE_OBLIQUE: OH_Drawing_FontStyle = 2;
1747#[doc = " @brief Enumerates font styles.\n\n @since 8\n @version 1.0"]
1748pub type OH_Drawing_FontStyle = u32;
1749#[doc = " Offset At Baseline"]
1750pub const OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_OFFSET_AT_BASELINE:
1751    OH_Drawing_PlaceholderVerticalAlignment = 0;
1752#[doc = " Above Baseline"]
1753pub const OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_ABOVE_BASELINE:
1754    OH_Drawing_PlaceholderVerticalAlignment = 1;
1755#[doc = " Below Baseline"]
1756pub const OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_BELOW_BASELINE:
1757    OH_Drawing_PlaceholderVerticalAlignment = 2;
1758#[doc = " Top of Row Box"]
1759pub const OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_TOP_OF_ROW_BOX:
1760    OH_Drawing_PlaceholderVerticalAlignment = 3;
1761#[doc = " Bottom of Row Box"]
1762pub const OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_BOTTOM_OF_ROW_BOX:
1763    OH_Drawing_PlaceholderVerticalAlignment = 4;
1764#[doc = " Center of Row Box"]
1765pub const OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_CENTER_OF_ROW_BOX:
1766    OH_Drawing_PlaceholderVerticalAlignment = 5;
1767#[doc = " Follow paragraph setting\n @since 20"]
1768#[cfg(feature = "api-20")]
1769pub const OH_Drawing_PlaceholderVerticalAlignment_ALIGNMENT_FOLLOW_PARAGRAPH:
1770    OH_Drawing_PlaceholderVerticalAlignment = 6;
1771#[doc = " @brief Enumerates placeholder vertical alignment.\n\n @since 11\n @version 1.0"]
1772pub type OH_Drawing_PlaceholderVerticalAlignment = u32;
1773#[doc = " @brief Defines the placeholder span.\n\n @since 11\n @version 1.0"]
1774#[repr(C)]
1775#[derive(Debug, Copy, Clone)]
1776pub struct OH_Drawing_PlaceholderSpan {
1777    #[doc = " width of placeholder"]
1778    pub width: f64,
1779    #[doc = " height of placeholder"]
1780    pub height: f64,
1781    #[doc = " alignment of placeholder"]
1782    pub alignment: OH_Drawing_PlaceholderVerticalAlignment,
1783    #[doc = " baseline of placeholder"]
1784    pub baseline: OH_Drawing_TextBaseline,
1785    #[doc = " baselineoffset of placeholder"]
1786    pub baselineOffset: f64,
1787}
1788#[doc = " Solid style"]
1789pub const OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_SOLID:
1790    OH_Drawing_TextDecorationStyle = 0;
1791#[doc = " Double style"]
1792pub const OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_DOUBLE:
1793    OH_Drawing_TextDecorationStyle = 1;
1794#[doc = " Dotted style"]
1795pub const OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_DOTTED:
1796    OH_Drawing_TextDecorationStyle = 2;
1797#[doc = " Dashed style"]
1798pub const OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_DASHED:
1799    OH_Drawing_TextDecorationStyle = 3;
1800#[doc = " Wavy style"]
1801pub const OH_Drawing_TextDecorationStyle_TEXT_DECORATION_STYLE_WAVY:
1802    OH_Drawing_TextDecorationStyle = 4;
1803#[doc = " @brief Enumerates text decoration style.\n\n @since 11\n @version 1.0"]
1804pub type OH_Drawing_TextDecorationStyle = u32;
1805#[doc = " Head modal"]
1806pub const OH_Drawing_EllipsisModal_ELLIPSIS_MODAL_HEAD: OH_Drawing_EllipsisModal = 0;
1807#[doc = " Middle modal"]
1808pub const OH_Drawing_EllipsisModal_ELLIPSIS_MODAL_MIDDLE: OH_Drawing_EllipsisModal = 1;
1809#[doc = " Tail modal"]
1810pub const OH_Drawing_EllipsisModal_ELLIPSIS_MODAL_TAIL: OH_Drawing_EllipsisModal = 2;
1811#[doc = " @brief Enumerates ellipsis modal.\n\n @since 11\n @version 1.0"]
1812pub type OH_Drawing_EllipsisModal = u32;
1813#[doc = " Greedy strategy"]
1814pub const OH_Drawing_BreakStrategy_BREAK_STRATEGY_GREEDY: OH_Drawing_BreakStrategy = 0;
1815#[doc = " Quality strategy"]
1816pub const OH_Drawing_BreakStrategy_BREAK_STRATEGY_HIGH_QUALITY: OH_Drawing_BreakStrategy = 1;
1817#[doc = " Balanced strategy"]
1818pub const OH_Drawing_BreakStrategy_BREAK_STRATEGY_BALANCED: OH_Drawing_BreakStrategy = 2;
1819#[doc = " @brief Enumerates break strategy.\n\n @since 11\n @version 1.0"]
1820pub type OH_Drawing_BreakStrategy = u32;
1821#[doc = " Normal type"]
1822pub const OH_Drawing_WordBreakType_WORD_BREAK_TYPE_NORMAL: OH_Drawing_WordBreakType = 0;
1823#[doc = " Break All type"]
1824pub const OH_Drawing_WordBreakType_WORD_BREAK_TYPE_BREAK_ALL: OH_Drawing_WordBreakType = 1;
1825#[doc = " Break Word type"]
1826pub const OH_Drawing_WordBreakType_WORD_BREAK_TYPE_BREAK_WORD: OH_Drawing_WordBreakType = 2;
1827#[doc = " Break word with hyphens\n @since 18"]
1828#[cfg(feature = "api-18")]
1829pub const OH_Drawing_WordBreakType_WORD_BREAK_TYPE_BREAK_HYPHEN: OH_Drawing_WordBreakType = 3;
1830#[doc = " @brief Enumerates word break type.\n\n @since 11\n @version 1.0"]
1831pub type OH_Drawing_WordBreakType = u32;
1832#[doc = " Tight style"]
1833pub const OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_TIGHT: OH_Drawing_RectHeightStyle = 0;
1834#[doc = " Max style"]
1835pub const OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_MAX: OH_Drawing_RectHeightStyle = 1;
1836#[doc = " Includelinespacemiddle style"]
1837pub const OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_INCLUDELINESPACEMIDDLE:
1838    OH_Drawing_RectHeightStyle = 2;
1839#[doc = " Includelinespacetop style"]
1840pub const OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_INCLUDELINESPACETOP:
1841    OH_Drawing_RectHeightStyle = 3;
1842#[doc = " Includelinespacebottom style"]
1843pub const OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_INCLUDELINESPACEBOTTOM:
1844    OH_Drawing_RectHeightStyle = 4;
1845#[doc = " Struct style"]
1846pub const OH_Drawing_RectHeightStyle_RECT_HEIGHT_STYLE_STRUCT: OH_Drawing_RectHeightStyle = 5;
1847#[doc = " @brief Enumerates rect height style.\n\n @since 11\n @version 1.0"]
1848pub type OH_Drawing_RectHeightStyle = u32;
1849#[doc = " Tight style"]
1850pub const OH_Drawing_RectWidthStyle_RECT_WIDTH_STYLE_TIGHT: OH_Drawing_RectWidthStyle = 0;
1851#[doc = " Max style"]
1852pub const OH_Drawing_RectWidthStyle_RECT_WIDTH_STYLE_MAX: OH_Drawing_RectWidthStyle = 1;
1853#[doc = " @brief Enumerates rect Width style.\n\n @since 11\n @version 1.0"]
1854pub type OH_Drawing_RectWidthStyle = u32;
1855#[doc = " The list of system font configuration information was successfully obtained"]
1856pub const OH_Drawing_FontConfigInfoErrorCode_SUCCESS_FONT_CONFIG_INFO:
1857    OH_Drawing_FontConfigInfoErrorCode = 0;
1858#[doc = " Unknown error"]
1859pub const OH_Drawing_FontConfigInfoErrorCode_ERROR_FONT_CONFIG_INFO_UNKNOWN:
1860    OH_Drawing_FontConfigInfoErrorCode = 1;
1861#[doc = " Parse system config file error"]
1862pub const OH_Drawing_FontConfigInfoErrorCode_ERROR_FONT_CONFIG_INFO_PARSE_FILE:
1863    OH_Drawing_FontConfigInfoErrorCode = 2;
1864#[doc = " Alloc memory error"]
1865pub const OH_Drawing_FontConfigInfoErrorCode_ERROR_FONT_CONFIG_INFO_ALLOC_MEMORY:
1866    OH_Drawing_FontConfigInfoErrorCode = 3;
1867#[doc = " Copy string data error"]
1868pub const OH_Drawing_FontConfigInfoErrorCode_ERROR_FONT_CONFIG_INFO_COPY_STRING_DATA:
1869    OH_Drawing_FontConfigInfoErrorCode = 4;
1870#[doc = " @brief Gets system font configuration information list result enum.\n\n @since 12\n @version 1.0"]
1871pub type OH_Drawing_FontConfigInfoErrorCode = u32;
1872#[doc = " @brief Fallback font information.\n\n @since 12\n @version 1.0"]
1873#[repr(C)]
1874#[derive(Debug, Copy, Clone)]
1875pub struct OH_Drawing_FontFallbackInfo {
1876    #[doc = " The type of language supported by the font set. The language format is bcp47"]
1877    pub language: *mut ::std::os::raw::c_char,
1878    #[doc = " Font family name"]
1879    pub familyName: *mut ::std::os::raw::c_char,
1880}
1881#[doc = " @brief Fallback font group.\n\n @since 12\n @version 1.0"]
1882#[repr(C)]
1883#[derive(Debug, Copy, Clone)]
1884pub struct OH_Drawing_FontFallbackGroup {
1885    #[doc = " The name of the font set corresponding to the fallback font set. If the value is null,\n all fonts can be set using the fallback font set list."]
1886    pub groupName: *mut ::std::os::raw::c_char,
1887    #[doc = " Fallback font Info Size"]
1888    pub fallbackInfoSize: usize,
1889    #[doc = " A list of font sets for fallback fonts"]
1890    pub fallbackInfoSet: *mut OH_Drawing_FontFallbackInfo,
1891}
1892#[doc = " @brief Font weight mapping information.\n\n @since 12\n @version 1.0"]
1893#[repr(C)]
1894#[derive(Debug, Copy, Clone)]
1895pub struct OH_Drawing_FontAdjustInfo {
1896    #[doc = " The font's original weight value"]
1897    pub weight: ::std::os::raw::c_int,
1898    #[doc = " The font weight displayed in the application"]
1899    pub to: ::std::os::raw::c_int,
1900}
1901#[doc = " @brief Alias font information.\n\n @since 12\n @version 1.0"]
1902#[repr(C)]
1903#[derive(Debug, Copy, Clone)]
1904pub struct OH_Drawing_FontAliasInfo {
1905    #[doc = " Font family name"]
1906    pub familyName: *mut ::std::os::raw::c_char,
1907    #[doc = " Font weight value. When the weight value is greater than 0,\n the font set contains only fonts with the specified weight.\n When the weight value is equal to 0, the font set contains all fonts."]
1908    pub weight: ::std::os::raw::c_int,
1909}
1910#[doc = " @brief General font set information supported by the system.\n\n @since 12\n @version 1.0"]
1911#[repr(C)]
1912#[derive(Debug, Copy, Clone)]
1913pub struct OH_Drawing_FontGenericInfo {
1914    #[doc = " Font family name"]
1915    pub familyName: *mut ::std::os::raw::c_char,
1916    #[doc = " The size of alias font lists"]
1917    pub aliasInfoSize: usize,
1918    #[doc = " The size of font weight mapping information lists"]
1919    pub adjustInfoSize: usize,
1920    #[doc = " List of alias fonts"]
1921    pub aliasInfoSet: *mut OH_Drawing_FontAliasInfo,
1922    #[doc = " Font weight mapping information lists"]
1923    pub adjustInfoSet: *mut OH_Drawing_FontAdjustInfo,
1924}
1925#[doc = " @brief System font configuration information.\n\n @since 12\n @version 1.0"]
1926#[repr(C)]
1927#[derive(Debug, Copy, Clone)]
1928pub struct OH_Drawing_FontConfigInfo {
1929    #[doc = " Count of system font file paths"]
1930    pub fontDirSize: usize,
1931    #[doc = " List size of generic font sets"]
1932    pub fontGenericInfoSize: usize,
1933    #[doc = " Count of fallback font set lists"]
1934    pub fallbackGroupSize: usize,
1935    #[doc = " List of system font file paths"]
1936    pub fontDirSet: *mut *mut ::std::os::raw::c_char,
1937    #[doc = " List of generic font sets"]
1938    pub fontGenericInfoSet: *mut OH_Drawing_FontGenericInfo,
1939    #[doc = " List of fallback font sets"]
1940    pub fallbackGroupSet: *mut OH_Drawing_FontFallbackGroup,
1941}
1942#[doc = " @brief Describes the font information.\n\n @since 12\n @version 1.0"]
1943#[repr(C)]
1944#[derive(Debug, Copy, Clone)]
1945pub struct OH_Drawing_FontDescriptor {
1946    #[doc = " The file path of System font"]
1947    pub path: *mut ::std::os::raw::c_char,
1948    #[doc = " A name that uniquely identifies the font"]
1949    pub postScriptName: *mut ::std::os::raw::c_char,
1950    #[doc = " The name of System font"]
1951    pub fullName: *mut ::std::os::raw::c_char,
1952    #[doc = " The family of System font"]
1953    pub fontFamily: *mut ::std::os::raw::c_char,
1954    #[doc = " The subfont family of the system font"]
1955    pub fontSubfamily: *mut ::std::os::raw::c_char,
1956    #[doc = " The weight of System font"]
1957    pub weight: ::std::os::raw::c_int,
1958    #[doc = " The width of System font"]
1959    pub width: ::std::os::raw::c_int,
1960    #[doc = " Whether the system font is tilted"]
1961    pub italic: ::std::os::raw::c_int,
1962    #[doc = " Whether the system font is compact"]
1963    pub monoSpace: bool,
1964    #[doc = " whether symbolic fonts are supported"]
1965    pub symbolic: bool,
1966}
1967#[doc = " @brief The metrics of line.\n\n @since 12\n @version 1.0"]
1968#[repr(C)]
1969#[derive(Debug, Copy, Clone)]
1970pub struct OH_Drawing_LineMetrics {
1971    #[doc = " Text ascender height"]
1972    pub ascender: f64,
1973    #[doc = " Tex descender height"]
1974    pub descender: f64,
1975    #[doc = " The height of a capital letter"]
1976    pub capHeight: f64,
1977    #[doc = " The height of a lowercase letter"]
1978    pub xHeight: f64,
1979    #[doc = " Text width"]
1980    pub width: f64,
1981    #[doc = " Line height"]
1982    pub height: f64,
1983    #[doc = " The distance from the left end of the text to the left end of the container,\n aligned to 0, is the width of the container minus the width of the line of text"]
1984    pub x: f64,
1985    #[doc = " The height from the top of the text to the top of the container, the first line is 0,\n and the second line is the height of the first line"]
1986    pub y: f64,
1987    #[doc = " Start Index"]
1988    pub startIndex: usize,
1989    #[doc = " End Index"]
1990    pub endIndex: usize,
1991    #[doc = " The metrics information of the first character"]
1992    pub firstCharMetrics: OH_Drawing_Font_Metrics,
1993}
1994#[doc = " both ascend of first row and last row style"]
1995pub const OH_Drawing_TextHeightBehavior_TEXT_HEIGHT_ALL: OH_Drawing_TextHeightBehavior = 0;
1996#[doc = " forbidding ascend of first row style"]
1997pub const OH_Drawing_TextHeightBehavior_TEXT_HEIGHT_DISABLE_FIRST_ASCENT:
1998    OH_Drawing_TextHeightBehavior = 1;
1999#[doc = " forbidding ascend of last row style"]
2000pub const OH_Drawing_TextHeightBehavior_TEXT_HEIGHT_DISABLE_LAST_ASCENT:
2001    OH_Drawing_TextHeightBehavior = 2;
2002#[doc = " neither ascend of first row nor last row style"]
2003pub const OH_Drawing_TextHeightBehavior_TEXT_HEIGHT_DISABLE_ALL: OH_Drawing_TextHeightBehavior = 3;
2004#[doc = " @brief Enumerates of heightmode of text.\n\n @since 12\n @version 1.0"]
2005pub type OH_Drawing_TextHeightBehavior = u32;
2006#[doc = " None style"]
2007pub const OH_Drawing_TextStyleType_TEXT_STYLE_NONE: OH_Drawing_TextStyleType = 0;
2008#[doc = " All attributes style"]
2009pub const OH_Drawing_TextStyleType_TEXT_STYLE_ALL_ATTRIBUTES: OH_Drawing_TextStyleType = 1;
2010#[doc = " Font style"]
2011pub const OH_Drawing_TextStyleType_TEXT_STYLE_FONT: OH_Drawing_TextStyleType = 2;
2012#[doc = " Foreground style"]
2013pub const OH_Drawing_TextStyleType_TEXT_STYLE_FOREGROUND: OH_Drawing_TextStyleType = 3;
2014#[doc = " Background style"]
2015pub const OH_Drawing_TextStyleType_TEXT_STYLE_BACKGROUND: OH_Drawing_TextStyleType = 4;
2016#[doc = " Shadow style"]
2017pub const OH_Drawing_TextStyleType_TEXT_STYLE_SHADOW: OH_Drawing_TextStyleType = 5;
2018#[doc = " Decorations style"]
2019pub const OH_Drawing_TextStyleType_TEXT_STYLE_DECORATIONS: OH_Drawing_TextStyleType = 6;
2020#[doc = " Letter spacing style"]
2021pub const OH_Drawing_TextStyleType_TEXT_STYLE_LETTER_SPACING: OH_Drawing_TextStyleType = 7;
2022#[doc = " Word spacing style"]
2023pub const OH_Drawing_TextStyleType_TEXT_STYLE_WORD_SPACING: OH_Drawing_TextStyleType = 8;
2024#[doc = " @brief Enumerates text style type.\n\n @since 12\n @version 1.0"]
2025pub type OH_Drawing_TextStyleType = u32;
2026pub const OH_Drawing_FontWidth_FONT_WIDTH_ULTRA_CONDENSED: OH_Drawing_FontWidth = 1;
2027pub const OH_Drawing_FontWidth_FONT_WIDTH_EXTRA_CONDENSED: OH_Drawing_FontWidth = 2;
2028pub const OH_Drawing_FontWidth_FONT_WIDTH_CONDENSED: OH_Drawing_FontWidth = 3;
2029pub const OH_Drawing_FontWidth_FONT_WIDTH_SEMI_CONDENSED: OH_Drawing_FontWidth = 4;
2030pub const OH_Drawing_FontWidth_FONT_WIDTH_NORMAL: OH_Drawing_FontWidth = 5;
2031pub const OH_Drawing_FontWidth_FONT_WIDTH_SEMI_EXPANDED: OH_Drawing_FontWidth = 6;
2032pub const OH_Drawing_FontWidth_FONT_WIDTH_EXPANDED: OH_Drawing_FontWidth = 7;
2033pub const OH_Drawing_FontWidth_FONT_WIDTH_EXTRA_EXPANDED: OH_Drawing_FontWidth = 8;
2034pub const OH_Drawing_FontWidth_FONT_WIDTH_ULTRA_EXPANDED: OH_Drawing_FontWidth = 9;
2035#[doc = " @brief Enumerates font width.\n\n @since 12\n @version 1.0"]
2036pub type OH_Drawing_FontWidth = u32;
2037#[doc = " Line height maximum"]
2038#[cfg(feature = "api-21")]
2039pub const OH_Drawing_TextStyleAttributeId_TEXT_STYLE_ATTR_D_LINE_HEIGHT_MAXIMUM:
2040    OH_Drawing_TextStyleAttributeId = 0;
2041#[doc = " Line height minimum"]
2042#[cfg(feature = "api-21")]
2043pub const OH_Drawing_TextStyleAttributeId_TEXT_STYLE_ATTR_D_LINE_HEIGHT_MINIMUM:
2044    OH_Drawing_TextStyleAttributeId = 1;
2045#[doc = " Line height style"]
2046#[cfg(feature = "api-21")]
2047pub const OH_Drawing_TextStyleAttributeId_TEXT_STYLE_ATTR_I_LINE_HEIGHT_STYLE:
2048    OH_Drawing_TextStyleAttributeId = 2;
2049#[doc = " Font width"]
2050#[cfg(feature = "api-21")]
2051pub const OH_Drawing_TextStyleAttributeId_TEXT_STYLE_ATTR_I_FONT_WIDTH:
2052    OH_Drawing_TextStyleAttributeId = 3;
2053#[doc = " @brief Enumerates text style attribute.\n\n @since 21"]
2054#[cfg(feature = "api-21")]
2055pub type OH_Drawing_TextStyleAttributeId = u32;
2056#[doc = " Use the font size as the scale factor for line height scaling"]
2057#[cfg(feature = "api-21")]
2058pub const OH_Drawing_LineHeightStyle_TEXT_LINE_HEIGHT_BY_FONT_SIZE: OH_Drawing_LineHeightStyle = 0;
2059#[doc = " Use the text height after shaping as the scale factor for line height scaling"]
2060#[cfg(feature = "api-21")]
2061pub const OH_Drawing_LineHeightStyle_TEXT_LINE_HEIGHT_BY_FONT_HEIGHT: OH_Drawing_LineHeightStyle =
2062    1;
2063#[doc = " @brief Enumerates line height's scaling type.\n\n @since 21"]
2064#[cfg(feature = "api-21")]
2065pub type OH_Drawing_LineHeightStyle = u32;
2066#[doc = " Line height maximum"]
2067#[cfg(feature = "api-21")]
2068pub const OH_Drawing_TypographyStyleAttributeId_TYPOGRAPHY_STYLE_ATTR_D_LINE_HEIGHT_MAXIMUM:
2069    OH_Drawing_TypographyStyleAttributeId = 0;
2070#[doc = " Line height minimum"]
2071#[cfg(feature = "api-21")]
2072pub const OH_Drawing_TypographyStyleAttributeId_TYPOGRAPHY_STYLE_ATTR_D_LINE_HEIGHT_MINIMUM:
2073    OH_Drawing_TypographyStyleAttributeId = 1;
2074#[doc = " Line spacing"]
2075#[cfg(feature = "api-21")]
2076pub const OH_Drawing_TypographyStyleAttributeId_TYPOGRAPHY_STYLE_ATTR_D_LINE_SPACING:
2077    OH_Drawing_TypographyStyleAttributeId = 2;
2078#[doc = " Line height style"]
2079#[cfg(feature = "api-21")]
2080pub const OH_Drawing_TypographyStyleAttributeId_TYPOGRAPHY_STYLE_ATTR_I_LINE_HEIGHT_STYLE:
2081    OH_Drawing_TypographyStyleAttributeId = 3;
2082#[doc = " Font width"]
2083#[cfg(feature = "api-21")]
2084pub const OH_Drawing_TypographyStyleAttributeId_TYPOGRAPHY_STYLE_ATTR_I_FONT_WIDTH:
2085    OH_Drawing_TypographyStyleAttributeId = 4;
2086#[doc = " Compress head punctuation\n @since 23"]
2087#[cfg(feature = "api-23")]
2088pub const OH_Drawing_TypographyStyleAttributeId_TYPOGRAPHY_STYLE_ATTR_B_COMPRESS_HEAD_PUNCTUATION : OH_Drawing_TypographyStyleAttributeId = 5 ;
2089#[doc = " Font padding\n @since 23"]
2090#[cfg(feature = "api-23")]
2091pub const OH_Drawing_TypographyStyleAttributeId_TYPOGRAPHY_STYLE_ATTR_B_INCLUDE_FONT_PADDING:
2092    OH_Drawing_TypographyStyleAttributeId = 6;
2093#[doc = " Fallback line spacing\n @since 23"]
2094#[cfg(feature = "api-23")]
2095pub const OH_Drawing_TypographyStyleAttributeId_TYPOGRAPHY_STYLE_ATTR_B_FALLBACK_LINE_SPACING:
2096    OH_Drawing_TypographyStyleAttributeId = 7;
2097#[doc = " @brief Enumerates typography style attribute.\n\n @since 21"]
2098#[cfg(feature = "api-21")]
2099pub type OH_Drawing_TypographyStyleAttributeId = u32;
2100extern "C" {
2101    #[doc = " @brief Sets double value to the text style attribute.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the value to set.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n         Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if the value corresponding to the attribute id\n                  exceeds the allowable range.\n @since 21"]
2102    #[cfg(feature = "api-21")]
2103    pub fn OH_Drawing_SetTextStyleAttributeDouble(
2104        style: *mut OH_Drawing_TextStyle,
2105        id: OH_Drawing_TextStyleAttributeId,
2106        value: f64,
2107    ) -> OH_Drawing_ErrorCode;
2108}
2109extern "C" {
2110    #[doc = " @brief Gets the double type property's value from the text style.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the return value of the interface.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n @since 21"]
2111    #[cfg(feature = "api-21")]
2112    pub fn OH_Drawing_GetTextStyleAttributeDouble(
2113        style: *mut OH_Drawing_TextStyle,
2114        id: OH_Drawing_TextStyleAttributeId,
2115        value: *mut f64,
2116    ) -> OH_Drawing_ErrorCode;
2117}
2118extern "C" {
2119    #[doc = " @brief Sets int value to the text style attribute.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the value to set.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n         Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if the value corresponding to the attribute id\n                  exceeds the allowable range.\n @since 21"]
2120    #[cfg(feature = "api-21")]
2121    pub fn OH_Drawing_SetTextStyleAttributeInt(
2122        style: *mut OH_Drawing_TextStyle,
2123        id: OH_Drawing_TextStyleAttributeId,
2124        value: ::std::os::raw::c_int,
2125    ) -> OH_Drawing_ErrorCode;
2126}
2127extern "C" {
2128    #[doc = " @brief Gets the int type property's value from the text style.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the return value of the interface.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n @since 21"]
2129    #[cfg(feature = "api-21")]
2130    pub fn OH_Drawing_GetTextStyleAttributeInt(
2131        style: *mut OH_Drawing_TextStyle,
2132        id: OH_Drawing_TextStyleAttributeId,
2133        value: *mut ::std::os::raw::c_int,
2134    ) -> OH_Drawing_ErrorCode;
2135}
2136extern "C" {
2137    #[doc = " @brief Sets double value to the typography style attribute.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the value to set.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n         Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if the value corresponding to the attribute id\n                  exceeds the allowable range.\n @since 21"]
2138    #[cfg(feature = "api-21")]
2139    pub fn OH_Drawing_SetTypographyStyleAttributeDouble(
2140        style: *mut OH_Drawing_TypographyStyle,
2141        id: OH_Drawing_TypographyStyleAttributeId,
2142        value: f64,
2143    ) -> OH_Drawing_ErrorCode;
2144}
2145extern "C" {
2146    #[doc = " @brief Gets the double type property's value from the typography style.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the return value of the interface.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n @since 21"]
2147    #[cfg(feature = "api-21")]
2148    pub fn OH_Drawing_GetTypographyStyleAttributeDouble(
2149        style: *mut OH_Drawing_TypographyStyle,
2150        id: OH_Drawing_TypographyStyleAttributeId,
2151        value: *mut f64,
2152    ) -> OH_Drawing_ErrorCode;
2153}
2154extern "C" {
2155    #[doc = " @brief Sets int value to the typography style attribute.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the value to set.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n         Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if the value corresponding to the attribute id\n                  exceeds the allowable range.\n @since 21"]
2156    #[cfg(feature = "api-21")]
2157    pub fn OH_Drawing_SetTypographyStyleAttributeInt(
2158        style: *mut OH_Drawing_TypographyStyle,
2159        id: OH_Drawing_TypographyStyleAttributeId,
2160        value: ::std::os::raw::c_int,
2161    ) -> OH_Drawing_ErrorCode;
2162}
2163extern "C" {
2164    #[doc = " @brief Gets the int type property's value from the typography style.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the return value of the interface.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n @since 21"]
2165    #[cfg(feature = "api-21")]
2166    pub fn OH_Drawing_GetTypographyStyleAttributeInt(
2167        style: *mut OH_Drawing_TypographyStyle,
2168        id: OH_Drawing_TypographyStyleAttributeId,
2169        value: *mut ::std::os::raw::c_int,
2170    ) -> OH_Drawing_ErrorCode;
2171}
2172extern "C" {
2173    #[doc = " @brief Sets bool value to the typography style attribute.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the value to set.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if the style is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n @since 23"]
2174    #[cfg(feature = "api-23")]
2175    pub fn OH_Drawing_SetTypographyStyleAttributeBool(
2176        style: *mut OH_Drawing_TypographyStyle,
2177        id: OH_Drawing_TypographyStyleAttributeId,
2178        value: bool,
2179    ) -> OH_Drawing_ErrorCode;
2180}
2181extern "C" {
2182    #[doc = " @brief Gets the bool type property's value from the typography style.\n\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param id Indicates the attribute id.\n @param value Indicates the return value of the interface.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if the style or value is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH} if the attribute id is not recognized or supported.\n @since 23"]
2183    #[cfg(feature = "api-23")]
2184    pub fn OH_Drawing_GetTypographyStyleAttributeBool(
2185        style: *mut OH_Drawing_TypographyStyle,
2186        id: OH_Drawing_TypographyStyleAttributeId,
2187        value: *mut bool,
2188    ) -> OH_Drawing_ErrorCode;
2189}
2190#[doc = " No badge"]
2191#[cfg(feature = "api-20")]
2192pub const OH_Drawing_TextBadgeType_TEXT_BADGE_NONE: OH_Drawing_TextBadgeType = 0;
2193#[doc = " Superscript"]
2194#[cfg(feature = "api-20")]
2195pub const OH_Drawing_TextBadgeType_TEXT_SUPERSCRIPT: OH_Drawing_TextBadgeType = 1;
2196#[doc = " Subscript"]
2197#[cfg(feature = "api-20")]
2198pub const OH_Drawing_TextBadgeType_TEXT_SUBSCRIPT: OH_Drawing_TextBadgeType = 2;
2199#[doc = " @brief Type of badge.\n\n @since 20\n @version 1.0"]
2200#[cfg(feature = "api-20")]
2201pub type OH_Drawing_TextBadgeType = u32;
2202#[doc = " Baseline of text line"]
2203#[cfg(feature = "api-20")]
2204pub const OH_Drawing_TextVerticalAlignment_TEXT_VERTICAL_ALIGNMENT_BASELINE:
2205    OH_Drawing_TextVerticalAlignment = 0;
2206#[doc = " Bottom of text line"]
2207#[cfg(feature = "api-20")]
2208pub const OH_Drawing_TextVerticalAlignment_TEXT_VERTICAL_ALIGNMENT_BOTTOM:
2209    OH_Drawing_TextVerticalAlignment = 1;
2210#[doc = " Center of text line"]
2211#[cfg(feature = "api-20")]
2212pub const OH_Drawing_TextVerticalAlignment_TEXT_VERTICAL_ALIGNMENT_CENTER:
2213    OH_Drawing_TextVerticalAlignment = 2;
2214#[doc = " Top of text line"]
2215#[cfg(feature = "api-20")]
2216pub const OH_Drawing_TextVerticalAlignment_TEXT_VERTICAL_ALIGNMENT_TOP:
2217    OH_Drawing_TextVerticalAlignment = 3;
2218#[doc = " @brief Type of vertical alignment.\n\n @since 20\n @version 1.0"]
2219#[cfg(feature = "api-20")]
2220pub type OH_Drawing_TextVerticalAlignment = u32;
2221#[doc = " @brief Defines the font style struct.\n\n @since 12\n @version 1.0"]
2222#[repr(C)]
2223#[derive(Debug, Copy, Clone)]
2224pub struct OH_Drawing_FontStyleStruct {
2225    #[doc = " Font weight"]
2226    pub weight: OH_Drawing_FontWeight,
2227    #[doc = " Font width"]
2228    pub width: OH_Drawing_FontWidth,
2229    #[doc = " Font slant"]
2230    pub slant: OH_Drawing_FontStyle,
2231}
2232#[doc = " @brief Defines the fontfeature.\n\n @since 12\n @version 1.0"]
2233#[repr(C)]
2234#[derive(Debug, Copy, Clone)]
2235pub struct OH_Drawing_FontFeature {
2236    #[doc = " key of fontfeature"]
2237    pub tag: *mut ::std::os::raw::c_char,
2238    #[doc = " value of fontfeature"]
2239    pub value: ::std::os::raw::c_int,
2240}
2241#[doc = " @brief Defines StrutStyle info struct.\n\n @since 12\n @version 1.0"]
2242#[repr(C)]
2243#[derive(Debug, Copy, Clone)]
2244pub struct OH_Drawing_StrutStyle {
2245    #[doc = " The font weight to use when calculating the strut"]
2246    pub weight: OH_Drawing_FontWeight,
2247    #[doc = " The font style to use when calculating the strut"]
2248    pub style: OH_Drawing_FontStyle,
2249    #[doc = " The size of the ascent plus descent in logical pixels"]
2250    pub size: f64,
2251    #[doc = " The minimum height of the strut, as a multiple of fontSize"]
2252    pub heightScale: f64,
2253    #[doc = " Whether the height is override"]
2254    pub heightOverride: bool,
2255    #[doc = " Whether the halfleading is enable"]
2256    pub halfLeading: bool,
2257    #[doc = " The additional leading to apply to the strut as a multiple of Size"]
2258    pub leading: f64,
2259    #[doc = " Whether the strut height should be forced"]
2260    pub forceStrutHeight: bool,
2261    #[doc = " The size of font families"]
2262    pub familiesSize: usize,
2263    #[doc = " The families of the font to use when calculating the strut"]
2264    pub families: *mut *mut ::std::os::raw::c_char,
2265}
2266extern "C" {
2267    #[doc = " @brief Creates an <b>OH_Drawing_TypographyStyle</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_TypographyStyle</b> object created.\n @since 8\n @version 1.0"]
2268    pub fn OH_Drawing_CreateTypographyStyle() -> *mut OH_Drawing_TypographyStyle;
2269}
2270extern "C" {
2271    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_TypographyStyle</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @since 8\n @version 1.0"]
2272    pub fn OH_Drawing_DestroyTypographyStyle(style: *mut OH_Drawing_TypographyStyle);
2273}
2274extern "C" {
2275    #[doc = " @brief Sets the text direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param direction Indicates the text direction to set. For details, see the enum <b>OH_Drawing_TextDirection</b>.\n @since 8\n @version 1.0"]
2276    pub fn OH_Drawing_SetTypographyTextDirection(
2277        style: *mut OH_Drawing_TypographyStyle,
2278        direction: ::std::os::raw::c_int,
2279    );
2280}
2281extern "C" {
2282    #[doc = " @brief Sets the text alignment mode.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param align Indicates the text alignment mode to set. For details, see the enum <b>OH_Drawing_TextAlign</b>.\n @since 8\n @version 1.0"]
2283    pub fn OH_Drawing_SetTypographyTextAlign(
2284        style: *mut OH_Drawing_TypographyStyle,
2285        align: ::std::os::raw::c_int,
2286    );
2287}
2288extern "C" {
2289    #[doc = " @brief Sets the maximum number of lines in a text file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param lineNumber Indicates the maximum number of lines to set.\n @since 8\n @version 1.0"]
2290    pub fn OH_Drawing_SetTypographyTextMaxLines(
2291        style: *mut OH_Drawing_TypographyStyle,
2292        lineNumber: ::std::os::raw::c_int,
2293    );
2294}
2295extern "C" {
2296    #[doc = " @brief Creates an <b>OH_Drawing_TextStyle</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_TextStyle</b> object created.\n @since 8\n @version 1.0"]
2297    pub fn OH_Drawing_CreateTextStyle() -> *mut OH_Drawing_TextStyle;
2298}
2299extern "C" {
2300    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_TextStyle</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @since 8\n @version 1.0"]
2301    pub fn OH_Drawing_DestroyTextStyle(style: *mut OH_Drawing_TextStyle);
2302}
2303extern "C" {
2304    #[doc = " @brief Sets the text color.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param color Indicates the color to set.\n @since 8\n @version 1.0"]
2305    pub fn OH_Drawing_SetTextStyleColor(style: *mut OH_Drawing_TextStyle, color: u32);
2306}
2307extern "C" {
2308    #[doc = " @brief Sets the font size.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param fontSize Indicates the font size to set.\n @since 8\n @version 1.0"]
2309    pub fn OH_Drawing_SetTextStyleFontSize(style: *mut OH_Drawing_TextStyle, fontSize: f64);
2310}
2311extern "C" {
2312    #[doc = " @brief Sets the font weight.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param fontWeight Indicates the font weight to set. For details, see the enum <b>OH_Drawing_FontWeight</b>.\n @since 8\n @version 1.0"]
2313    pub fn OH_Drawing_SetTextStyleFontWeight(
2314        style: *mut OH_Drawing_TextStyle,
2315        fontWeight: ::std::os::raw::c_int,
2316    );
2317}
2318extern "C" {
2319    #[doc = " @brief Sets the text baseline.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param baseline Indicates the text baseline to set. For details, see the enum <b>OH_Drawing_TextBaseline</b>.\n @since 8\n @version 1.0"]
2320    pub fn OH_Drawing_SetTextStyleBaseLine(
2321        style: *mut OH_Drawing_TextStyle,
2322        baseline: ::std::os::raw::c_int,
2323    );
2324}
2325extern "C" {
2326    #[doc = " @brief Sets the text decoration.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param decoration Indicates the text decoration to set. For details, see the enum <b>OH_Drawing_TextDecoration</b>.\n @since 8\n @version 1.0"]
2327    pub fn OH_Drawing_SetTextStyleDecoration(
2328        style: *mut OH_Drawing_TextStyle,
2329        decoration: ::std::os::raw::c_int,
2330    );
2331}
2332extern "C" {
2333    #[doc = " @brief Add the text decoration.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param decoration Indicates the text decoration to add. For details, see the enum <b>OH_Drawing_TextDecoration</b>.\n @since 18\n @version 1.0"]
2334    #[cfg(feature = "api-18")]
2335    pub fn OH_Drawing_AddTextStyleDecoration(
2336        style: *mut OH_Drawing_TextStyle,
2337        decoration: ::std::os::raw::c_int,
2338    );
2339}
2340extern "C" {
2341    #[doc = " @brief Remove the text decoration.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param decoration Indicates the text decoration to remove, shoud be match existing text decorations.\n For details, see the enum <b>OH_Drawing_TextDecoration</b>.\n @since 18\n @version 1.0"]
2342    #[cfg(feature = "api-18")]
2343    pub fn OH_Drawing_RemoveTextStyleDecoration(
2344        style: *mut OH_Drawing_TextStyle,
2345        decoration: ::std::os::raw::c_int,
2346    );
2347}
2348extern "C" {
2349    #[doc = " @brief Sets the color for the text decoration.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param color Indicates the color to set.\n @since 8\n @version 1.0"]
2350    pub fn OH_Drawing_SetTextStyleDecorationColor(style: *mut OH_Drawing_TextStyle, color: u32);
2351}
2352extern "C" {
2353    #[doc = " @brief Sets the font height.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param fontHeight Indicates the font height to set.\n @since 8\n @version 1.0"]
2354    pub fn OH_Drawing_SetTextStyleFontHeight(style: *mut OH_Drawing_TextStyle, fontHeight: f64);
2355}
2356extern "C" {
2357    #[doc = " @brief Sets the font families.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param fontFamiliesNumber Indicates the number of font families to set.\n @param fontFamilies Indicates the pointer to the font families to set.\n @since 8\n @version 1.0"]
2358    pub fn OH_Drawing_SetTextStyleFontFamilies(
2359        style: *mut OH_Drawing_TextStyle,
2360        fontFamiliesNumber: ::std::os::raw::c_int,
2361        fontFamilies: *mut *const ::std::os::raw::c_char,
2362    );
2363}
2364extern "C" {
2365    #[doc = " @brief Sets the font style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param fontStyle Indicates the font style to set. For details, see the enum <b>OH_Drawing_FontStyle</b>.\n @since 8\n @version 1.0"]
2366    pub fn OH_Drawing_SetTextStyleFontStyle(
2367        style: *mut OH_Drawing_TextStyle,
2368        fontStyle: ::std::os::raw::c_int,
2369    );
2370}
2371extern "C" {
2372    #[doc = " @brief Sets the locale.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param locale Indicates the pointer to the locale to set.\n @since 8\n @version 1.0"]
2373    pub fn OH_Drawing_SetTextStyleLocale(
2374        style: *mut OH_Drawing_TextStyle,
2375        locale: *const ::std::os::raw::c_char,
2376    );
2377}
2378extern "C" {
2379    #[doc = " @brief Sets the foreground brush style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param foregroundBrush Indicates the pointer to a brush object <b>OH_Drawing_Brush</b>.\n @since 12\n @version 1.0"]
2380    pub fn OH_Drawing_SetTextStyleForegroundBrush(
2381        style: *mut OH_Drawing_TextStyle,
2382        foregroundBrush: *mut OH_Drawing_Brush,
2383    );
2384}
2385extern "C" {
2386    #[doc = " @brief Gets the foreground brush style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param foregroundBrush Indicates the pointer to a brush object <b>OH_Drawing_Brush</b>.\n @since 12\n @version 1.0"]
2387    pub fn OH_Drawing_TextStyleGetForegroundBrush(
2388        style: *mut OH_Drawing_TextStyle,
2389        foregroundBrush: *mut OH_Drawing_Brush,
2390    );
2391}
2392extern "C" {
2393    #[doc = " @brief Sets the foreground pen style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param foregroundPen Indicates the pointer to a pen object <b>OH_Drawing_Pen</b>.\n @since 12\n @version 1.0"]
2394    pub fn OH_Drawing_SetTextStyleForegroundPen(
2395        style: *mut OH_Drawing_TextStyle,
2396        foregroundPen: *mut OH_Drawing_Pen,
2397    );
2398}
2399extern "C" {
2400    #[doc = " @brief Gets the foreground pen style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param foregroundPen Indicates the pointer to a pen object <b>OH_Drawing_Pen</b>.\n @since 12\n @version 1.0"]
2401    pub fn OH_Drawing_TextStyleGetForegroundPen(
2402        style: *mut OH_Drawing_TextStyle,
2403        foregroundPen: *mut OH_Drawing_Pen,
2404    );
2405}
2406extern "C" {
2407    #[doc = " @brief Sets the background brush style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param foregroundPen Indicates the pointer to a brush object <b>OH_Drawing_Brush</b>.\n @since 12\n @version 1.0"]
2408    pub fn OH_Drawing_SetTextStyleBackgroundBrush(
2409        style: *mut OH_Drawing_TextStyle,
2410        foregroundPen: *mut OH_Drawing_Brush,
2411    );
2412}
2413extern "C" {
2414    #[doc = " @brief Gets the background brush style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param backgroundBrush Indicates the pointer to a brush object <b>OH_Drawing_Brush</b>.\n @since 12\n @version 1.0"]
2415    pub fn OH_Drawing_TextStyleGetBackgroundBrush(
2416        style: *mut OH_Drawing_TextStyle,
2417        backgroundBrush: *mut OH_Drawing_Brush,
2418    );
2419}
2420extern "C" {
2421    #[doc = " @brief Sets the background pen style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param backgroundPen Indicates the pointer to a pen object <b>OH_Drawing_Pen</b>.\n @since 12\n @version 1.0"]
2422    pub fn OH_Drawing_SetTextStyleBackgroundPen(
2423        style: *mut OH_Drawing_TextStyle,
2424        backgroundPen: *mut OH_Drawing_Pen,
2425    );
2426}
2427extern "C" {
2428    #[doc = " @brief Gets the background pen style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param backgroundPen Indicates the pointer to a pen object <b>OH_Drawing_Pen</b>.\n @since 12\n @version 1.0"]
2429    pub fn OH_Drawing_TextStyleGetBackgroundPen(
2430        style: *mut OH_Drawing_TextStyle,
2431        backgroundPen: *mut OH_Drawing_Pen,
2432    );
2433}
2434extern "C" {
2435    #[doc = " @brief Creates a pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param fontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @return Returns the pointer to the <b>OH_Drawing_TypographyCreate</b> object created.\n @since 8\n @version 1.0"]
2436    pub fn OH_Drawing_CreateTypographyHandler(
2437        style: *mut OH_Drawing_TypographyStyle,
2438        fontCollection: *mut OH_Drawing_FontCollection,
2439    ) -> *mut OH_Drawing_TypographyCreate;
2440}
2441extern "C" {
2442    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_TypographyCreate</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @since 8\n @version 1.0"]
2443    pub fn OH_Drawing_DestroyTypographyHandler(handler: *mut OH_Drawing_TypographyCreate);
2444}
2445extern "C" {
2446    #[doc = " @brief Sets the text style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @since 8\n @version 1.0"]
2447    pub fn OH_Drawing_TypographyHandlerPushTextStyle(
2448        handler: *mut OH_Drawing_TypographyCreate,
2449        style: *mut OH_Drawing_TextStyle,
2450    );
2451}
2452extern "C" {
2453    #[doc = " @brief Sets the text content.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @param text Indicates the pointer to the text content to set.\n @since 8\n @version 1.0"]
2454    pub fn OH_Drawing_TypographyHandlerAddText(
2455        handler: *mut OH_Drawing_TypographyCreate,
2456        text: *const ::std::os::raw::c_char,
2457    );
2458}
2459extern "C" {
2460    #[doc = " @brief Removes the topmost style in the stack, leaving the remaining styles in effect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @since 8\n @version 1.0"]
2461    pub fn OH_Drawing_TypographyHandlerPopTextStyle(handler: *mut OH_Drawing_TypographyCreate);
2462}
2463extern "C" {
2464    #[doc = " @brief Creates an <b>OH_Drawing_Typography</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Typography</b> object created.\n @since 8\n @version 1.0"]
2465    pub fn OH_Drawing_CreateTypography(
2466        handler: *mut OH_Drawing_TypographyCreate,
2467    ) -> *mut OH_Drawing_Typography;
2468}
2469extern "C" {
2470    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_Typography</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @since 8\n @version 1.0"]
2471    pub fn OH_Drawing_DestroyTypography(typography: *mut OH_Drawing_Typography);
2472}
2473extern "C" {
2474    #[doc = " @brief Lays out the typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param maxWidth Indicates the maximum text width to set.\n @since 8\n @version 1.0"]
2475    pub fn OH_Drawing_TypographyLayout(typography: *mut OH_Drawing_Typography, maxWidth: f64);
2476}
2477extern "C" {
2478    #[doc = " @brief Paints text on the canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param potisionX Indicates the x coordinate.\n @param potisionY Indicates the y coordinate.\n @since 8\n @version 1.0"]
2479    pub fn OH_Drawing_TypographyPaint(
2480        typography: *mut OH_Drawing_Typography,
2481        canvas: *mut OH_Drawing_Canvas,
2482        potisionX: f64,
2483        potisionY: f64,
2484    );
2485}
2486extern "C" {
2487    #[doc = " @brief Paints path text on the canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param path Indicates path information.\n @param hOffset Indicates the distance along the path to add to the text's starting position.\n @param vOffset Indicates the distance above(-) or below(+) the path to position the text.\n @since 12\n @version 1.0"]
2488    pub fn OH_Drawing_TypographyPaintOnPath(
2489        typography: *mut OH_Drawing_Typography,
2490        canvas: *mut OH_Drawing_Canvas,
2491        path: *mut OH_Drawing_Path,
2492        hOffset: f64,
2493        vOffset: f64,
2494    );
2495}
2496extern "C" {
2497    #[doc = " @brief Gets the max width.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the max width.\n @since 9\n @version 1.1"]
2498    pub fn OH_Drawing_TypographyGetMaxWidth(typography: *mut OH_Drawing_Typography) -> f64;
2499}
2500extern "C" {
2501    #[doc = " @brief Gets the height.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the height.\n @since 9\n @version 1.1"]
2502    pub fn OH_Drawing_TypographyGetHeight(typography: *mut OH_Drawing_Typography) -> f64;
2503}
2504extern "C" {
2505    #[doc = " @brief Obtains the width of the longest line. You are advised to round up the return value in actual use.\n When the text content is empty, the minimum float value,\n that is, -340282346638528859811704183484516925440.000000, is returned.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Pointer to an <b>OH_Drawing_Typography</b> object, which is obtained by\n {@link OH_Drawing_CreateTypography}.\n @return Returns the width of the longest line.\n @since 9\n @version 1.1"]
2506    pub fn OH_Drawing_TypographyGetLongestLine(typography: *mut OH_Drawing_Typography) -> f64;
2507}
2508extern "C" {
2509    #[doc = " @brief Obtains the width of the longest line with indent. You are advised to\n round up the return value in actual use. When the text content is empty, the\n minimum float value, that is, 0.0, is returned.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Pointer to an <b>OH_Drawing_Typography</b> object, which is obtained by\n {@link OH_Drawing_CreateTypography}.\n @return Returns the width of the longest line with indent.\n @since 13\n @version 1.1"]
2510    #[cfg(feature = "api-13")]
2511    pub fn OH_Drawing_TypographyGetLongestLineWithIndent(
2512        typography: *mut OH_Drawing_Typography,
2513    ) -> f64;
2514}
2515extern "C" {
2516    #[doc = " @brief Gets the min intrinsic width.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the min intrinsic width.\n @since 9\n @version 1.1"]
2517    pub fn OH_Drawing_TypographyGetMinIntrinsicWidth(typography: *mut OH_Drawing_Typography)
2518        -> f64;
2519}
2520extern "C" {
2521    #[doc = " @brief Gets the max intrinsic width.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the max intrinsic width.\n @since 9\n @version 1.1"]
2522    pub fn OH_Drawing_TypographyGetMaxIntrinsicWidth(typography: *mut OH_Drawing_Typography)
2523        -> f64;
2524}
2525extern "C" {
2526    #[doc = " @brief Gets the alphabetic baseline.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the alphabetic baseline.\n @since 9\n @version 1.1"]
2527    pub fn OH_Drawing_TypographyGetAlphabeticBaseline(
2528        typography: *mut OH_Drawing_Typography,
2529    ) -> f64;
2530}
2531extern "C" {
2532    #[doc = " @brief Gets the ideographic baseline.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the ideographic baseline.\n @since 9\n @version 1.1"]
2533    pub fn OH_Drawing_TypographyGetIdeographicBaseline(
2534        typography: *mut OH_Drawing_Typography,
2535    ) -> f64;
2536}
2537extern "C" {
2538    #[doc = " @brief Sets the placeholder.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @param span Indicates the pointer to an <b>OH_Drawing_PlaceholderSpan</b> object.\n @since 11\n @version 1.0"]
2539    pub fn OH_Drawing_TypographyHandlerAddPlaceholder(
2540        handler: *mut OH_Drawing_TypographyCreate,
2541        span: *mut OH_Drawing_PlaceholderSpan,
2542    );
2543}
2544extern "C" {
2545    #[doc = " @brief Gets the exceed maxLines.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the exceed maxLines.\n @since 11\n @version 1.0"]
2546    pub fn OH_Drawing_TypographyDidExceedMaxLines(typography: *mut OH_Drawing_Typography) -> bool;
2547}
2548extern "C" {
2549    #[doc = " @brief Gets the rects for range.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param start Indicates the start of range to set.\n @param end Indicates the end of range to set.\n @param heightStyle Indicates the height style to set.\n For details, see the enum <b>OH_Drawing_RectHeightStyle</b>.\n @param widthStyle Indicates the width style to set.\n For details, see the enum <b>OH_Drawing_RectWidthStyle</b>.\n @return Returns the rects for range.\n @since 11\n @version 1.0"]
2550    pub fn OH_Drawing_TypographyGetRectsForRange(
2551        typography: *mut OH_Drawing_Typography,
2552        start: usize,
2553        end: usize,
2554        heightStyle: OH_Drawing_RectHeightStyle,
2555        widthStyle: OH_Drawing_RectWidthStyle,
2556    ) -> *mut OH_Drawing_TextBox;
2557}
2558extern "C" {
2559    #[doc = " @brief Gets the rects for placeholders.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the rects for placeholders.\n @since 11\n @version 1.0"]
2560    pub fn OH_Drawing_TypographyGetRectsForPlaceholders(
2561        typography: *mut OH_Drawing_Typography,
2562    ) -> *mut OH_Drawing_TextBox;
2563}
2564extern "C" {
2565    #[doc = " @brief Gets left from textbox.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textbox Indicates the pointer to an <b>OH_Drawing_TextBox</b> object.\n @param index Indicates the index of textbox.\n @return Returns left from textbox.\n @since 11\n @version 1.0"]
2566    pub fn OH_Drawing_GetLeftFromTextBox(
2567        textbox: *mut OH_Drawing_TextBox,
2568        index: ::std::os::raw::c_int,
2569    ) -> f32;
2570}
2571extern "C" {
2572    #[doc = " @brief Gets right from textbox.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textbox Indicates the pointer to an <b>OH_Drawing_TextBox</b> object.\n @param index Indicates the index of textbox.\n @return Returns right from textbox.\n @since 11\n @version 1.0"]
2573    pub fn OH_Drawing_GetRightFromTextBox(
2574        textbox: *mut OH_Drawing_TextBox,
2575        index: ::std::os::raw::c_int,
2576    ) -> f32;
2577}
2578extern "C" {
2579    #[doc = " @brief Gets top from textbox.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textbox Indicates the pointer to an <b>OH_Drawing_TextBox</b> object.\n @param index Indicates the index of textbox.\n @return Returns top from textbox.\n @since 11\n @version 1.0"]
2580    pub fn OH_Drawing_GetTopFromTextBox(
2581        textbox: *mut OH_Drawing_TextBox,
2582        index: ::std::os::raw::c_int,
2583    ) -> f32;
2584}
2585extern "C" {
2586    #[doc = " @brief Gets bottom from textbox.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textbox Indicates the pointer to an <b>OH_Drawing_TextBox</b> object.\n @param index Indicates the index of textbox.\n @return Returns bottom from textbox.\n @since 11\n @version 1.0"]
2587    pub fn OH_Drawing_GetBottomFromTextBox(
2588        textbox: *mut OH_Drawing_TextBox,
2589        index: ::std::os::raw::c_int,
2590    ) -> f32;
2591}
2592extern "C" {
2593    #[doc = " @brief Gets direction from textbox.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textbox Indicates the pointer to an <b>OH_Drawing_TextBox</b> object.\n @param index Indicates the index of textbox.\n @return Returns direction from textbox.\n @since 11\n @version 1.0"]
2594    pub fn OH_Drawing_GetTextDirectionFromTextBox(
2595        textbox: *mut OH_Drawing_TextBox,
2596        index: ::std::os::raw::c_int,
2597    ) -> ::std::os::raw::c_int;
2598}
2599extern "C" {
2600    #[doc = " @brief Gets size of textBox.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textBox Indicates the pointer to an <b>OH_Drawing_TextBox</b> object.\n @return Returns size of textBox.\n @since 11\n @version 1.0"]
2601    pub fn OH_Drawing_GetSizeOfTextBox(textBox: *mut OH_Drawing_TextBox) -> usize;
2602}
2603extern "C" {
2604    #[doc = " @brief Gets the glyphposition at coordinate.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param dx Indicates the positionX of typography to set.\n @param dy Indicates the positionY of typography to set.\n @return Returns the glyphposition at coordinate.\n @since 11\n @version 1.0\n @deprecated since 18\n @useinstead OH_Drawing_TypographyGetGlyphPositionAtCoordinateWithCluster"]
2605    pub fn OH_Drawing_TypographyGetGlyphPositionAtCoordinate(
2606        typography: *mut OH_Drawing_Typography,
2607        dx: f64,
2608        dy: f64,
2609    ) -> *mut OH_Drawing_PositionAndAffinity;
2610}
2611extern "C" {
2612    #[doc = " @brief Gets the glyphposition at coordinate with cluster.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param dx Indicates the positionX of typography to set.\n @param dy Indicates the positionY of typography to set.\n @return Returns the glyphposition at coordinate with cluster.\n @since 11\n @version 1.0"]
2613    pub fn OH_Drawing_TypographyGetGlyphPositionAtCoordinateWithCluster(
2614        typography: *mut OH_Drawing_Typography,
2615        dx: f64,
2616        dy: f64,
2617    ) -> *mut OH_Drawing_PositionAndAffinity;
2618}
2619extern "C" {
2620    #[doc = " @brief Gets position from position and affinity.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param positionAndAffinity Indicates the pointer to an <b>OH_Drawing_PositionAndAffinity</b> object.\n @return Returns position from position and affinity.\n @since 11\n @version 1.0"]
2621    pub fn OH_Drawing_GetPositionFromPositionAndAffinity(
2622        positionAndAffinity: *mut OH_Drawing_PositionAndAffinity,
2623    ) -> usize;
2624}
2625extern "C" {
2626    #[doc = " @brief Gets affinity from position and affinity.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param positionandaffinity Indicates the pointer to an <b>OH_Drawing_PositionAndAffinity</b> object.\n @return Returns affinity from position and affinity.\n @since 11\n @version 1.0"]
2627    pub fn OH_Drawing_GetAffinityFromPositionAndAffinity(
2628        positionandaffinity: *mut OH_Drawing_PositionAndAffinity,
2629    ) -> ::std::os::raw::c_int;
2630}
2631extern "C" {
2632    #[doc = " @brief Gets the word boundary.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param offset Indicates the size of text to set.\n @return Returns the word boundary.\n @since 11\n @version 1.0"]
2633    pub fn OH_Drawing_TypographyGetWordBoundary(
2634        typography: *mut OH_Drawing_Typography,
2635        offset: usize,
2636    ) -> *mut OH_Drawing_Range;
2637}
2638extern "C" {
2639    #[doc = " @brief Gets start from range.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param range Indicates the pointer to an <b>OH_Drawing_Range</b> object.\n @return Returns start from range.\n @since 11\n @version 1.0"]
2640    pub fn OH_Drawing_GetStartFromRange(range: *mut OH_Drawing_Range) -> usize;
2641}
2642extern "C" {
2643    #[doc = " @brief Gets end from range.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param range Indicates the pointer to an <b>OH_Drawing_Range</b> object.\n @return Returns end from range.\n @since 11\n @version 1.0"]
2644    pub fn OH_Drawing_GetEndFromRange(range: *mut OH_Drawing_Range) -> usize;
2645}
2646extern "C" {
2647    #[doc = " @brief Gets the line count.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @return Returns the line count.\n @since 11\n @version 1.0"]
2648    pub fn OH_Drawing_TypographyGetLineCount(typography: *mut OH_Drawing_Typography) -> usize;
2649}
2650extern "C" {
2651    #[doc = " @brief Sets the decoration style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param decorationStyle Indicates the text decoration style to set.\n For details, see the enum <b>OH_Drawing_TextDecorationStyle</b>.\n @since 11\n @version 1.0"]
2652    pub fn OH_Drawing_SetTextStyleDecorationStyle(
2653        style: *mut OH_Drawing_TextStyle,
2654        decorationStyle: ::std::os::raw::c_int,
2655    );
2656}
2657extern "C" {
2658    #[doc = " @brief Sets the decoration thickness scale.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param decorationThicknessScale Indicates the thickness scale of text decoration to set.\n @since 11\n @version 1.0"]
2659    pub fn OH_Drawing_SetTextStyleDecorationThicknessScale(
2660        style: *mut OH_Drawing_TextStyle,
2661        decorationThicknessScale: f64,
2662    );
2663}
2664extern "C" {
2665    #[doc = " @brief Sets the letter spacing.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param letterSpacing Indicates the letter space to set.\n @since 11\n @version 1.0"]
2666    pub fn OH_Drawing_SetTextStyleLetterSpacing(
2667        style: *mut OH_Drawing_TextStyle,
2668        letterSpacing: f64,
2669    );
2670}
2671extern "C" {
2672    #[doc = " @brief Sets the word spacing.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param wordSpacing Indicates the word space to set.\n @since 11\n @version 1.0"]
2673    pub fn OH_Drawing_SetTextStyleWordSpacing(style: *mut OH_Drawing_TextStyle, wordSpacing: f64);
2674}
2675extern "C" {
2676    #[doc = " @brief Sets the half leading.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param halfLeading Indicates the half leading to set.\n @since 11\n @version 1.0"]
2677    pub fn OH_Drawing_SetTextStyleHalfLeading(style: *mut OH_Drawing_TextStyle, halfLeading: bool);
2678}
2679extern "C" {
2680    #[doc = " @brief Sets the ellipsis.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param ellipsis Indicates the pointer to ellipsis style.\n @since 11\n @version 1.0\n @deprecated since 18\n @useinstead OH_Drawing_SetTypographyTextEllipsis"]
2681    pub fn OH_Drawing_SetTextStyleEllipsis(
2682        style: *mut OH_Drawing_TextStyle,
2683        ellipsis: *const ::std::os::raw::c_char,
2684    );
2685}
2686extern "C" {
2687    #[doc = " @brief Sets the ellipsis modal.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param ellipsisModal Indicates the ellipsis model to set. For details, see the enum <b>OH_Drawing_EllipsisModal</b>.\n @since 11\n @version 1.0\n @deprecated since 18\n @useinstead OH_Drawing_SetTypographyTextEllipsisModal"]
2688    pub fn OH_Drawing_SetTextStyleEllipsisModal(
2689        style: *mut OH_Drawing_TextStyle,
2690        ellipsisModal: ::std::os::raw::c_int,
2691    );
2692}
2693extern "C" {
2694    #[doc = " @brief Sets the break strategy.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param breakStrategy Indicates the break strategy to set. For details, see the enum <b>OH_Drawing_BreakStrategy</b>.\n @since 11\n @version 1.0"]
2695    pub fn OH_Drawing_SetTypographyTextBreakStrategy(
2696        style: *mut OH_Drawing_TypographyStyle,
2697        breakStrategy: ::std::os::raw::c_int,
2698    );
2699}
2700extern "C" {
2701    #[doc = " @brief Sets the word break type.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param wordBreakType Indicates the word break type to set. For details, see the enum <b>OH_Drawing_WordBreakType</b>.\n @since 11\n @version 1.0"]
2702    pub fn OH_Drawing_SetTypographyTextWordBreakType(
2703        style: *mut OH_Drawing_TypographyStyle,
2704        wordBreakType: ::std::os::raw::c_int,
2705    );
2706}
2707extern "C" {
2708    #[doc = " @brief Sets the ellipsis modal.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param ellipsisModal Indicates the ellipsis modal to set. For details, see the enum <b>OH_Drawing_EllipsisModal</b>.\n @since 11\n @version 1.0"]
2709    pub fn OH_Drawing_SetTypographyTextEllipsisModal(
2710        style: *mut OH_Drawing_TypographyStyle,
2711        ellipsisModal: ::std::os::raw::c_int,
2712    );
2713}
2714extern "C" {
2715    #[doc = " @brief get line height.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param lineNumber Indicates the line number.\n @return Returns line height.\n @since 11\n @version 1.0"]
2716    pub fn OH_Drawing_TypographyGetLineHeight(
2717        typography: *mut OH_Drawing_Typography,
2718        lineNumber: ::std::os::raw::c_int,
2719    ) -> f64;
2720}
2721extern "C" {
2722    #[doc = " @brief get line width.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param lineNumber Indicates the line number.\n @return Returns line width.\n @since 11\n @version 1.0"]
2723    pub fn OH_Drawing_TypographyGetLineWidth(
2724        typography: *mut OH_Drawing_Typography,
2725        lineNumber: ::std::os::raw::c_int,
2726    ) -> f64;
2727}
2728extern "C" {
2729    #[doc = " @brief get line text range.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to an <b>OH_Drawing_Typography</b> object.\n @param lineNumber Indicates the line number.\n @param includeSpaces Indicates whether spaces are contained.\n @return Returns line text range.\n @since 12\n @version 1.0"]
2730    pub fn OH_Drawing_TypographyGetLineTextRange(
2731        typography: *mut OH_Drawing_Typography,
2732        lineNumber: ::std::os::raw::c_int,
2733        includeSpaces: bool,
2734    ) -> *mut OH_Drawing_Range;
2735}
2736extern "C" {
2737    #[doc = " @brief Creates an <b>OH_Drawing_FontDescriptor</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the font descriptor object <b>OH_Drawing_FontDescriptor</b> created.\n @since 12\n @version 1.0"]
2738    pub fn OH_Drawing_CreateFontDescriptor() -> *mut OH_Drawing_FontDescriptor;
2739}
2740extern "C" {
2741    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_FontDescriptor</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param descriptor the pointer to the font descriptor object <b>OH_Drawing_FontDescriptor</b>.\n @since 12\n @version 1.0"]
2742    pub fn OH_Drawing_DestroyFontDescriptor(descriptor: *mut OH_Drawing_FontDescriptor);
2743}
2744extern "C" {
2745    #[doc = " @brief Creates an <b>OH_Drawing_FontParser</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the font parser object <b>OH_Drawing_FontParser</b>.\n @since 12\n @version 1.0"]
2746    pub fn OH_Drawing_CreateFontParser() -> *mut OH_Drawing_FontParser;
2747}
2748extern "C" {
2749    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_FontParser</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param parser Indicates the pointer to the font parser object <b>OH_Drawing_FontParser</b>.\n @since 12\n @version 1.0"]
2750    pub fn OH_Drawing_DestroyFontParser(parser: *mut OH_Drawing_FontParser);
2751}
2752extern "C" {
2753    #[doc = " @brief Gets a list of system font names.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontParser Indicates the pointer to the font parser object <b>OH_Drawing_FontParser</b>.\n @param num Returns the number of obtained system font names.\n @return Returns a list of obtained system fonts.\n @since 12\n @version 1.0"]
2754    pub fn OH_Drawing_FontParserGetSystemFontList(
2755        fontParser: *mut OH_Drawing_FontParser,
2756        num: *mut usize,
2757    ) -> *mut *mut ::std::os::raw::c_char;
2758}
2759extern "C" {
2760    #[doc = " @brief Releases the memory occupied by a list of system font names.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontList Indicates the pointer to a list of system font names.\n @param num The number of obtained system font names.\n @since 12\n @version 1.0"]
2761    pub fn OH_Drawing_DestroySystemFontList(fontList: *mut *mut ::std::os::raw::c_char, num: usize);
2762}
2763extern "C" {
2764    #[doc = " @brief Gets information about the system font by font name.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontParser Indicates the pointer to the font parser object <b>OH_Drawing_FontParser</b>.\n @param name font name.\n @return Returns system fonts information.\n @since 12\n @version 1.0"]
2765    pub fn OH_Drawing_FontParserGetFontByName(
2766        fontParser: *mut OH_Drawing_FontParser,
2767        name: *const ::std::os::raw::c_char,
2768    ) -> *mut OH_Drawing_FontDescriptor;
2769}
2770extern "C" {
2771    #[doc = " @brief Get line metrics information.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to a typography object <b>OH_Drawing_Typography</b>.\n @return Indicates the pointer to a line metrics object <b>OH_Drawing_LineMetrics</b>.\n @since 12\n @version 1.0"]
2772    pub fn OH_Drawing_TypographyGetLineMetrics(
2773        typography: *mut OH_Drawing_Typography,
2774    ) -> *mut OH_Drawing_LineMetrics;
2775}
2776extern "C" {
2777    #[doc = " @brief Get the number of lines.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param lineMetrics Indicates the pointer to a line metrics object <b>OH_Drawing_LineMetrics</b>.\n @return Returns the number of lines.\n @since 12\n @version 1.0"]
2778    pub fn OH_Drawing_LineMetricsGetSize(lineMetrics: *mut OH_Drawing_LineMetrics) -> usize;
2779}
2780extern "C" {
2781    #[doc = " @brief Releases the memory occupied by line metrics.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param lineMetrics Indicates the pointer to a line metrics object <b>OH_Drawing_LineMetrics</b>.\n @since 12\n @version 1.0"]
2782    pub fn OH_Drawing_DestroyLineMetrics(lineMetrics: *mut OH_Drawing_LineMetrics);
2783}
2784extern "C" {
2785    #[doc = " @brief Gets the specified line by line number.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to a typography object <b>OH_Drawing_Typography</b>.\n @param lineNumber Line number.\n @param lineMetric Indicates the pointer to a line metrics object <b>OH_Drawing_LineMetrics</b>.\n @return Whether the line metrics was obtained.\n @since 12\n @version 1.0"]
2786    pub fn OH_Drawing_TypographyGetLineMetricsAt(
2787        typography: *mut OH_Drawing_Typography,
2788        lineNumber: ::std::os::raw::c_int,
2789        lineMetric: *mut OH_Drawing_LineMetrics,
2790    ) -> bool;
2791}
2792extern "C" {
2793    #[doc = " @brief  Sets the ellipsis of lines in a text file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography object <b>OH_Drawing_Typography</b>.\n @param ellipsis Indicates the line textellipsis.\n @since 12\n @version 1.0"]
2794    pub fn OH_Drawing_SetTypographyTextEllipsis(
2795        style: *mut OH_Drawing_TypographyStyle,
2796        ellipsis: *const ::std::os::raw::c_char,
2797    );
2798}
2799extern "C" {
2800    #[doc = " @brief Sets the locale of lines in a text file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param locale Indicates the pointer to the locale to set.\n @since 12\n @version 1.0"]
2801    pub fn OH_Drawing_SetTypographyTextLocale(
2802        style: *mut OH_Drawing_TypographyStyle,
2803        locale: *const ::std::os::raw::c_char,
2804    );
2805}
2806extern "C" {
2807    #[doc = " @brief Sets the textSplitRatio of lines in a text file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param textSplitRatio Indicates the textSplitRatio of lines to set.\n @since 12\n @version 1.0"]
2808    pub fn OH_Drawing_SetTypographyTextSplitRatio(
2809        style: *mut OH_Drawing_TypographyStyle,
2810        textSplitRatio: f32,
2811    );
2812}
2813extern "C" {
2814    #[doc = " @brief Gets the TextStyle of lines in a text file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Returns line text textstyle.\n @since 12\n @version 1.0"]
2815    pub fn OH_Drawing_TypographyGetTextStyle(
2816        style: *mut OH_Drawing_TypographyStyle,
2817    ) -> *mut OH_Drawing_TextStyle;
2818}
2819extern "C" {
2820    #[doc = " @brief Gets the EffectiveAlign of lines in a text file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Returns line text align.\n @since 12\n @version 1.0\n @deprecated since 18\n @useinstead OH_Drawing_TypographyStyleGetEffectiveAlignment"]
2821    pub fn OH_Drawing_TypographyGetEffectiveAlignment(
2822        style: *mut OH_Drawing_TypographyStyle,
2823    ) -> ::std::os::raw::c_int;
2824}
2825extern "C" {
2826    #[doc = " @brief Gets the UnlimitedLines of lines in a text file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Returns whether the text has a maximum line limit,\n with true indicating a maximum line limit and false indicating no maximum line limit.\n @since 12\n @version 1.0"]
2827    pub fn OH_Drawing_TypographyIsLineUnlimited(style: *mut OH_Drawing_TypographyStyle) -> bool;
2828}
2829extern "C" {
2830    #[doc = " @brief Gets the IsEllipsized of lines in a text file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Returns whether the text has ellipsis,\n true meaning there is an ellipsis and false meaning there is no ellipsis.\n @since 12\n @version 1.0"]
2831    pub fn OH_Drawing_TypographyIsEllipsized(style: *mut OH_Drawing_TypographyStyle) -> bool;
2832}
2833extern "C" {
2834    #[doc = " @brief set line textstyle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @since 12\n @version 1.0"]
2835    pub fn OH_Drawing_SetTypographyTextStyle(
2836        handler: *mut OH_Drawing_TypographyStyle,
2837        style: *mut OH_Drawing_TextStyle,
2838    );
2839}
2840extern "C" {
2841    #[doc = " @brief get line fontmetrics.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to a typography object <b>OH_Drawing_Typography</b>.\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param fontmetrics Indicates the pointer to a font metrics object <b>OH_Drawing_Font_Metrics</b>.\n @return Whether the font metrics was obtained.\n @since 12\n @version 1.0"]
2842    pub fn OH_Drawing_TextStyleGetFontMetrics(
2843        typography: *mut OH_Drawing_Typography,
2844        style: *mut OH_Drawing_TextStyle,
2845        fontmetrics: *mut OH_Drawing_Font_Metrics,
2846    ) -> bool;
2847}
2848extern "C" {
2849    #[doc = " @brief Gets the position of the specified line or the first text of the specified line.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to a typography object <b>OH_Drawing_Typography</b>.\n @param lineNumber Line number.\n @param oneLine True is the information for the whole line, and false is the information to get the first character\n @param includeWhitespace Whether the text width contains whitespace.\n @param drawingLineMetrics Indicates the pointer to a line metrics object <b>OH_Drawing_LineMetrics</b>.\n @return return whether the information was successfully fetched.\n @since 12\n @version 1.0"]
2850    pub fn OH_Drawing_TypographyGetLineInfo(
2851        typography: *mut OH_Drawing_Typography,
2852        lineNumber: ::std::os::raw::c_int,
2853        oneLine: bool,
2854        includeWhitespace: bool,
2855        drawingLineMetrics: *mut OH_Drawing_LineMetrics,
2856    ) -> bool;
2857}
2858extern "C" {
2859    #[doc = " @brief Sets the font weight of text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param weight Indicates the font weight of text typography to set. For details,\n see the enum <b>OH_Drawing_FontWeight</b>.\n @since 12\n @version 1.0"]
2860    pub fn OH_Drawing_SetTypographyTextFontWeight(
2861        style: *mut OH_Drawing_TypographyStyle,
2862        weight: ::std::os::raw::c_int,
2863    );
2864}
2865extern "C" {
2866    #[doc = " @brief Sets the font style of text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param fontStyle Indicates the font style of text typography to set. For details,\n see the enum <b>OH_Drawing_FontStyle</b>.\n @since 12\n @version 1.0"]
2867    pub fn OH_Drawing_SetTypographyTextFontStyle(
2868        style: *mut OH_Drawing_TypographyStyle,
2869        fontStyle: ::std::os::raw::c_int,
2870    );
2871}
2872extern "C" {
2873    #[doc = " @brief Sets the font family of text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param fontFamily Indicates the pointer to the font family of text typography to set.\n @since 12\n @version 1.0"]
2874    pub fn OH_Drawing_SetTypographyTextFontFamily(
2875        style: *mut OH_Drawing_TypographyStyle,
2876        fontFamily: *const ::std::os::raw::c_char,
2877    );
2878}
2879extern "C" {
2880    #[doc = " @brief Sets the font size of text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param fontSize Indicates the font size of text typography to set.\n @since 12\n @version 1.0"]
2881    pub fn OH_Drawing_SetTypographyTextFontSize(
2882        style: *mut OH_Drawing_TypographyStyle,
2883        fontSize: f64,
2884    );
2885}
2886extern "C" {
2887    #[doc = " @brief Sets the font height of text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param fontHeight Indicates the font height of text typography to set.\n @since 12\n @version 1.0"]
2888    pub fn OH_Drawing_SetTypographyTextFontHeight(
2889        style: *mut OH_Drawing_TypographyStyle,
2890        fontHeight: f64,
2891    );
2892}
2893extern "C" {
2894    #[doc = " @brief Sets the half leading of text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param halfLeading Indicates the half leading of text typography to set.\n @since 12\n @version 1.0"]
2895    pub fn OH_Drawing_SetTypographyTextHalfLeading(
2896        style: *mut OH_Drawing_TypographyStyle,
2897        halfLeading: bool,
2898    );
2899}
2900extern "C" {
2901    #[doc = " @brief Sets whether to enable line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param useLineStyle Indicates whether the line style for text typography is used.\n @since 12\n @version 1.0"]
2902    pub fn OH_Drawing_SetTypographyTextUseLineStyle(
2903        style: *mut OH_Drawing_TypographyStyle,
2904        useLineStyle: bool,
2905    );
2906}
2907extern "C" {
2908    #[doc = " @brief Sets the font weight of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param weight Indicates the font weight of line style for text typography to set.\n For details, see the enum <b>OH_Drawing_FontWeight</b>.\n @since 12\n @version 1.0"]
2909    pub fn OH_Drawing_SetTypographyTextLineStyleFontWeight(
2910        style: *mut OH_Drawing_TypographyStyle,
2911        weight: ::std::os::raw::c_int,
2912    );
2913}
2914extern "C" {
2915    #[doc = " @brief Sets the font style of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param fontStyle Indicates the font style of line style for text typography to set. For details,\n see the enum <b>OH_Drawing_FontStyle</b>.\n @since 12\n @version 1.0"]
2916    pub fn OH_Drawing_SetTypographyTextLineStyleFontStyle(
2917        style: *mut OH_Drawing_TypographyStyle,
2918        fontStyle: ::std::os::raw::c_int,
2919    );
2920}
2921extern "C" {
2922    #[doc = " @brief Sets the font families of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param fontFamiliesNumber Indicates the number of font families to set.\n @param fontFamilies Indicates the pointer to the font families of line style for text typography to set.\n @since 12\n @version 1.0"]
2923    pub fn OH_Drawing_SetTypographyTextLineStyleFontFamilies(
2924        style: *mut OH_Drawing_TypographyStyle,
2925        fontFamiliesNumber: ::std::os::raw::c_int,
2926        fontFamilies: *mut *const ::std::os::raw::c_char,
2927    );
2928}
2929extern "C" {
2930    #[doc = " @brief Sets the font size of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param lineStyleFontSize Indicates the font size of line style for text typography to set.\n @since 12\n @version 1.0"]
2931    pub fn OH_Drawing_SetTypographyTextLineStyleFontSize(
2932        style: *mut OH_Drawing_TypographyStyle,
2933        lineStyleFontSize: f64,
2934    );
2935}
2936extern "C" {
2937    #[doc = " @brief Sets the font height of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param lineStyleFontHeight Indicates the font height of line style for text typography to set.\n @since 12\n @version 1.0"]
2938    pub fn OH_Drawing_SetTypographyTextLineStyleFontHeight(
2939        style: *mut OH_Drawing_TypographyStyle,
2940        lineStyleFontHeight: f64,
2941    );
2942}
2943extern "C" {
2944    #[doc = " @brief Sets the half leading of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param lineStyleHalfLeading Indicates the half leading of line for text typography to set.\n @since 12\n @version 1.0"]
2945    pub fn OH_Drawing_SetTypographyTextLineStyleHalfLeading(
2946        style: *mut OH_Drawing_TypographyStyle,
2947        lineStyleHalfLeading: bool,
2948    );
2949}
2950extern "C" {
2951    #[doc = " @brief Sets the spacing scale of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param spacingScale Indicates the space scale of line for text typography to set.\n @since 12\n @version 1.0"]
2952    pub fn OH_Drawing_SetTypographyTextLineStyleSpacingScale(
2953        style: *mut OH_Drawing_TypographyStyle,
2954        spacingScale: f64,
2955    );
2956}
2957extern "C" {
2958    #[doc = " @brief Sets whether only line style is enabled for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param lineStyleOnly Indicates the line style for text typography to set only.\n @since 12\n @version 1.0"]
2959    pub fn OH_Drawing_SetTypographyTextLineStyleOnly(
2960        style: *mut OH_Drawing_TypographyStyle,
2961        lineStyleOnly: bool,
2962    );
2963}
2964extern "C" {
2965    #[doc = " @brief Creates an <b>OH_Drawing_TextShadow</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the text shadow object created <b>OH_Drawing_TextShadow</b>.\n @since 12\n @version 1.0"]
2966    pub fn OH_Drawing_CreateTextShadow() -> *mut OH_Drawing_TextShadow;
2967}
2968extern "C" {
2969    #[doc = " @brief Releases the memory occupied by the text shadow object <b>OH_Drawing_TextShadow</b>.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param shadow Indicates the pointer to the text shadow object <b>OH_Drawing_TextShadow</b>.\n @since 12\n @version 1.0"]
2970    pub fn OH_Drawing_DestroyTextShadow(shadow: *mut OH_Drawing_TextShadow);
2971}
2972extern "C" {
2973    #[doc = " @brief Gets the vector of TextShadow in TextStyle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param int Indicates the number in vector to set.\n @param style Indicates the pointer to the text shadow object <b>OH_Drawing_TextShadow</b>.\n @return Returns the vector of TextShadow.\n @since 12\n @version 1.0"]
2974    pub fn OH_Drawing_TextStyleGetShadows(
2975        style: *mut OH_Drawing_TextStyle,
2976    ) -> *mut OH_Drawing_TextShadow;
2977}
2978extern "C" {
2979    #[doc = " @brief Gets the size of vector of TextShadow in TextStyle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @return Returns the size of vector.\n @since 12\n @version 1.0"]
2980    pub fn OH_Drawing_TextStyleGetShadowCount(
2981        style: *mut OH_Drawing_TextStyle,
2982    ) -> ::std::os::raw::c_int;
2983}
2984extern "C" {
2985    #[doc = " @brief Adds element in vector of TextShadow in TextStyle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param shadow Indicates the pointer to the text shadow object <b>OH_Drawing_TextShadow</b>.\n @since 12\n @version 1.0"]
2986    pub fn OH_Drawing_TextStyleAddShadow(
2987        style: *mut OH_Drawing_TextStyle,
2988        shadow: *const OH_Drawing_TextShadow,
2989    );
2990}
2991extern "C" {
2992    #[doc = " @brief clear elements in vector of TextShadow in TextStyle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @since 12\n @version 1.0"]
2993    pub fn OH_Drawing_TextStyleClearShadows(style: *mut OH_Drawing_TextStyle);
2994}
2995extern "C" {
2996    #[doc = " @brief Gets element in vector of TextShadow with index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a text style object <b>OH_Drawing_TextStyle</b>.\n @param index Indicates the index to set.\n @return Returns the pointer to element with the index in vector of the text style object\n <b>OH_Drawing_TextStyle</b>.\n @since 12\n @version 1.0"]
2997    pub fn OH_Drawing_TextStyleGetShadowWithIndex(
2998        style: *mut OH_Drawing_TextStyle,
2999        index: ::std::os::raw::c_int,
3000    ) -> *mut OH_Drawing_TextShadow;
3001}
3002extern "C" {
3003    #[doc = " @brief Set indents of the typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to a typography object <b>OH_Drawing_Typography</b>.\n @param indentsNumber Indicates the pointer to the indents to set.\n @param indents Indicates the pointer to the indents to set.\n @since 12\n @version 1.0"]
3004    pub fn OH_Drawing_TypographySetIndents(
3005        typography: *mut OH_Drawing_Typography,
3006        indentsNumber: ::std::os::raw::c_int,
3007        indents: *const f32,
3008    );
3009}
3010extern "C" {
3011    #[doc = " @brief Gets element with index in vector of Indents.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to a typography object <b>OH_Drawing_Typography</b>.\n @param index Indicates the index to set.\n @return float Indicates the element with the index in vector of Indents.\n @since 12\n @version 1.0"]
3012    pub fn OH_Drawing_TypographyGetIndentsWithIndex(
3013        typography: *mut OH_Drawing_Typography,
3014        index: ::std::os::raw::c_int,
3015    ) -> f32;
3016}
3017extern "C" {
3018    #[doc = " @brief Releases the memory occupied by vector with the text shadow object <b>OH_Drawing_TextShadow</b>.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param shadow the pointer to the text shadow object <b>OH_Drawing_TextShadow</b>.\n @since 12\n @version 1.0"]
3019    pub fn OH_Drawing_DestroyTextShadows(shadow: *mut OH_Drawing_TextShadow);
3020}
3021extern "C" {
3022    #[doc = " @brief Set mode of applying the leading over and under text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param heightMode Indicates the mode to set.\n @since 12\n @version 1.0"]
3023    pub fn OH_Drawing_TypographyTextSetHeightBehavior(
3024        style: *mut OH_Drawing_TypographyStyle,
3025        heightMode: OH_Drawing_TextHeightBehavior,
3026    );
3027}
3028extern "C" {
3029    #[doc = " @brief Get mode of applying the leading over and under text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @return Returns the mode.\n @since 12\n @version 1.0"]
3030    pub fn OH_Drawing_TypographyTextGetHeightBehavior(
3031        style: *mut OH_Drawing_TypographyStyle,
3032    ) -> OH_Drawing_TextHeightBehavior;
3033}
3034extern "C" {
3035    #[doc = " @brief Set struct of background rect and styleId of text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param rectStyleInfo Indicates the pointer to an <b>OH_Drawing_RectStyle_Info</b> object.\n @param styleId Indicates the styleId of text to set.\n @since 12\n @version 1.0"]
3036    pub fn OH_Drawing_TextStyleSetBackgroundRect(
3037        style: *mut OH_Drawing_TextStyle,
3038        rectStyleInfo: *const OH_Drawing_RectStyle_Info,
3039        styleId: ::std::os::raw::c_int,
3040    );
3041}
3042extern "C" {
3043    #[doc = " @brief Add symbols in creating typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @param symbol Indicates the symbol to set.\n @since 12\n @version 1.0"]
3044    pub fn OH_Drawing_TypographyHandlerAddSymbol(
3045        handler: *mut OH_Drawing_TypographyCreate,
3046        symbol: u32,
3047    );
3048}
3049extern "C" {
3050    #[doc = " @brief Add font feature.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param tag Indicates the pointer to the tag to set.\n @param value Indicates the value to set.\n @since 12\n @version 1.0"]
3051    pub fn OH_Drawing_TextStyleAddFontFeature(
3052        style: *mut OH_Drawing_TextStyle,
3053        tag: *const ::std::os::raw::c_char,
3054        value: ::std::os::raw::c_int,
3055    );
3056}
3057extern "C" {
3058    #[doc = " @brief Add font variation.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param axis Indicates the pointer to font variation axis.\n @param value Indicates the font variation value to set.\n @since 12\n @version 1.0"]
3059    pub fn OH_Drawing_TextStyleAddFontVariation(
3060        style: *mut OH_Drawing_TextStyle,
3061        axis: *const ::std::os::raw::c_char,
3062        value: f32,
3063    );
3064}
3065extern "C" {
3066    #[doc = " @brief Get all font features.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return OH_Drawing_FontFeature Indicates the pointer to an array of structures of OH_Drawing_FontFeature.\n Get size of font feature by OH_Drawing_TextStyleGetFontFeatureSize.\n @since 12\n @version 1.0"]
3067    pub fn OH_Drawing_TextStyleGetFontFeatures(
3068        style: *mut OH_Drawing_TextStyle,
3069    ) -> *mut OH_Drawing_FontFeature;
3070}
3071extern "C" {
3072    #[doc = " @brief Release the memory occupied by array of structures of font features.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontFeature Indicates the pointer to an array of structures of OH_Drawing_FontFeature.\n @param fontFeatureSize Indicates the size of array of structures of OH_Drawing_FontFeature.\n @since 12\n @version 1.0"]
3073    pub fn OH_Drawing_TextStyleDestroyFontFeatures(
3074        fontFeature: *mut OH_Drawing_FontFeature,
3075        fontFeatureSize: usize,
3076    );
3077}
3078extern "C" {
3079    #[doc = " @brief Get size of font features.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns the size of fontfeatures map.\n @since 12\n @version 1.0"]
3080    pub fn OH_Drawing_TextStyleGetFontFeatureSize(style: *mut OH_Drawing_TextStyle) -> usize;
3081}
3082extern "C" {
3083    #[doc = " @brief Clear font features.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @since 12\n @version 1.0"]
3084    pub fn OH_Drawing_TextStyleClearFontFeature(style: *mut OH_Drawing_TextStyle);
3085}
3086extern "C" {
3087    #[doc = " @brief Set baseline shift of text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param lineShift Indicates the baseline shift to set.\n @since 12\n @version 1.0"]
3088    pub fn OH_Drawing_TextStyleSetBaselineShift(style: *mut OH_Drawing_TextStyle, lineShift: f64);
3089}
3090extern "C" {
3091    #[doc = " @brief Get baseline shift of text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns the baseline shift.\n @since 12\n @version 1.0"]
3092    pub fn OH_Drawing_TextStyleGetBaselineShift(style: *mut OH_Drawing_TextStyle) -> f64;
3093}
3094extern "C" {
3095    #[doc = " @brief Gets the text color.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns the text color.\n @since 12\n @version 1.0"]
3096    pub fn OH_Drawing_TextStyleGetColor(style: *mut OH_Drawing_TextStyle) -> u32;
3097}
3098extern "C" {
3099    #[doc = " @brief Gets text decoration style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns text decoration style.\n @since 12\n @version 1.0"]
3100    pub fn OH_Drawing_TextStyleGetDecorationStyle(
3101        style: *mut OH_Drawing_TextStyle,
3102    ) -> OH_Drawing_TextDecorationStyle;
3103}
3104extern "C" {
3105    #[doc = " @brief Gets font weight.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns font Weight.\n @since 12\n @version 1.0"]
3106    pub fn OH_Drawing_TextStyleGetFontWeight(
3107        style: *mut OH_Drawing_TextStyle,
3108    ) -> OH_Drawing_FontWeight;
3109}
3110extern "C" {
3111    #[doc = " @brief Gets font style.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns font style.\n @since 12\n @version 1.0"]
3112    pub fn OH_Drawing_TextStyleGetFontStyle(
3113        style: *mut OH_Drawing_TextStyle,
3114    ) -> OH_Drawing_FontStyle;
3115}
3116extern "C" {
3117    #[doc = " @brief Gets the font baseline.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns the font baseline.\n @since 12\n @version 1.0"]
3118    pub fn OH_Drawing_TextStyleGetBaseline(
3119        style: *mut OH_Drawing_TextStyle,
3120    ) -> OH_Drawing_TextBaseline;
3121}
3122extern "C" {
3123    #[doc = " @brief Gets a list of font families.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param num Indicates count of font families result.\n @return Returns a list of font families.\n @since 12\n @version 1.0"]
3124    pub fn OH_Drawing_TextStyleGetFontFamilies(
3125        style: *mut OH_Drawing_TextStyle,
3126        num: *mut usize,
3127    ) -> *mut *mut ::std::os::raw::c_char;
3128}
3129extern "C" {
3130    #[doc = " @brief Releases the memory occupied by a list of font families.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontFamilies Indicates the pointer to a list of font families.\n @param num Indicates the count of obtained font families.\n @since 12\n @version 1.0"]
3131    pub fn OH_Drawing_TextStyleDestroyFontFamilies(
3132        fontFamilies: *mut *mut ::std::os::raw::c_char,
3133        num: usize,
3134    );
3135}
3136extern "C" {
3137    #[doc = " @brief Gets font size.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns font size.\n @since 12\n @version 1.0"]
3138    pub fn OH_Drawing_TextStyleGetFontSize(style: *mut OH_Drawing_TextStyle) -> f64;
3139}
3140extern "C" {
3141    #[doc = " @brief Gets the letter spacing of the text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns the size of the letter spacing.\n @since 12\n @version 1.0"]
3142    pub fn OH_Drawing_TextStyleGetLetterSpacing(style: *mut OH_Drawing_TextStyle) -> f64;
3143}
3144extern "C" {
3145    #[doc = " @brief Gets the word spacing of the text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns word spacing size.\n @since 12\n @version 1.0"]
3146    pub fn OH_Drawing_TextStyleGetWordSpacing(style: *mut OH_Drawing_TextStyle) -> f64;
3147}
3148extern "C" {
3149    #[doc = " @brief Gets font height.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns font height.\n @since 12\n @version 1.0"]
3150    pub fn OH_Drawing_TextStyleGetFontHeight(style: *mut OH_Drawing_TextStyle) -> f64;
3151}
3152extern "C" {
3153    #[doc = " @brief Gets whether to set the text to half line spacing.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns true indicates that the spacing takes effect,\n false indicates that the spacing does not take effect.\n @since 12\n @version 1.0"]
3154    pub fn OH_Drawing_TextStyleGetHalfLeading(style: *mut OH_Drawing_TextStyle) -> bool;
3155}
3156extern "C" {
3157    #[doc = " @brief Sets the typography vertical alignment mode.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param align Indicates the typography vertical alignment mode. For details,\n see the enum <b>OH_Drawing_TextVerticalAlignment</b>.\n @since 20\n @version 1.0"]
3158    #[cfg(feature = "api-20")]
3159    pub fn OH_Drawing_SetTypographyVerticalAlignment(
3160        style: *mut OH_Drawing_TypographyStyle,
3161        align: OH_Drawing_TextVerticalAlignment,
3162    );
3163}
3164extern "C" {
3165    #[doc = " @brief Gets the locale.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns a locale of data type as a pointer to a char. As with the TextStyle lifecycle.\n No release is required and the return value is invalidated after the set method is called.\n @since 12\n @version 1.0"]
3166    pub fn OH_Drawing_TextStyleGetLocale(
3167        style: *mut OH_Drawing_TextStyle,
3168    ) -> *const ::std::os::raw::c_char;
3169}
3170extern "C" {
3171    #[doc = " @brief Sets whether to use superscript or subscript in text layout.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Pointer to an OH_Drawing_TextStyle object.\n @param textBadgeType Superscript or subscript to use.\n @since 20"]
3172    #[cfg(feature = "api-20")]
3173    pub fn OH_Drawing_SetTextStyleBadgeType(
3174        style: *mut OH_Drawing_TextStyle,
3175        textBadgeType: OH_Drawing_TextBadgeType,
3176    );
3177}
3178extern "C" {
3179    #[doc = " @brief Sets the text style, including font weight, font width and font slant.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingTextStyle Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @param fontStyle Indicates an <b>OH_Drawing_FontStyleStruct</b> object.\n @since 12\n @version 1.0"]
3180    pub fn OH_Drawing_SetTextStyleFontStyleStruct(
3181        drawingTextStyle: *mut OH_Drawing_TextStyle,
3182        fontStyle: OH_Drawing_FontStyleStruct,
3183    );
3184}
3185extern "C" {
3186    #[doc = " @brief Gets the text style, including font weight, font width and font slant.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingTextStyle Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns the <b>OH_Drawing_FontStyleStruct</b> object getted.\n @since 12\n @version 1.0"]
3187    pub fn OH_Drawing_TextStyleGetFontStyleStruct(
3188        drawingTextStyle: *mut OH_Drawing_TextStyle,
3189    ) -> OH_Drawing_FontStyleStruct;
3190}
3191extern "C" {
3192    #[doc = " @brief Sets the typography style, including font weight, font width and font slant.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingStyle Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param fontStyle Indicates an <b>OH_Drawing_FontStyleStruct</b> object.\n @since 12\n @version 1.0"]
3193    pub fn OH_Drawing_SetTypographyStyleFontStyleStruct(
3194        drawingStyle: *mut OH_Drawing_TypographyStyle,
3195        fontStyle: OH_Drawing_FontStyleStruct,
3196    );
3197}
3198extern "C" {
3199    #[doc = " @brief Gets the typography style, including font weight, font width and font slant.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingStyle Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @return Returns the <b>OH_Drawing_FontStyleStruct</b> object getted.\n @since 12\n @version 1.0"]
3200    pub fn OH_Drawing_TypographyStyleGetFontStyleStruct(
3201        drawingStyle: *mut OH_Drawing_TypographyStyle,
3202    ) -> OH_Drawing_FontStyleStruct;
3203}
3204extern "C" {
3205    #[doc = " @brief Gets whether the two TextStyle objects are equal.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates source of comparison <b>OH_Drawing_TextStyle</b> object.\n @param comparedStyle Indicates comparison <b>OH_Drawing_TextStyle</b> object.\n @return Compare result.\n @since 12\n @version 1.0"]
3206    pub fn OH_Drawing_TextStyleIsEqual(
3207        style: *const OH_Drawing_TextStyle,
3208        comparedStyle: *const OH_Drawing_TextStyle,
3209    ) -> bool;
3210}
3211extern "C" {
3212    #[doc = " @brief Gets whether the font properties of two TextStyle objects are equal.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates source of <b>comparison OH_Drawing_TextStyle</b> object.\n @param comparedStyle Indicates comparison <b>OH_Drawing_TextStyle</b> object.\n @return Compare result.\n @since 12\n @version 1.0"]
3213    pub fn OH_Drawing_TextStyleIsEqualByFont(
3214        style: *const OH_Drawing_TextStyle,
3215        comparedStyle: *const OH_Drawing_TextStyle,
3216    ) -> bool;
3217}
3218extern "C" {
3219    #[doc = " @brief Gets whether two TextStyle objects match attributes\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates enumerates of text style type.\n @param comparedStyle Indicates source of comparison <b>OH_Drawing_TextStyle</b> object.\n @param textStyleType Indicates comparison <b>OH_Drawing_TextStyle</b> object.\n @return Match attributes result.\n @since 12\n @version 1.0"]
3220    pub fn OH_Drawing_TextStyleIsAttributeMatched(
3221        style: *const OH_Drawing_TextStyle,
3222        comparedStyle: *const OH_Drawing_TextStyle,
3223        textStyleType: OH_Drawing_TextStyleType,
3224    ) -> bool;
3225}
3226extern "C" {
3227    #[doc = " @brief Set placeholder of TextStyle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @since 12\n @version 1.0"]
3228    pub fn OH_Drawing_TextStyleSetPlaceholder(style: *mut OH_Drawing_TextStyle);
3229}
3230extern "C" {
3231    #[doc = " @brief Gets whether placeholder is enable.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Whether placeholder is enable.\n @since 12\n @version 1.0"]
3232    pub fn OH_Drawing_TextStyleIsPlaceholder(style: *mut OH_Drawing_TextStyle) -> bool;
3233}
3234extern "C" {
3235    #[doc = " @brief Gets text alignment mode.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @return Returns text alignment mode.\n @since 12\n @version 1.0"]
3236    pub fn OH_Drawing_TypographyStyleGetEffectiveAlignment(
3237        style: *mut OH_Drawing_TypographyStyle,
3238    ) -> OH_Drawing_TextAlign;
3239}
3240extern "C" {
3241    #[doc = " @brief Gets whether the hinting is enabled.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @return True, if the hinting takes effect; False, if the hinting does not take effect.\n @since 12\n @version 1.0"]
3242    pub fn OH_Drawing_TypographyStyleIsHintEnabled(style: *mut OH_Drawing_TypographyStyle) -> bool;
3243}
3244extern "C" {
3245    #[doc = " @brief Gets system font configuration information.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param errorCode Indicates error code returned, based on the error code to\n release the memory of system font configuration information.\n For details, see the enum <b>OH_Drawing_FontConfigInfoErrorCode</b>.\n @return Returns a pointer to system font configuration information.\n Indicates the pointer to an <b>OH_Drawing_FontConfigInfo</b> object.\n @since 12\n @version 1.0"]
3246    pub fn OH_Drawing_GetSystemFontConfigInfo(
3247        errorCode: *mut OH_Drawing_FontConfigInfoErrorCode,
3248    ) -> *mut OH_Drawing_FontConfigInfo;
3249}
3250extern "C" {
3251    #[doc = " @brief Releases the memory occupied by system font configuration information.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawFontCfgInfo Indicates the pointer to an <b>OH_Drawing_FontConfigInfo</b> object.\n @since 12\n @version 1.0"]
3252    pub fn OH_Drawing_DestroySystemFontConfigInfo(drawFontCfgInfo: *mut OH_Drawing_FontConfigInfo);
3253}
3254extern "C" {
3255    #[doc = " @brief Sets the strut style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param strutstyle Indicates the pointer of <b>OH_Drawing_StrutStyle</b> object.\n @since 12\n @version 1.0"]
3256    pub fn OH_Drawing_SetTypographyStyleTextStrutStyle(
3257        style: *mut OH_Drawing_TypographyStyle,
3258        strutstyle: *mut OH_Drawing_StrutStyle,
3259    );
3260}
3261extern "C" {
3262    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_StrutStyle</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param strutstyle Indicates the pointer of <b>OH_Drawing_StrutStyle</b> object.\n @since 12\n @version 1.0"]
3263    pub fn OH_Drawing_TypographyStyleDestroyStrutStyle(strutstyle: *mut OH_Drawing_StrutStyle);
3264}
3265extern "C" {
3266    #[doc = " @brief Gets the strut style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @return Returns the pointer of <b>OH_Drawing_StrutStyle</b> object.\n @since 12\n @version 1.0"]
3267    pub fn OH_Drawing_TypographyStyleGetStrutStyle(
3268        style: *mut OH_Drawing_TypographyStyle,
3269    ) -> *mut OH_Drawing_StrutStyle;
3270}
3271extern "C" {
3272    #[doc = " @brief Overriding the struct StrutStyle equals operator.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param from Indicates source of comparison object.\n @param to Indicates comparison object.\n @since 12\n @version 1.0"]
3273    pub fn OH_Drawing_TypographyStyleStrutStyleEquals(
3274        from: *mut OH_Drawing_StrutStyle,
3275        to: *mut OH_Drawing_StrutStyle,
3276    ) -> bool;
3277}
3278extern "C" {
3279    #[doc = " @brief Sets the hinting of text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param hintsEnabled Indicates the hinting of text typography..\n @since 12\n @version 1.0"]
3280    pub fn OH_Drawing_TypographyStyleSetHintsEnabled(
3281        style: *mut OH_Drawing_TypographyStyle,
3282        hintsEnabled: bool,
3283    );
3284}
3285extern "C" {
3286    #[doc = " @brief Getting all font metrics from target row.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates a pointer to a typesetting object.\n @param lineNumber Indicates specifies the number of rows.\n @param fontMetricsSize Indicates the return size of font metrics struct from current line.\n @return Returns all character measures for the current row.\n @since 12\n @version 1.0"]
3287    pub fn OH_Drawing_TypographyGetLineFontMetrics(
3288        typography: *mut OH_Drawing_Typography,
3289        lineNumber: usize,
3290        fontMetricsSize: *mut usize,
3291    ) -> *mut OH_Drawing_Font_Metrics;
3292}
3293extern "C" {
3294    #[doc = " @brief Free up all the space taken up by the lineFontMetric.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param lineFontMetric Indicates the first address of the lineFontMetric gather to be destroyed.\n @since 12\n @version 1.0"]
3295    pub fn OH_Drawing_TypographyDestroyLineFontMetrics(
3296        lineFontMetric: *mut OH_Drawing_Font_Metrics,
3297    );
3298}
3299extern "C" {
3300    #[doc = " @brief Mark the Typography as dirty, and initially state the Typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to the text <b>OH_Drawing_Typography</b> object.\n @since 12\n @version 1.0"]
3301    pub fn OH_Drawing_TypographyMarkDirty(typography: *mut OH_Drawing_Typography);
3302}
3303extern "C" {
3304    #[doc = " @brief Get the unresolved Glyphs count of lines in a text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to the text <b>OH_Drawing_Typography</b> object.\n @return Returns unresolved Glyphs count.\n @since 12\n @version 1.0"]
3305    pub fn OH_Drawing_TypographyGetUnresolvedGlyphsCount(
3306        typography: *mut OH_Drawing_Typography,
3307    ) -> i32;
3308}
3309extern "C" {
3310    #[doc = " @brief Update the font size of lines in a text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to the text <b>OH_Drawing_Typography</b> object.\n @param from Indicates the source of the original font size.\n @param to Indicates the destination of the updated font size.\n @param fontSize Indicates the size of the font.\n @since 12\n @version 1.0"]
3311    pub fn OH_Drawing_TypographyUpdateFontSize(
3312        typography: *mut OH_Drawing_Typography,
3313        from: usize,
3314        to: usize,
3315        fontSize: f32,
3316    );
3317}
3318extern "C" {
3319    #[doc = " @brief Update the font color of the typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to the text <b>OH_Drawing_Typography</b> object.\n @param color Indicates the color to update.\n @since 20\n @version 1.0"]
3320    #[cfg(feature = "api-20")]
3321    pub fn OH_Drawing_TypographyUpdateFontColor(typography: *mut OH_Drawing_Typography, color: u32);
3322}
3323extern "C" {
3324    #[doc = " @brief Update the decoration of the typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to the text <b>OH_Drawing_Typography</b> object.\n @param decoration Indicates the text decoration to update. For details, see the enum\n <b>OH_Drawing_TextDecoration</b>.\n @since 20\n @version 1.0"]
3325    #[cfg(feature = "api-20")]
3326    pub fn OH_Drawing_TypographyUpdateDecoration(
3327        typography: *mut OH_Drawing_Typography,
3328        decoration: OH_Drawing_TextDecoration,
3329    );
3330}
3331extern "C" {
3332    #[doc = " @brief Update the decoration thickness scale of the typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to the text <b>OH_Drawing_Typography</b> object.\n @param decorationThicknessScale Indicates the thickness scale of the text decoration to update.\n @since 20\n @version 1.0"]
3333    #[cfg(feature = "api-20")]
3334    pub fn OH_Drawing_TypographyUpdateDecorationThicknessScale(
3335        typography: *mut OH_Drawing_Typography,
3336        decorationThicknessScale: f64,
3337    );
3338}
3339extern "C" {
3340    #[doc = " @brief Update the decoration style of the typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to the text <b>OH_Drawing_Typography</b> object.\n @param decorationStyle Indicates the text decoration style to update.\n For details, see the enum <b>OH_Drawing_TextDecorationStyle</b>.\n @since 20\n @version 1.0"]
3341    #[cfg(feature = "api-20")]
3342    pub fn OH_Drawing_TypographyUpdateDecorationStyle(
3343        typography: *mut OH_Drawing_Typography,
3344        decorationStyle: OH_Drawing_TextDecorationStyle,
3345    );
3346}
3347extern "C" {
3348    #[doc = " @brief Updates the decoration color of the paragraph.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to the text <b>OH_Drawing_Typography</b> object.\n @param color Indicates the text decoration color to update.\n @since 20\n @version 1.0"]
3349    #[cfg(feature = "api-20")]
3350    pub fn OH_Drawing_TypographyUpdateDecorationColor(
3351        typography: *mut OH_Drawing_Typography,
3352        color: u32,
3353    );
3354}
3355extern "C" {
3356    #[doc = " @brief Get whether the text layout enables line styles.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to the text <b>OH_Drawing_TypographyStyle</b> object.\n @return Whether or not to enable line styles in text layout only, true means enable, false means disable.\n @since 12\n @version 1.0"]
3357    pub fn OH_Drawing_TypographyTextGetLineStyle(style: *mut OH_Drawing_TypographyStyle) -> bool;
3358}
3359extern "C" {
3360    #[doc = " @brief Get the font weight of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Return the font weight of line style for text typography.\n For details, see the enum <b>OH_Drawing_FontWeight</b>.\n @since 12\n @version 1.0"]
3361    pub fn OH_Drawing_TypographyTextlineStyleGetFontWeight(
3362        style: *mut OH_Drawing_TypographyStyle,
3363    ) -> OH_Drawing_FontWeight;
3364}
3365extern "C" {
3366    #[doc = " @brief Get the font style of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Return the font style of line style for text typography.\n For details, see the enum <b>OH_Drawing_FontStyle</b>.\n @since 12\n @version 1.0"]
3367    pub fn OH_Drawing_TypographyTextlineStyleGetFontStyle(
3368        style: *mut OH_Drawing_TypographyStyle,
3369    ) -> OH_Drawing_FontStyle;
3370}
3371extern "C" {
3372    #[doc = " @brief Get the font families of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @param num The number of obtained font names.\n @return Return the font families of line style for text typography.\n @since 12\n @version 1.0"]
3373    pub fn OH_Drawing_TypographyTextlineStyleGetFontFamilies(
3374        style: *mut OH_Drawing_TypographyStyle,
3375        num: *mut usize,
3376    ) -> *mut *mut ::std::os::raw::c_char;
3377}
3378extern "C" {
3379    #[doc = " @brief Releases the memory occupied by a list of font families names.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontFamilies Indicates the pointer to a list of font families names.\n @param fontFamiliesNum Indicates the number of obtained font names.\n @since 12\n @version 1.0"]
3380    pub fn OH_Drawing_TypographyTextlineStyleDestroyFontFamilies(
3381        fontFamilies: *mut *mut ::std::os::raw::c_char,
3382        fontFamiliesNum: usize,
3383    );
3384}
3385extern "C" {
3386    #[doc = " @brief Get the font size of font size for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Return the font size of font size for text typography.\n @since 12\n @version 1.0"]
3387    pub fn OH_Drawing_TypographyTextlineStyleGetFontSize(
3388        style: *mut OH_Drawing_TypographyStyle,
3389    ) -> f64;
3390}
3391extern "C" {
3392    #[doc = " @brief Get the font height scale in text layout.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Retrun the font height scale in text layout.\n @since 12\n @version 1.0"]
3393    pub fn OH_Drawing_TypographyTextlineStyleGetHeightScale(
3394        style: *mut OH_Drawing_TypographyStyle,
3395    ) -> f64;
3396}
3397extern "C" {
3398    #[doc = " @brief Get whether to enable font height for line styles in text layout only.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Whether or not to enable the font height for line styles in text layout only,\n true means enable, false means disable.\n @since 12\n @version 1.0"]
3399    pub fn OH_Drawing_TypographyTextlineStyleGetHeightOnly(
3400        style: *mut OH_Drawing_TypographyStyle,
3401    ) -> bool;
3402}
3403extern "C" {
3404    #[doc = " @brief Get the half leading of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Whether to enable the text line half leading style, true means enable, false means disable.\n @since 12\n @version 1.0"]
3405    pub fn OH_Drawing_TypographyTextlineStyleGetHalfLeading(
3406        style: *mut OH_Drawing_TypographyStyle,
3407    ) -> bool;
3408}
3409extern "C" {
3410    #[doc = " @brief Get the spacing scale of line style for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Return the spacing scale of line style for text typography.\n @since 12\n @version 1.0"]
3411    pub fn OH_Drawing_TypographyTextlineStyleGetSpacingScale(
3412        style: *mut OH_Drawing_TypographyStyle,
3413    ) -> f64;
3414}
3415extern "C" {
3416    #[doc = " @brief Get whether only line style is enabled for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Returns whether only line style is enabled for text layout, true means it is enabled,\n false means it is not.\n @since 12\n @version 1.0"]
3417    pub fn OH_Drawing_TypographyTextlineGetStyleOnly(
3418        style: *mut OH_Drawing_TypographyStyle,
3419    ) -> bool;
3420}
3421extern "C" {
3422    #[doc = " @brief Get the text alignment mode.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Return the text alignment mode. For details, see the enum <b>OH_Drawing_TextAlign</b>.\n @since 12\n @version 1.0"]
3423    pub fn OH_Drawing_TypographyGetTextAlign(
3424        style: *mut OH_Drawing_TypographyStyle,
3425    ) -> OH_Drawing_TextAlign;
3426}
3427extern "C" {
3428    #[doc = " @brief Get the text direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Return the text direction. For details, see the enum <b>OH_Drawing_TextDirection</b>.\n @since 12\n @version 1.0"]
3429    pub fn OH_Drawing_TypographyGetTextDirection(
3430        style: *mut OH_Drawing_TypographyStyle,
3431    ) -> OH_Drawing_TextDirection;
3432}
3433extern "C" {
3434    #[doc = " @brief Sets the maximum number of lines in a text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Return the maximum number of lines in a text.\n @since 12\n @version 1.0"]
3435    pub fn OH_Drawing_TypographyGetTextMaxLines(style: *mut OH_Drawing_TypographyStyle) -> usize;
3436}
3437extern "C" {
3438    #[doc = " @brief Get the ellipsis of lines in a text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to a typography style object\n <b>OH_Drawing_TypographyStyle</b>.\n @return Return the ellipsis of lines in a text.\n @since 12\n @version 1.0"]
3439    pub fn OH_Drawing_TypographyGetTextEllipsis(
3440        style: *mut OH_Drawing_TypographyStyle,
3441    ) -> *mut ::std::os::raw::c_char;
3442}
3443extern "C" {
3444    #[doc = " @brief Releases the memory occupied by a list of Ellipsis names.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param ellipsis Indicates the pointer to a list of Ellipsis names.\n @since 12\n @version 1.0"]
3445    pub fn OH_Drawing_TypographyDestroyEllipsis(ellipsis: *mut ::std::os::raw::c_char);
3446}
3447extern "C" {
3448    #[doc = " @brief Overriding the class ParagraphStyle equals operator.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param from Indicates source of comparison object.\n @param to Indicates comparison object.\n @return Compare result.\n @since 12\n @version 1.0"]
3449    pub fn OH_Drawing_TypographyStyleEquals(
3450        from: *mut OH_Drawing_TypographyStyle,
3451        to: *mut OH_Drawing_TypographyStyle,
3452    ) -> bool;
3453}
3454extern "C" {
3455    #[doc = " @brief Releases the memory occupied by text box.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textBox Indicates the pointer to a text box object <b>OH_Drawing_TextBox</b>.\n @since 12\n @version 1.0"]
3456    pub fn OH_Drawing_TypographyDestroyTextBox(textBox: *mut OH_Drawing_TextBox);
3457}
3458extern "C" {
3459    #[doc = " @brief Sets the parameter of text-shadow.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param shadow Indicates the pointer to an <b>OH_Drawing_TextShadow</b> object.\n @param color Indicates the color setting of text-shadow.\n @param offset Indicates the pointer to an <b>OH_Drawing_Point</b> object.\n @param blurRadius Indicates the radius of blur for text-shadow.\n @since 12\n @version 1.0"]
3460    pub fn OH_Drawing_SetTextShadow(
3461        shadow: *mut OH_Drawing_TextShadow,
3462        color: u32,
3463        offset: *mut OH_Drawing_Point,
3464        blurRadius: f64,
3465    );
3466}
3467extern "C" {
3468    #[doc = " @brief Creates an <b>OH_Drawing_TextTab</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param alignment Indicates enumerates text tab alignment modes. TAB alignment, Support left alignment\n right alignment center alignment, other enumeration values are left alignment effect.\n @param location Indicates location of text tab.\n @return Returns the pointer to the <b>OH_Drawing_TextTab</b> object created. If the object returns NULL,\n the creation failed. The possible cause of the failure is that the application address space is used up.\n As a result, space cannot be allocated.\n @since 18\n @version 1.0"]
3469    #[cfg(feature = "api-18")]
3470    pub fn OH_Drawing_CreateTextTab(
3471        alignment: OH_Drawing_TextAlign,
3472        location: f32,
3473    ) -> *mut OH_Drawing_TextTab;
3474}
3475extern "C" {
3476    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_TextTab</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param tab Indicates the pointer to an <b>OH_Drawing_TextTab</b> object.\n @since 18\n @version 1.0"]
3477    #[cfg(feature = "api-18")]
3478    pub fn OH_Drawing_DestroyTextTab(tab: *mut OH_Drawing_TextTab);
3479}
3480extern "C" {
3481    #[doc = " @brief Get alignment of an <b>OH_Drawing_TextTab</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param tab Indicates the pointer to an <b>OH_Drawing_TextTab</b> object.\n @return Returns align of an <b>OH_Drawing_TextTab</b> object.\n @since 18\n @version 1.0"]
3482    #[cfg(feature = "api-18")]
3483    pub fn OH_Drawing_GetTextTabAlignment(tab: *mut OH_Drawing_TextTab) -> OH_Drawing_TextAlign;
3484}
3485extern "C" {
3486    #[doc = " @brief Get location of an <b>OH_Drawing_TextTab</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param tab Indicates the pointer to an <b>OH_Drawing_TextTab</b> object.\n @return Returns location of an <b>OH_Drawing_TextTab</b> object.\n @since 18\n @version 1.0"]
3487    #[cfg(feature = "api-18")]
3488    pub fn OH_Drawing_GetTextTabLocation(tab: *mut OH_Drawing_TextTab) -> f32;
3489}
3490extern "C" {
3491    #[doc = " @brief Sets the text tab of <b>OH_Drawing_TypographyStyle</b> object.\n Tab alignment does not take effect when text alignment is also set, Or when the ellipsis style is configured.\n When the tab is not set or the tab's location property is less than or equal to 0, it is the default space effect.\n And all tabs in the paragraph after the setting are aligned according to this tab effect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param tab Indicates the pointer to an <b>OH_Drawing_TextTab</b> object.\n @since 18\n @version 1.0"]
3492    #[cfg(feature = "api-18")]
3493    pub fn OH_Drawing_SetTypographyTextTab(
3494        style: *mut OH_Drawing_TypographyStyle,
3495        tab: *mut OH_Drawing_TextTab,
3496    );
3497}
3498extern "C" {
3499    #[doc = " @brief Get DrawingArray size.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingArray Indicates the pointer to the array object <b>OH_Drawing_Array</b>.\n @return Size of array.\n @since 14\n @version 1.0"]
3500    #[cfg(feature = "api-14")]
3501    pub fn OH_Drawing_GetDrawingArraySize(drawingArray: *mut OH_Drawing_Array) -> usize;
3502}
3503extern "C" {
3504    #[doc = " @brief Sets whether to optimize whitespace at the end of each line for text typography.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param trailingSpaceOptimized Boolean value indicating whether to optimize whitespace at the end of each line\n for text typography to set.\n @since 20\n @version 1.0"]
3505    #[cfg(feature = "api-20")]
3506    pub fn OH_Drawing_SetTypographyTextTrailingSpaceOptimized(
3507        style: *mut OH_Drawing_TypographyStyle,
3508        trailingSpaceOptimized: bool,
3509    );
3510}
3511extern "C" {
3512    #[doc = " @brief Sets the text content. The content supports UTF-8, UTF-16, and UTF-32 formats.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @param text Indicates the pointer to the text content to set.\n @param byteLength Set the byte length of the text content.\n @param textEncodingType Indicates the text encoding type <b>OH_Drawing_TextEncoding</b>.\n @since 20\n @version 1.0"]
3513    #[cfg(feature = "api-20")]
3514    pub fn OH_Drawing_TypographyHandlerAddEncodedText(
3515        handler: *mut OH_Drawing_TypographyCreate,
3516        text: *const ::std::os::raw::c_void,
3517        byteLength: usize,
3518        textEncodingType: OH_Drawing_TextEncoding,
3519    );
3520}
3521extern "C" {
3522    #[doc = " @brief Set whether to enable automatic spacing between Chinese and English for paragraph.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @param enableAutoSpace Indicates Whether to enable automatic spacing between Chinese and English.\n @since 20"]
3523    #[cfg(feature = "api-20")]
3524    pub fn OH_Drawing_SetTypographyTextAutoSpace(
3525        style: *mut OH_Drawing_TypographyStyle,
3526        enableAutoSpace: bool,
3527    );
3528}
3529extern "C" {
3530    #[doc = " @brief Copy a typography style object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TypographyStyle</b> object.\n @return Returns the pointer to the copied <b>OH_Drawing_TypographyStyle</b> object.\n @since 20\n @version 1.0"]
3531    #[cfg(feature = "api-20")]
3532    pub fn OH_Drawing_CopyTypographyStyle(
3533        style: *mut OH_Drawing_TypographyStyle,
3534    ) -> *mut OH_Drawing_TypographyStyle;
3535}
3536extern "C" {
3537    #[doc = " @brief Copy a text style object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param style Indicates the pointer to an <b>OH_Drawing_TextStyle</b> object.\n @return Returns the pointer to the copied <b>OH_Drawing_TextStyle</b> object.\n @since 20\n @version 1.0"]
3538    #[cfg(feature = "api-20")]
3539    pub fn OH_Drawing_CopyTextStyle(style: *mut OH_Drawing_TextStyle) -> *mut OH_Drawing_TextStyle;
3540}
3541extern "C" {
3542    #[doc = " @brief Copy a text shadow object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param shadow Indicates the pointer to an <b>OH_Drawing_TextShadow</b> object.\n @return Returns the pointer to the copied <b>OH_Drawing_TextShadow</b> object.\n @since 20\n @version 1.0"]
3543    #[cfg(feature = "api-20")]
3544    pub fn OH_Drawing_CopyTextShadow(
3545        shadow: *mut OH_Drawing_TextShadow,
3546    ) -> *mut OH_Drawing_TextShadow;
3547}
3548extern "C" {
3549    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_PositionAndAffinity</b> object.\n\n @param positionAndAffinity Indicates the pointer to an <b>OH_Drawing_PositionAndAffinity</b> object.\n @since 23"]
3550    #[cfg(feature = "api-23")]
3551    pub fn OH_Drawing_DestroyPositionAndAffinity(
3552        positionAndAffinity: *mut OH_Drawing_PositionAndAffinity,
3553    );
3554}
3555extern "C" {
3556    #[doc = " @brief Creates an <b>OH_Drawing_FontMgr</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_FontMgr</b> object created.\n @since 12\n @version 1.0"]
3557    pub fn OH_Drawing_FontMgrCreate() -> *mut OH_Drawing_FontMgr;
3558}
3559extern "C" {
3560    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_FontMgr</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingFontMgr Indicates the pointer to an <b>OH_Drawing_FontMgr</b> object.\n @since 12\n @version 1.0"]
3561    pub fn OH_Drawing_FontMgrDestroy(drawingFontMgr: *mut OH_Drawing_FontMgr);
3562}
3563extern "C" {
3564    #[doc = " @brief Gets the count of font families.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingFontMgr Indicates the pointer to an <b>OH_Drawing_FontMgr</b> object.\n @return Returns the count of font families.\n @since 12\n @version 1.0"]
3565    pub fn OH_Drawing_FontMgrGetFamilyCount(
3566        drawingFontMgr: *mut OH_Drawing_FontMgr,
3567    ) -> ::std::os::raw::c_int;
3568}
3569extern "C" {
3570    #[doc = " @brief Gets the font family name by the index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingFontMgr Indicates the pointer to an <b>OH_Drawing_FontMgr</b> object.\n @param index Indicates the index to get the font family name.\n @return Returns the font family name corresponding to the index value.\n @since 12\n @version 1.0"]
3571    pub fn OH_Drawing_FontMgrGetFamilyName(
3572        drawingFontMgr: *mut OH_Drawing_FontMgr,
3573        index: ::std::os::raw::c_int,
3574    ) -> *mut ::std::os::raw::c_char;
3575}
3576extern "C" {
3577    #[doc = " @brief Releases the memory occupied by font family name.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param familyName Indicates the font family name.\n @since 12\n @version 1.0"]
3578    pub fn OH_Drawing_FontMgrDestroyFamilyName(familyName: *mut ::std::os::raw::c_char);
3579}
3580extern "C" {
3581    #[doc = " @brief Creates an <b>OH_Drawing_FontStyleSet</b> object by <b>OH_Drawing_FontMgr</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingFontMgr Indicates the pointer to an <b>OH_Drawing_FontMgr</b> object.\n @param index Indicates the index used to get the font style set object from the font manager object.\n @return Returns the pointer to the <b>OH_Drawing_FontStyleSet</b> object created.\n @since 12\n @version 1.0"]
3582    pub fn OH_Drawing_FontMgrCreateFontStyleSet(
3583        drawingFontMgr: *mut OH_Drawing_FontMgr,
3584        index: ::std::os::raw::c_int,
3585    ) -> *mut OH_Drawing_FontStyleSet;
3586}
3587extern "C" {
3588    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_FontStyleSet</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingFontStyleSet Indicates the pointer to an <b>OH_Drawing_FontStyleSet</b> object.\n @since 12\n @version 1.0"]
3589    pub fn OH_Drawing_FontMgrDestroyFontStyleSet(drawingFontStyleSet: *mut OH_Drawing_FontStyleSet);
3590}
3591extern "C" {
3592    #[doc = " @brief Get the pointer to an <b>OH_Drawing_FontStyleSet</b> object for the given font style set family name.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingFontMgr Indicates the pointer to an <b>OH_Drawing_FontMgr</b> object.\n @param familyName Indicates the family name of a font style set to be matched.\n @return Returns the pointer to the <b>OH_Drawing_FontStyleSet</b> object matched.\n @since 12\n @version 1.0"]
3593    pub fn OH_Drawing_FontMgrMatchFamily(
3594        drawingFontMgr: *mut OH_Drawing_FontMgr,
3595        familyName: *const ::std::os::raw::c_char,
3596    ) -> *mut OH_Drawing_FontStyleSet;
3597}
3598extern "C" {
3599    #[doc = " @brief Get the pointer to an <b>OH_Drawing_Typeface</b> object based on the given font style and family name.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingFontMgr Indicates the pointer to an <b>OH_Drawing_FontMgr</b> object.\n @param familyName Indicates the family name of a font style set to be matched.\n @param fontStyle Indicates an <b>OH_Drawing_FontStyleStruct</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Typeface</b> object matched.\n @since 12\n @version 1.0"]
3600    pub fn OH_Drawing_FontMgrMatchFamilyStyle(
3601        drawingFontMgr: *mut OH_Drawing_FontMgr,
3602        familyName: *const ::std::os::raw::c_char,
3603        fontStyle: OH_Drawing_FontStyleStruct,
3604    ) -> *mut OH_Drawing_Typeface;
3605}
3606extern "C" {
3607    #[doc = " @brief Get the pointer to an <b>OH_Drawing_Typeface</b> object for the given character.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param drawingFontMgr Indicates the pointer to an <b>OH_Drawing_FontMgr</b> object.\n @param familyName Indicates the family name of a font style set to be matched.\n @param fontStyle Indicates an <b>OH_Drawing_FontStyleStruct</b> object.\n @param bcp47 Indicates an array of languages which indicate the language of character.\n @param bcp47Count Indicates the array size of bcp47.\n @param character Indicates a UTF8 value to be matched.\n @return Returns the pointer to the <b>OH_Drawing_Typeface</b> object matched.\n @since 12\n @version 1.0"]
3608    pub fn OH_Drawing_FontMgrMatchFamilyStyleCharacter(
3609        drawingFontMgr: *mut OH_Drawing_FontMgr,
3610        familyName: *const ::std::os::raw::c_char,
3611        fontStyle: OH_Drawing_FontStyleStruct,
3612        bcp47: *mut *const ::std::os::raw::c_char,
3613        bcp47Count: ::std::os::raw::c_int,
3614        character: i32,
3615    ) -> *mut OH_Drawing_Typeface;
3616}
3617extern "C" {
3618    #[doc = " @brief Create a typeface for the given index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontStyleSet Indicates the pointer to an <b>OH_Drawing_FontStyleSet</b> object.\n @param index Indicates the index of the typeface in this fontStyleSet.\n @return If successful, return a pointer to <b>OH_Drawing_Typeface</b> object; if failed, return nullptr.\n @since 12\n @version 1.0"]
3619    pub fn OH_Drawing_FontStyleSetCreateTypeface(
3620        fontStyleSet: *mut OH_Drawing_FontStyleSet,
3621        index: ::std::os::raw::c_int,
3622    ) -> *mut OH_Drawing_Typeface;
3623}
3624extern "C" {
3625    #[doc = " @brief Get font style for the specified typeface.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontStyleSet Indicates the pointer to an <b>OH_Drawing_FontStyleSet</b> object.\n @param index Indicates the index of the typeface in this fontStyleSet.\n @param styleName Indicates the style name returned.\n @return Return the <b>OH_Drawing_FontStyleStruct<b> structure.\n @since 12\n @version 1.0"]
3626    pub fn OH_Drawing_FontStyleSetGetStyle(
3627        fontStyleSet: *mut OH_Drawing_FontStyleSet,
3628        index: i32,
3629        styleName: *mut *mut ::std::os::raw::c_char,
3630    ) -> OH_Drawing_FontStyleStruct;
3631}
3632extern "C" {
3633    #[doc = " @brief Releases the memory  styleName string.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param styleName Indicates the pointer to a string type.\n @since 12\n @version 1.0"]
3634    pub fn OH_Drawing_FontStyleSetFreeStyleName(styleName: *mut *mut ::std::os::raw::c_char);
3635}
3636extern "C" {
3637    #[doc = " @brief Get the closest matching typeface.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontStyleSet Indicates the pointer to an <b>OH_Drawing_FontStyleSet</b> object.\n @param fontStyleStruct Indicates the <b>OH_Drawing_FontStyleStruct</b> structure.\n @return A pointer to matched <b>OH_Drawing_Typeface</b>.\n @since 12\n @version 1.0"]
3638    pub fn OH_Drawing_FontStyleSetMatchStyle(
3639        fontStyleSet: *mut OH_Drawing_FontStyleSet,
3640        fontStyleStruct: OH_Drawing_FontStyleStruct,
3641    ) -> *mut OH_Drawing_Typeface;
3642}
3643extern "C" {
3644    #[doc = " @brief Get the count of typeface.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontStyleSet Indicates the pointer to an <b>OH_Drawing_FontStyleSet</b> object.\n @return The count of typeface in this font style set.\n @since 12\n @version 1.0"]
3645    pub fn OH_Drawing_FontStyleSetCount(
3646        fontStyleSet: *mut OH_Drawing_FontStyleSet,
3647    ) -> ::std::os::raw::c_int;
3648}
3649#[doc = " @brief Defines the options about GPU context.\n\n @since 12\n @version 1.0\n @deprecated since 18"]
3650#[repr(C)]
3651#[derive(Debug, Copy, Clone)]
3652pub struct OH_Drawing_GpuContextOptions {
3653    #[doc = " If true this allows path mask textures to be cached"]
3654    pub allowPathMaskCaching: bool,
3655}
3656extern "C" {
3657    #[doc = " @brief Creates an <b>OH_Drawing_GpuContext</b> object, whose GPU backend context is GL.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param gpuContextOptions Indicates the GPU context options.\n @return Returns the pointer to the <b>OH_Drawing_GpuContext</b> object created.\n @since 12\n @version 1.0\n @deprecated since 18\n @useinstead OH_Drawing_GpuContextCreate"]
3658    pub fn OH_Drawing_GpuContextCreateFromGL(
3659        gpuContextOptions: OH_Drawing_GpuContextOptions,
3660    ) -> *mut OH_Drawing_GpuContext;
3661}
3662extern "C" {
3663    #[doc = " @brief Creates an <b>OH_Drawing_GpuContext</b> object, whose GPU backend context depends on device.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_GpuContext</b> object created.\n @since 16\n @version 1.0"]
3664    #[cfg(feature = "api-16")]
3665    pub fn OH_Drawing_GpuContextCreate() -> *mut OH_Drawing_GpuContext;
3666}
3667extern "C" {
3668    #[doc = " @brief Destroys an <b>OH_Drawing_GpuContext</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param gpuContext Indicates the pointer to an <b>OH_Drawing_GpuContext</b> object.\n @since 12\n @version 1.0"]
3669    pub fn OH_Drawing_GpuContextDestroy(gpuContext: *mut OH_Drawing_GpuContext);
3670}
3671extern "C" {
3672    #[doc = " @brief Creates an <b>OH_Drawing_Image</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Image</b> object created.\n @since 12\n @version 1.0"]
3673    pub fn OH_Drawing_ImageCreate() -> *mut OH_Drawing_Image;
3674}
3675extern "C" {
3676    #[doc = " @brief Destroys an <b>OH_Drawing_Image</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param image Indicates the pointer to an <b>OH_Drawing_Image</b> object.\n @since 12\n @version 1.0"]
3677    pub fn OH_Drawing_ImageDestroy(image: *mut OH_Drawing_Image);
3678}
3679extern "C" {
3680    #[doc = " @brief Rebuilds an <b>OH_Drawing_Image</b> object, sharing or copying bitmap pixels.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param image Indicates the pointer to an <b>OH_Drawing_Image</b> object.\n @param bitmap Indicates the pointer to an <b>OH_Drawing_Bitmap</b> object.\n @return Returns true if successed.\n @since 12\n @version 1.0"]
3681    pub fn OH_Drawing_ImageBuildFromBitmap(
3682        image: *mut OH_Drawing_Image,
3683        bitmap: *mut OH_Drawing_Bitmap,
3684    ) -> bool;
3685}
3686extern "C" {
3687    #[doc = " @brief Gets pixel count in each row of image.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param image Indicates the pointer to an <b>OH_Drawing_Image</b> object.\n @return Returns the width.\n @since 12\n @version 1.0"]
3688    pub fn OH_Drawing_ImageGetWidth(image: *mut OH_Drawing_Image) -> i32;
3689}
3690extern "C" {
3691    #[doc = " @brief Gets pixel row count of image.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param image Indicates the pointer to an <b>OH_Drawing_Image</b> object.\n @return Returns the height.\n @since 12\n @version 1.0"]
3692    pub fn OH_Drawing_ImageGetHeight(image: *mut OH_Drawing_Image) -> i32;
3693}
3694extern "C" {
3695    #[doc = " @brief Gets the image info.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param image Indicates the pointer to an <b>OH_Drawing_Image</b> object.\n @param imageInfo Indicates the pointer to an <b>OH_Drawing_Image_Info</b> object.\n @since 12\n @version 1.0"]
3696    pub fn OH_Drawing_ImageGetImageInfo(
3697        image: *mut OH_Drawing_Image,
3698        imageInfo: *mut OH_Drawing_Image_Info,
3699    );
3700}
3701#[doc = " Replicate the edge color if the shader effect draws outside of its original bounds."]
3702pub const OH_Drawing_TileMode_CLAMP: OH_Drawing_TileMode = 0;
3703#[doc = " Repeat the shader effect image horizontally and vertically."]
3704pub const OH_Drawing_TileMode_REPEAT: OH_Drawing_TileMode = 1;
3705#[doc = " Repeat the shader effect image horizontally and vertically, alternating mirror images\n so that adjacent images always seam."]
3706pub const OH_Drawing_TileMode_MIRROR: OH_Drawing_TileMode = 2;
3707#[doc = " Only draw within the original domain, return transparent-black everywhere else."]
3708pub const OH_Drawing_TileMode_DECAL: OH_Drawing_TileMode = 3;
3709#[doc = " @brief Enumerates tile mode.\n\n @since 11\n @version 1.0"]
3710pub type OH_Drawing_TileMode = u32;
3711extern "C" {
3712    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a shader with single color.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param color Indicates the color used by the shader.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty.\n @since 12\n @version 1.0"]
3713    pub fn OH_Drawing_ShaderEffectCreateColorShader(color: u32) -> *mut OH_Drawing_ShaderEffect;
3714}
3715extern "C" {
3716    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a linear gradient between the two specified points.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param startPt Indicates the start point for the gradient.\n @param endPt Indicates the end point for the gradient.\n @param colors Indicates the colors to be distributed between the two points.\n @param pos Indicates the relative position of each corresponding color in the colors array.\n @param size Indicates the number of colors and pos.\n @param tileMode Indicates the tile mode.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n @since 11\n @version 1.0"]
3717    pub fn OH_Drawing_ShaderEffectCreateLinearGradient(
3718        startPt: *const OH_Drawing_Point,
3719        endPt: *const OH_Drawing_Point,
3720        colors: *const u32,
3721        pos: *const f32,
3722        size: u32,
3723        tileMode: OH_Drawing_TileMode,
3724    ) -> *mut OH_Drawing_ShaderEffect;
3725}
3726extern "C" {
3727    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a linear gradient between the two specified points.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param startPt Indicates the start point for the gradient.\n @param endPt Indicates the end point for the gradient.\n @param colors Indicates the colors to be distributed between the two points.\n @param pos Indicates the relative position of each corresponding color in the colors array.\n            If pos is nullptr, the colors are evenly distributed between the start and end point.\n @param size Indicates the number of colors and pos(if pos is not nullptr).\n @param tileMode Indicates the tile mode.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object,\nwhich represents the local matrix of the created <b>OH_Drawing_ShaderEffect</b> object.\nIf matrix is nullptr, defaults to the identity matrix.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is any of startPt, endPt, colors and pos is nullptr.\n @since 12\n @version 1.0"]
3728    pub fn OH_Drawing_ShaderEffectCreateLinearGradientWithLocalMatrix(
3729        startPt: *const OH_Drawing_Point2D,
3730        endPt: *const OH_Drawing_Point2D,
3731        colors: *const u32,
3732        pos: *const f32,
3733        size: u32,
3734        tileMode: OH_Drawing_TileMode,
3735        matrix: *const OH_Drawing_Matrix,
3736    ) -> *mut OH_Drawing_ShaderEffect;
3737}
3738extern "C" {
3739    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a radial gradient given the center and radius.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param centerPt Indicates the center of the circle for the gradient.\n @param radius Indicates the radius of the circle for this gradient.\n @param colors Indicates the colors to be distributed between the two points.\n @param pos Indicates the relative position of each corresponding color in the colors array.\n @param size Indicates the number of colors and pos.\n @param tileMode Indicates the tile mode.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n @since 11\n @version 1.0"]
3740    pub fn OH_Drawing_ShaderEffectCreateRadialGradient(
3741        centerPt: *const OH_Drawing_Point,
3742        radius: f32,
3743        colors: *const u32,
3744        pos: *const f32,
3745        size: u32,
3746        tileMode: OH_Drawing_TileMode,
3747    ) -> *mut OH_Drawing_ShaderEffect;
3748}
3749extern "C" {
3750    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a radial gradient given the center and radius.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param centerPt Indicates the center of the circle for the gradient.\n @param radius Indicates the radius of the circle for this gradient.\n @param colors Indicates the colors to be distributed between the two points.\n @param pos Indicates the relative position of each corresponding color in the colors array.\n @param size Indicates the number of colors and pos.\n @param tileMode Indicates the tile mode.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object,\nwhich represents the local matrix of the created <b>OH_Drawing_ShaderEffect</b> object.\nIf matrix is nullptr, defaults to the identity matrix.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is any of centerPt, colors and pos is nullptr.\n @since 12\n @version 1.0"]
3751    pub fn OH_Drawing_ShaderEffectCreateRadialGradientWithLocalMatrix(
3752        centerPt: *const OH_Drawing_Point2D,
3753        radius: f32,
3754        colors: *const u32,
3755        pos: *const f32,
3756        size: u32,
3757        tileMode: OH_Drawing_TileMode,
3758        matrix: *const OH_Drawing_Matrix,
3759    ) -> *mut OH_Drawing_ShaderEffect;
3760}
3761extern "C" {
3762    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a sweep gradient given a center.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param centerPt Indicates the center of the circle for the gradient.\n @param colors Indicates the colors to be distributed between the two points.\n @param pos Indicates the relative position of each corresponding color in the colors array.\n @param size Indicates the number of colors and pos.\n @param tileMode Indicates the tile mode.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object,\nwhich represents the local matrix of the created <b>OH_Drawing_ShaderEffect</b> object.\nIf matrix is nullptr, defaults to the identity matrix.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n @since 20\n @version 1.0"]
3763    #[cfg(feature = "api-20")]
3764    pub fn OH_Drawing_ShaderEffectCreateSweepGradientWithLocalMatrix(
3765        centerPt: *const OH_Drawing_Point,
3766        colors: *const u32,
3767        pos: *const f32,
3768        size: u32,
3769        tileMode: OH_Drawing_TileMode,
3770        matrix: *const OH_Drawing_Matrix,
3771    ) -> *mut OH_Drawing_ShaderEffect;
3772}
3773extern "C" {
3774    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a sweep gradient given a center.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param centerPt Indicates the center of the circle for the gradient.\n @param colors Indicates the colors to be distributed between the two points.\n @param pos Indicates the relative position of each corresponding color in the colors array.\n @param size Indicates the number of colors and pos.\n @param tileMode Indicates the tile mode.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n @since 11\n @version 1.0"]
3775    pub fn OH_Drawing_ShaderEffectCreateSweepGradient(
3776        centerPt: *const OH_Drawing_Point,
3777        colors: *const u32,
3778        pos: *const f32,
3779        size: u32,
3780        tileMode: OH_Drawing_TileMode,
3781    ) -> *mut OH_Drawing_ShaderEffect;
3782}
3783extern "C" {
3784    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a image shader.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param image Indicates the pointer to an <b>OH_Drawing_Image</b> object.\n @param tileX Indicates the tileX.\n @param tileY Indicates the tileY.\n @param samplingOptions Indicates the pointer to an <b>OH_Drawing_SamplingOptions</b> object.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n                          If matrix is nullptr, defaults to the identity matrix.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n @since 12\n @version 1.0"]
3785    pub fn OH_Drawing_ShaderEffectCreateImageShader(
3786        image: *mut OH_Drawing_Image,
3787        tileX: OH_Drawing_TileMode,
3788        tileY: OH_Drawing_TileMode,
3789        samplingOptions: *const OH_Drawing_SamplingOptions,
3790        matrix: *const OH_Drawing_Matrix,
3791    ) -> *mut OH_Drawing_ShaderEffect;
3792}
3793extern "C" {
3794    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a pixel map shader.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pixelMap Indicates the pointer to an <b>OH_Drawing_PixelMap</b> object.\n @param tileX Indicates the horizontal tile mode.\n @param tileY Indicates the vertical tile mode.\n @param samplingOptions Indicates the pointer to an <b>OH_Drawing_SamplingOptions</b> object. It cannot be null.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n                          If matrix is nullptr, defaults to the identity matrix.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n @since 20\n @version 1.0"]
3795    #[cfg(feature = "api-20")]
3796    pub fn OH_Drawing_ShaderEffectCreatePixelMapShader(
3797        pixelMap: *mut OH_Drawing_PixelMap,
3798        tileX: OH_Drawing_TileMode,
3799        tileY: OH_Drawing_TileMode,
3800        samplingOptions: *const OH_Drawing_SamplingOptions,
3801        matrix: *const OH_Drawing_Matrix,
3802    ) -> *mut OH_Drawing_ShaderEffect;
3803}
3804extern "C" {
3805    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates a conical gradient given two circles.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param startPt Indicates the center of the start circle for the gradient.\n @param startRadius Indicates the radius of the start circle for this gradient.\n @param endPt Indicates the center of the start circle for the gradient.\n @param endRadius Indicates the radius of the start circle for this gradient.\n @param colors Indicates the colors to be distributed between the two points.\n @param pos Indicates the relative position of each corresponding color in the colors array.\n @param size Indicates the number of colors and pos.\n @param tileMode Indicates the tile mode.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object,\nwhich represents the local matrix of the created <b>OH_Drawing_ShaderEffect</b> object.\nIf matrix is nullptr, defaults to the identity matrix.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is any of startPt, endPt, colors and pos is nullptr.\n @since 12\n @version 1.0"]
3806    pub fn OH_Drawing_ShaderEffectCreateTwoPointConicalGradient(
3807        startPt: *const OH_Drawing_Point2D,
3808        startRadius: f32,
3809        endPt: *const OH_Drawing_Point2D,
3810        endRadius: f32,
3811        colors: *const u32,
3812        pos: *const f32,
3813        size: u32,
3814        tileMode: OH_Drawing_TileMode,
3815        matrix: *const OH_Drawing_Matrix,
3816    ) -> *mut OH_Drawing_ShaderEffect;
3817}
3818extern "C" {
3819    #[doc = " @brief Creates an <b>OH_Drawing_ShaderEffect</b> that generates by two shaders.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param dst Indicates the destination ShaderEffect pointer.\n @param src Indicates the source ShaderEffect pointer.\n @param mode Indicates the blend mode.\n @return Returns the pointer to the <b>OH_Drawing_ShaderEffect</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty or any of dst and src is nullptr.\n @since 20\n @version 1.0"]
3820    #[cfg(feature = "api-20")]
3821    pub fn OH_Drawing_ShaderEffectCreateCompose(
3822        dst: *mut OH_Drawing_ShaderEffect,
3823        src: *mut OH_Drawing_ShaderEffect,
3824        mode: OH_Drawing_BlendMode,
3825    ) -> *mut OH_Drawing_ShaderEffect;
3826}
3827extern "C" {
3828    #[doc = " @brief Destroys an <b>OH_Drawing_ShaderEffect</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param shaderEffect Indicates the pointer to an <b>OH_Drawing_ShaderEffect</b> object.\n @since 11\n @version 1.0"]
3829    pub fn OH_Drawing_ShaderEffectDestroy(shaderEffect: *mut OH_Drawing_ShaderEffect);
3830}
3831extern "C" {
3832    #[doc = " @brief Creates an <b>OH_Drawing_ImageFilter</b> object that blurs its input by the separate x and y sigmas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param sigmaX Indicates the Gaussian sigma value for blurring along the x axis.\n @param sigmaY Indicates the Gaussian sigma value for blurring along the y axis.\n @param tileMode Indicates the tile mode applied at edges.\n @param imageFilter Indicates the input filter that is blurred, uses source bitmap if this is null.\n @return Returns the pointer to the <b>OH_Drawing_ImageFilter</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty.\n @since 12\n @version 1.0"]
3833    pub fn OH_Drawing_ImageFilterCreateBlur(
3834        sigmaX: f32,
3835        sigmaY: f32,
3836        tileMode: OH_Drawing_TileMode,
3837        imageFilter: *mut OH_Drawing_ImageFilter,
3838    ) -> *mut OH_Drawing_ImageFilter;
3839}
3840extern "C" {
3841    #[doc = " @brief Creates an <b>OH_Drawing_ImageFilter</b> object that blurs its input by the separate x and y sigmas.\n Supports an optional crop rectangle to restrict the blur effect to a specific region of the input.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param sigmaX Indicates the Gaussian sigma value for blurring along the x axis.\n @param sigmaY Indicates the Gaussian sigma value for blurring along the y axis.\n @param tileMode Indicates the tile mode applied at edges.\n @param input Indicates the input filter that is blurred, uses source bitmap if this is null.\n @param rect Indicates optional rectangle that crops the input and output.\n             If rect is null, the blur effect applies to the entire input image.\n @return Returns the pointer to the <b>OH_Drawing_ImageFilter</b> object created.\n @since 20\n @version 1.0"]
3842    #[cfg(feature = "api-20")]
3843    pub fn OH_Drawing_ImageFilterCreateBlurWithCrop(
3844        sigmaX: f32,
3845        sigmaY: f32,
3846        tileMode: OH_Drawing_TileMode,
3847        input: *mut OH_Drawing_ImageFilter,
3848        rect: *const OH_Drawing_Rect,
3849    ) -> *mut OH_Drawing_ImageFilter;
3850}
3851extern "C" {
3852    #[doc = " @brief Creates an <b>OH_Drawing_ImageFilter</b> object that applies the color filter to the input.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param colorFilter Indicates the color filter that transforms the input image.\n @param imageFilter Indicates the input filter, or uses the source bitmap if this is null.\n @return Returns the pointer to the <b>OH_Drawing_ImageFilter</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty or\n         a nullptr <b>OH_Drawing_ColorFilter</b> is passed.\n @since 12\n @version 1.0"]
3853    pub fn OH_Drawing_ImageFilterCreateFromColorFilter(
3854        colorFilter: *mut OH_Drawing_ColorFilter,
3855        imageFilter: *mut OH_Drawing_ImageFilter,
3856    ) -> *mut OH_Drawing_ImageFilter;
3857}
3858extern "C" {
3859    #[doc = " @brief Creates an <b>OH_Drawing_ImageFilter</b> object with the provided x and y offset.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param x Indicates the x offset.\n @param y Indicates the y offset.\n @param imageFilter Indicates the input filter, or uses the source bitmap if this is null.\n @return Returns the pointer to the <b>OH_Drawing_ImageFilter</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty.\n @since 20\n @version 1.0"]
3860    #[cfg(feature = "api-20")]
3861    pub fn OH_Drawing_ImageFilterCreateOffset(
3862        x: f32,
3863        y: f32,
3864        imageFilter: *mut OH_Drawing_ImageFilter,
3865    ) -> *mut OH_Drawing_ImageFilter;
3866}
3867extern "C" {
3868    #[doc = " @brief Creates an <b>OH_Drawing_ImageFilter</b> object that applies the shader to the input.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param shaderEffect Indicates the shader effect to be applied to the image.\n @return Returns the pointer to the <b>OH_Drawing_ImageFilter</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty or\n         a nullptr <b>OH_Drawing_ShaderEffect</b> is passed.\n @since 20\n @version 1.0"]
3869    #[cfg(feature = "api-20")]
3870    pub fn OH_Drawing_ImageFilterCreateFromShaderEffect(
3871        shaderEffect: *mut OH_Drawing_ShaderEffect,
3872    ) -> *mut OH_Drawing_ImageFilter;
3873}
3874extern "C" {
3875    #[doc = " @brief Destroys an <b>OH_Drawing_ImageFilter</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param imageFilter Indicates the pointer to an <b>OH_Drawing_ImageFilter</b> object.\n @since 12\n @version 1.0"]
3876    pub fn OH_Drawing_ImageFilterDestroy(imageFilter: *mut OH_Drawing_ImageFilter);
3877}
3878#[doc = " Fuzzy inside and outside."]
3879pub const OH_Drawing_BlurType_NORMAL: OH_Drawing_BlurType = 0;
3880#[doc = " Solid inside, fuzzy outside."]
3881pub const OH_Drawing_BlurType_SOLID: OH_Drawing_BlurType = 1;
3882#[doc = " Nothing inside, fuzzy outside."]
3883pub const OH_Drawing_BlurType_OUTER: OH_Drawing_BlurType = 2;
3884#[doc = " Fuzzy inside, nothing outside."]
3885pub const OH_Drawing_BlurType_INNER: OH_Drawing_BlurType = 3;
3886#[doc = " @brief Enumerates blur type.\n\n @since 11\n @version 1.0"]
3887pub type OH_Drawing_BlurType = u32;
3888extern "C" {
3889    #[doc = " @brief Creates an <b>OH_Drawing_MaskFilter</b> with a blur effect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param blurType Indicates the blur type.\n @param sigma Indicates the standard deviation of the Gaussian blur to apply. Must be > 0.\n @param respectCTM Indicates the blur's sigma is modified by the CTM, default is true.\n @return Returns the pointer to the <b>OH_Drawing_MaskFilter</b> object created.\n @since 11\n @version 1.0"]
3890    pub fn OH_Drawing_MaskFilterCreateBlur(
3891        blurType: OH_Drawing_BlurType,
3892        sigma: f32,
3893        respectCTM: bool,
3894    ) -> *mut OH_Drawing_MaskFilter;
3895}
3896extern "C" {
3897    #[doc = " @brief Destroys an <b>OH_Drawing_MaskFilter</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param maskFilter Indicates the pointer to an <b>OH_Drawing_MaskFilter</b> object.\n @since 11\n @version 1.0"]
3898    pub fn OH_Drawing_MaskFilterDestroy(maskFilter: *mut OH_Drawing_MaskFilter);
3899}
3900extern "C" {
3901    #[doc = " @brief Creates an <b>OH_Drawing_Matrix</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Matrix</b> object created.\n @since 11\n @version 1.0"]
3902    pub fn OH_Drawing_MatrixCreate() -> *mut OH_Drawing_Matrix;
3903}
3904extern "C" {
3905    #[doc = " @brief Creates an <b>OH_Drawing_Matrix</b> copy object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Matrix</b> object created.\n @since 20\n @version 1.0"]
3906    #[cfg(feature = "api-20")]
3907    pub fn OH_Drawing_MatrixCopy(matrix: *const OH_Drawing_Matrix) -> *mut OH_Drawing_Matrix;
3908}
3909extern "C" {
3910    #[doc = " @brief Creates an <b>OH_Drawing_Matrix</b> object with rotation. Sets matrix to\n rotate by degrees about a pivot point at (px, py).\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param deg  angle of axes relative to upright axes\n @param x  pivot on x-axis.\n @param y  pivot on y-axis.\n @since 12\n @version 1.0"]
3911    pub fn OH_Drawing_MatrixCreateRotation(deg: f32, x: f32, y: f32) -> *mut OH_Drawing_Matrix;
3912}
3913extern "C" {
3914    #[doc = " @brief Creates an <b>OH_Drawing_Matrix</b> object with scale. Sets matrix to scale\n by sx and sy, about a pivot point at (px, py).\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param sx  horizontal scale factor.\n @param sy  vertical scale factor.\n @param px  pivot on x-axis.\n @param py  pivot on y-axis.\n @return Returns the pointer to the <b>OH_Drawing_Matrix</b> object created.\n @since 12\n @version 1.0"]
3915    pub fn OH_Drawing_MatrixCreateScale(
3916        sx: f32,
3917        sy: f32,
3918        px: f32,
3919        py: f32,
3920    ) -> *mut OH_Drawing_Matrix;
3921}
3922extern "C" {
3923    #[doc = " @brief Creates an <b>OH_Drawing_Matrix</b> object with translation.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param dx  horizontal translation.\n @param dy  vertical translation.\n @return Returns the pointer to the <b>OH_Drawing_Matrix</b> object created.\n @since 12\n @version 1.0"]
3924    pub fn OH_Drawing_MatrixCreateTranslation(dx: f32, dy: f32) -> *mut OH_Drawing_Matrix;
3925}
3926extern "C" {
3927    #[doc = " @brief Sets the params for a matrix.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param scaleX  horizontal scale factor to store\n @param skewX   horizontal skew factor to store\n @param transX  horizontal translation to store\n @param skewY   vertical skew factor to store\n @param scaleY  vertical scale factor to store\n @param transY  vertical translation to store\n @param persp0  input x-axis values perspective factor to store\n @param persp1  input y-axis values perspective factor to store\n @param persp2  perspective scale factor to store\n @since 11\n @version 1.0"]
3928    pub fn OH_Drawing_MatrixSetMatrix(
3929        matrix: *mut OH_Drawing_Matrix,
3930        scaleX: f32,
3931        skewX: f32,
3932        transX: f32,
3933        skewY: f32,
3934        scaleY: f32,
3935        transY: f32,
3936        persp0: f32,
3937        persp1: f32,
3938        persp2: f32,
3939    );
3940}
3941#[doc = " Scales in x and y to fill destination rect."]
3942pub const OH_Drawing_ScaleToFit_SCALE_TO_FIT_FILL: OH_Drawing_ScaleToFit = 0;
3943#[doc = " Scales and aligns to left and top."]
3944pub const OH_Drawing_ScaleToFit_SCALE_TO_FIT_START: OH_Drawing_ScaleToFit = 1;
3945#[doc = " Scales and aligns to center."]
3946pub const OH_Drawing_ScaleToFit_SCALE_TO_FIT_CENTER: OH_Drawing_ScaleToFit = 2;
3947#[doc = " Scales and aligns to right and bottom."]
3948pub const OH_Drawing_ScaleToFit_SCALE_TO_FIT_END: OH_Drawing_ScaleToFit = 3;
3949#[doc = " @brief Enumerates of scale to fit flags, how matrix is constructed to map one rect to another.\n\n @since 12\n @version 1.0"]
3950pub type OH_Drawing_ScaleToFit = u32;
3951extern "C" {
3952    #[doc = " @brief Sets matrix to scale and translate src rect to dst rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param src Indicates the pointer to an <b>OH_Drawing_Rect</b> object rect to map from.\n @param dst Indicates the pointer to an <b>OH_Drawing_Rect</b> object rect to map to.\n @param stf Scales to fit enum method.\n @return Returns true if dst is empty, and sets matrix to:\n         | 0 0 0 |\n         | 0 0 0 |\n         | 0 0 1 |\n\n @since 12\n @version 1.0"]
3953    pub fn OH_Drawing_MatrixSetRectToRect(
3954        matrix: *mut OH_Drawing_Matrix,
3955        src: *const OH_Drawing_Rect,
3956        dst: *const OH_Drawing_Rect,
3957        stf: OH_Drawing_ScaleToFit,
3958    ) -> bool;
3959}
3960extern "C" {
3961    #[doc = " @brief Sets matrix to matrix multiplied by matrix constructed from rotating by degrees\n about pivot point(px, py), positive degrees rotates clockwise.\n        Given:\n\n                     | A B C |                        | c -s dx |\n            Matrix = | D E F |,  R(degrees, px, py) = | s  c dy |\n                     | G H I |                        | 0  0  1 |\n\n        where:\n\n            c  = cos(degrees)\n            s  = sin(degrees)\n            dx =  s * py + (1 - c) * px\n            dy = -s * px + (1 - c) * py\n\n        sets Matrix to:\n\n                                          | A B C | | c -s dx |   | Ac+Bs -As+Bc A*dx+B*dy+C |\n            Matrix * R(degrees, px, py) = | D E F | | s  c dy | = | Dc+Es -Ds+Ec D*dx+E*dy+F |\n                                          | G H I | | 0  0  1 |   | Gc+Hs -Gs+Hc G*dx+H*dy+I |\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param degree Indicates the angle of axes relative to upright axes.\n @param px Indicates the pivot on x-axis.\n @param py Indicates the pivot on y-axis.\n @since 12\n @version 1.0"]
3962    pub fn OH_Drawing_MatrixPreRotate(
3963        matrix: *mut OH_Drawing_Matrix,
3964        degree: f32,
3965        px: f32,
3966        py: f32,
3967    );
3968}
3969extern "C" {
3970    #[doc = " @brief Sets matrix to forward scale by sx and sy, about a pivot point at (px, py).\n        Given:\n\n                    | A B C |                       | sx  0 dx |\n            Matrix =| D E F |,  S(sx, sy, px, py) = |  0 sy dy |\n                    | G H I |                       |  0  0  1 |\n\n        where:\n\n            dx = px - sx * px\n            dy = py - sy * py\n\n        sets Matrix to:\n\n                                         | A B C | | sx  0 dx |   | A*sx B*sy A*dx+B*dy+C |\n            Matrix * S(sx, sy, px, py) = | D E F | |  0 sy dy | = | D*sx E*sy D*dx+E*dy+F |\n                                         | G H I | |  0  0  1 |   | G*sx H*sy G*dx+H*dy+I |\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param sx Horizontal scale factor.\n @param sy Vertical scale factor.\n @param px Pivot on x-axis.\n @param py Pivot on y-axis.\n @since 12\n @version 1.0"]
3971    pub fn OH_Drawing_MatrixPreScale(
3972        matrix: *mut OH_Drawing_Matrix,
3973        sx: f32,
3974        sy: f32,
3975        px: f32,
3976        py: f32,
3977    );
3978}
3979extern "C" {
3980    #[doc = " @brief Sets forward matrix to translate by dx and dy.\n        Given:\n                     | A B C |               | 1 0 dx |\n            Matrix = | D E F |,  T(dx, dy) = | 0 1 dy |\n                     | G H I |               | 0 0  1 |\n        sets Matrix to:\n                                 | A B C | | 1 0 dx |   | A B A*dx+B*dy+C |\n            Matrix * T(dx, dy) = | D E F | | 0 1 dy | = | D E D*dx+E*dy+F |\n                                 | G H I | | 0 0  1 |   | G H G*dx+H*dy+I |\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param dx Indicates the horizontal translation.\n @param dy Indicates the vertical translation.\n @since 12\n @version 1.0"]
3981    pub fn OH_Drawing_MatrixPreTranslate(matrix: *mut OH_Drawing_Matrix, dx: f32, dy: f32);
3982}
3983extern "C" {
3984    #[doc = " @brief Sets matrix to matrix constructed from rotating by degrees about pivot point(px, py),\n multiplied by matrix, positive degrees rotates clockwise.\n        Given:\n\n                     | J K L |                        | c -s dx |\n            Matrix = | M N O |,  R(degrees, px, py) = | s  c dy |\n                     | P Q R |                        | 0  0  1 |\n\n        where:\n\n            c  = cos(degrees)\n            s  = sin(degrees)\n            dx =  s * py + (1 - c) * px\n            dy = -s * px + (1 - c) * py\n\n        sets Matrix to:\n\n                                          |c -s dx| |J K L|   |cJ-sM+dx*P cK-sN+dx*Q cL-sO+dx+R|\n            R(degrees, px, py) * Matrix = |s  c dy| |M N O| = |sJ+cM+dy*P sK+cN+dy*Q sL+cO+dy*R|\n                                          |0  0  1| |P Q R|   |         P          Q          R|\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param degree Indicates the angle of axes relative to upright axes.\n @param px Indicates the pivot on x-axis.\n @param py Indicates the pivot on y-axis.\n @since 12\n @version 1.0"]
3985    pub fn OH_Drawing_MatrixPostRotate(
3986        matrix: *mut OH_Drawing_Matrix,
3987        degree: f32,
3988        px: f32,
3989        py: f32,
3990    );
3991}
3992extern "C" {
3993    #[doc = " @brief Sets matrix to backward scale by sx and sy, about a pivot point at (px, py).\n        Given:\n                     | J K L |                       | sx  0 dx |\n            Matrix = | M N O |,  S(sx, sy, px, py) = |  0 sy dy |\n                     | P Q R |                       |  0  0  1 |\n        where:\n            dx = px - sx * px\n            dy = py - sy * py\n        sets Matrix to:\n                                         | sx  0 dx | | J K L |   | sx*J+dx*P sx*K+dx*Q sx*L+dx+R |\n            S(sx, sy, px, py) * Matrix = |  0 sy dy | | M N O | = | sy*M+dy*P sy*N+dy*Q sy*O+dy*R |\n                                         |  0  0  1 | | P Q R |   |         P         Q         R |\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param sx Horizontal scale factor.\n @param sy Vertical scale factor.\n @param px Pivot on x-axis.\n @param py Pivot on y-axis.\n @since 12\n @version 1.0"]
3994    pub fn OH_Drawing_MatrixPostScale(
3995        matrix: *mut OH_Drawing_Matrix,
3996        sx: f32,
3997        sy: f32,
3998        px: f32,
3999        py: f32,
4000    );
4001}
4002extern "C" {
4003    #[doc = " @brief Sets backward matrix to translate by (dx, dy).\n        Given:\n\n                     | J K L |               | 1 0 dx |\n            Matrix = | M N O |,  T(dx, dy) = | 0 1 dy |\n                     | P Q R |               | 0 0  1 |\n\n        sets Matrix to:\n\n                                 | 1 0 dx | | J K L |   | J+dx*P K+dx*Q L+dx*R |\n            T(dx, dy) * Matrix = | 0 1 dy | | M N O | = | M+dy*P N+dy*Q O+dy*R |\n                                 | 0 0  1 | | P Q R |   |      P      Q      R |\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param dx Indicates the horizontal translation.\n @param dy Indicates the vertical translation.\n @since 12\n @version 1.0"]
4004    pub fn OH_Drawing_MatrixPostTranslate(matrix: *mut OH_Drawing_Matrix, dx: f32, dy: f32);
4005}
4006extern "C" {
4007    #[doc = " @brief Reset matrix to identity, which has no effect on mapped point, sets matrix to:\n        | 1 0 0 |\n        | 0 1 0 |\n        | 0 0 1 |\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @since 12\n @version 1.0"]
4008    pub fn OH_Drawing_MatrixReset(matrix: *mut OH_Drawing_Matrix);
4009}
4010extern "C" {
4011    #[doc = " @brief Sets matrix total to matrix a multiplied by matrix b.\n       Given:\n                    | A B C |          | J K L |\n                a = | D E F |,     b = | M N O |\n                    | G H I |          | P Q R |\n       sets Matrix total to:\n                            | A B C |   | J K L |   | AJ+BM+CP AK+BN+CQ AL+BO+CR |\n           total = a * b =  | D E F | * | M N O | = | DJ+EM+FP DK+EN+FQ DL+EO+FR |\n                            | G H I |   | P Q R |   | GJ+HM+IP GK+HN+IQ GL+HO+IR |\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param total Indicates the pointer to an <b>OH_Drawing_Matrix</b> object that a * b.\n @param a Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param b Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @since 12\n @version 1.0"]
4012    pub fn OH_Drawing_MatrixConcat(
4013        total: *mut OH_Drawing_Matrix,
4014        a: *const OH_Drawing_Matrix,
4015        b: *const OH_Drawing_Matrix,
4016    );
4017}
4018extern "C" {
4019    #[doc = " @brief Gets nine matrix values contained by matrix into array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param value Storages for nine matrix values.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if matrix or value is nullptr.\n @since 12\n @version 1.0"]
4020    pub fn OH_Drawing_MatrixGetAll(
4021        matrix: *mut OH_Drawing_Matrix,
4022        value: *mut f32,
4023    ) -> OH_Drawing_ErrorCode;
4024}
4025extern "C" {
4026    #[doc = " @brief Matrix a left-multiplied by matrix b.\n       Given:\n                    | A B C |          | J K L |\n                a = | D E F |,     b = | M N O |\n                    | G H I |          | P Q R |\n       Get:\n                   | J K L |     | A B C |     | AJ+DK+GL BJ+EK+HL CJ+FK+IL |\n           b * a = | M N O |  *  | D E F |  =  | AM+DN+GO BM+EN+HO CM+FN+IO |\n                   | P Q R |     | G H I |     | AP+DQ+GR BP+EQ+HR CP+FQ+IR |\n @param a Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param b Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if a or b is nullptr.\n @since 22\n @version 1.0"]
4027    #[cfg(feature = "api-22")]
4028    pub fn OH_Drawing_MatrixPreConcat(
4029        a: *mut OH_Drawing_Matrix,
4030        b: *mut OH_Drawing_Matrix,
4031    ) -> OH_Drawing_ErrorCode;
4032}
4033extern "C" {
4034    #[doc = " @brief Get one matrix value. Index is between the range of 0-8.\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param index one of 0-8.\n @return Returns value corresponding to index.Returns 0 if out of range.\n @since 12\n @version 1.0"]
4035    pub fn OH_Drawing_MatrixGetValue(
4036        matrix: *mut OH_Drawing_Matrix,
4037        index: ::std::os::raw::c_int,
4038    ) -> f32;
4039}
4040extern "C" {
4041    #[doc = " @brief Sets matrix to rotate by degrees about a pivot point at (px, py). The pivot point is unchanged\n when mapped with matrix. Positive degrees rotates clockwise.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param degree Indicates the angle of axes relative to upright axes.\n @param px Indicates the pivot on x-axis.\n @param py Indicates the pivot on y-axis.\n @since 12\n @version 1.0"]
4042    pub fn OH_Drawing_MatrixRotate(matrix: *mut OH_Drawing_Matrix, degree: f32, px: f32, py: f32);
4043}
4044extern "C" {
4045    #[doc = " @brief Sets matrix to translate by (dx, dy)\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param dx Indicates the horizontal translation.\n @param dy Indicates the vertical translation.\n @since 12\n @version 1.0"]
4046    pub fn OH_Drawing_MatrixTranslate(matrix: *mut OH_Drawing_Matrix, dx: f32, dy: f32);
4047}
4048extern "C" {
4049    #[doc = " @brief Sets matrix to scale by sx and sy, about a pivot point at (px, py).\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param sx Indicates the horizontal scale factor.\n @param sy Indicates the vertical scale factor.\n @param px Indicates the pivot on x-axis.\n @param py Indicates the pivot on y-axis.\n @since 12\n @version 1.0"]
4050    pub fn OH_Drawing_MatrixScale(
4051        matrix: *mut OH_Drawing_Matrix,
4052        sx: f32,
4053        sy: f32,
4054        px: f32,
4055        py: f32,
4056    );
4057}
4058extern "C" {
4059    #[doc = " @brief Sets inverse to reciprocal matrix, returning true if matrix can be inverted.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param inverse Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @return Returns true if the matrix is not nullptr and can be inverted;\n         returns false if the matrix is nullptr or cannot be inverted.\n @since 12\n @version 1.0"]
4060    pub fn OH_Drawing_MatrixInvert(
4061        matrix: *mut OH_Drawing_Matrix,
4062        inverse: *mut OH_Drawing_Matrix,
4063    ) -> bool;
4064}
4065extern "C" {
4066    #[doc = " @brief Sets the params of matrix to map src to dst.\n Count must greater than or equal to zero, and less than or equal to four.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param src Points to map from.\n @param dst Points to map to.\n @param count Number of point in src and dst.\n @return Returns true if matrix is constructed successfully.\n @since 12\n @version 1.0"]
4067    pub fn OH_Drawing_MatrixSetPolyToPoly(
4068        matrix: *mut OH_Drawing_Matrix,
4069        src: *const OH_Drawing_Point2D,
4070        dst: *const OH_Drawing_Point2D,
4071        count: u32,
4072    ) -> bool;
4073}
4074extern "C" {
4075    #[doc = " @brief Maps the src point array to the dst point array by matrix transformation.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param src Points to map from.\n @param dst Points to map to.\n @param count Number of point in src and dst.\n @since 12\n @version 1.0"]
4076    pub fn OH_Drawing_MatrixMapPoints(
4077        matrix: *const OH_Drawing_Matrix,
4078        src: *const OH_Drawing_Point2D,
4079        dst: *mut OH_Drawing_Point2D,
4080        count: ::std::os::raw::c_int,
4081    );
4082}
4083extern "C" {
4084    #[doc = " @brief Sets dst to bounds of src corners mapped by matrix transformation.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param src Rect to map from.\n @param dst Rect to map to.\n @return Returns true if the mapped src is equal to the dst; returns false is not equal.\n @since 12\n @version 1.0"]
4085    pub fn OH_Drawing_MatrixMapRect(
4086        matrix: *const OH_Drawing_Matrix,
4087        src: *const OH_Drawing_Rect,
4088        dst: *mut OH_Drawing_Rect,
4089    ) -> bool;
4090}
4091extern "C" {
4092    #[doc = " @brief Returns true if the first matrix equals the second matrix.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @return Returns true if the two matrices are equal; returns false if not equal.\n @since 12\n @version 1.0"]
4093    pub fn OH_Drawing_MatrixIsEqual(
4094        matrix: *mut OH_Drawing_Matrix,
4095        other: *mut OH_Drawing_Matrix,
4096    ) -> bool;
4097}
4098extern "C" {
4099    #[doc = " @brief Returns true if matrix is identity.\n Identity matrix is :  | 1 0 0 |\n                       | 0 1 0 |\n                       | 0 0 1 |\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @return Returns true if matrix is identity; returns false if not identity.\n @since 12\n @version 1.0"]
4100    pub fn OH_Drawing_MatrixIsIdentity(matrix: *mut OH_Drawing_Matrix) -> bool;
4101}
4102extern "C" {
4103    #[doc = " @brief Checks if the matrix is affine. An affine matrix preserves straight lines and has no perspective.\n\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param isAffine Indicates if the matrix is affine.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if matrix or isAffine is nullptr.\n @since 23"]
4104    #[cfg(feature = "api-23")]
4105    pub fn OH_Drawing_MatrixIsAffine(
4106        matrix: *const OH_Drawing_Matrix,
4107        isAffine: *mut bool,
4108    ) -> OH_Drawing_ErrorCode;
4109}
4110extern "C" {
4111    #[doc = " @brief Sets matrix to matrix multiplied by matrix constructed from skewing by (kx, ky) about pivot point (px, py).\n\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param kx Indicates the horizontal skew factor.\n @param ky Indicates the vertical skew factor.\n @param px Indicates the pivot on x-axis.\n @param py Indicates the pivot on y-axis.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if matrix is nullptr.\n @since 23"]
4112    #[cfg(feature = "api-23")]
4113    pub fn OH_Drawing_MatrixPreSkew(
4114        matrix: *mut OH_Drawing_Matrix,
4115        kx: f32,
4116        ky: f32,
4117        px: f32,
4118        py: f32,
4119    ) -> OH_Drawing_ErrorCode;
4120}
4121extern "C" {
4122    #[doc = " @brief Checks if a rectangle will map to another rectangle after applying this matrix.\n\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param isRectStaysRect Indicates if the transformation keeps rectangles as rectangles.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if matrix or isRectStaysRect is nullptr.\n @since 23"]
4123    #[cfg(feature = "api-23")]
4124    pub fn OH_Drawing_MatrixRectStaysRect(
4125        matrix: *const OH_Drawing_Matrix,
4126        isRectStaysRect: *mut bool,
4127    ) -> OH_Drawing_ErrorCode;
4128}
4129extern "C" {
4130    #[doc = " @brief Sets the sine and cosine values for a rotation transformation around a point.\n\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param sinValue Indicates the sine of the angle of rotation.\n @param cosValue Indicates the cosine of the angle of rotation.\n @param px Indicates the x-coordinate of the point around which to rotate.\n @param py Indicates the y-coordinate of the point around which to rotate.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if matrix is nullptr.\n @since 23"]
4131    #[cfg(feature = "api-23")]
4132    pub fn OH_Drawing_MatrixSetSinCos(
4133        matrix: *mut OH_Drawing_Matrix,
4134        sinValue: f32,
4135        cosValue: f32,
4136        px: f32,
4137        py: f32,
4138    ) -> OH_Drawing_ErrorCode;
4139}
4140extern "C" {
4141    #[doc = " @brief Destroys an <b>OH_Drawing_Matrix</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @since 11\n @version 1.0"]
4142    pub fn OH_Drawing_MatrixDestroy(matrix: *mut OH_Drawing_Matrix);
4143}
4144extern "C" {
4145    #[doc = " @brief Creates a <b>OH_Drawing_MemoryStream</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_MemoryStream</b> object created.\n @param data  file path.\n @param length  Data length.\n @param copyData  Copy data or not.\n @since 12\n @version 1.0"]
4146    pub fn OH_Drawing_MemoryStreamCreate(
4147        data: *const ::std::os::raw::c_void,
4148        length: usize,
4149        copyData: bool,
4150    ) -> *mut OH_Drawing_MemoryStream;
4151}
4152extern "C" {
4153    #[doc = " @brief Destroys an <b>OH_Drawing_MemoryStream</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param memoryStream Indicates the pointer to an <b>OH_Drawing_MemoryStream</b> object.\n @since 12\n @version 1.0"]
4154    pub fn OH_Drawing_MemoryStreamDestroy(memoryStream: *mut OH_Drawing_MemoryStream);
4155}
4156#[doc = " clockwise direction for adding closed contours"]
4157pub const OH_Drawing_PathDirection_PATH_DIRECTION_CW: OH_Drawing_PathDirection = 0;
4158#[doc = " counter-clockwise direction for adding closed contours"]
4159pub const OH_Drawing_PathDirection_PATH_DIRECTION_CCW: OH_Drawing_PathDirection = 1;
4160#[doc = " @brief Direction for adding closed contours.\n\n @since 12\n @version 1.0"]
4161pub type OH_Drawing_PathDirection = u32;
4162#[doc = " Specifies that \"inside\" is computed by a non-zero sum of signed edge crossings"]
4163pub const OH_Drawing_PathFillType_PATH_FILL_TYPE_WINDING: OH_Drawing_PathFillType = 0;
4164#[doc = " Specifies that \"inside\" is computed by an odd number of edge crossings"]
4165pub const OH_Drawing_PathFillType_PATH_FILL_TYPE_EVEN_ODD: OH_Drawing_PathFillType = 1;
4166#[doc = " Same as Winding, but draws outside of the path, rather than inside"]
4167pub const OH_Drawing_PathFillType_PATH_FILL_TYPE_INVERSE_WINDING: OH_Drawing_PathFillType = 2;
4168#[doc = " Same as EvenOdd, but draws outside of the path, rather than inside"]
4169pub const OH_Drawing_PathFillType_PATH_FILL_TYPE_INVERSE_EVEN_ODD: OH_Drawing_PathFillType = 3;
4170#[doc = " @brief FillType of path.\n\n @since 12\n @version 1.0"]
4171pub type OH_Drawing_PathFillType = u32;
4172#[doc = " Appended to destination unaltered"]
4173pub const OH_Drawing_PathAddMode_PATH_ADD_MODE_APPEND: OH_Drawing_PathAddMode = 0;
4174#[doc = " Add line if prior contour is not closed"]
4175pub const OH_Drawing_PathAddMode_PATH_ADD_MODE_EXTEND: OH_Drawing_PathAddMode = 1;
4176#[doc = " @brief Add mode of path.\n\n @since 12\n @version 1.0"]
4177pub type OH_Drawing_PathAddMode = u32;
4178#[doc = " Difference operation."]
4179pub const OH_Drawing_PathOpMode_PATH_OP_MODE_DIFFERENCE: OH_Drawing_PathOpMode = 0;
4180#[doc = " Intersect operation."]
4181pub const OH_Drawing_PathOpMode_PATH_OP_MODE_INTERSECT: OH_Drawing_PathOpMode = 1;
4182#[doc = " Union operation."]
4183pub const OH_Drawing_PathOpMode_PATH_OP_MODE_UNION: OH_Drawing_PathOpMode = 2;
4184#[doc = " Xor operation."]
4185pub const OH_Drawing_PathOpMode_PATH_OP_MODE_XOR: OH_Drawing_PathOpMode = 3;
4186#[doc = " Reverse difference operation."]
4187pub const OH_Drawing_PathOpMode_PATH_OP_MODE_REVERSE_DIFFERENCE: OH_Drawing_PathOpMode = 4;
4188#[doc = " @brief Operations when two paths are combined.\n\n @since 12\n @version 1.0"]
4189pub type OH_Drawing_PathOpMode = u32;
4190#[doc = " Gets position."]
4191pub const OH_Drawing_PathMeasureMatrixFlags_GET_POSITION_MATRIX: OH_Drawing_PathMeasureMatrixFlags =
4192    0;
4193#[doc = " Gets tangent."]
4194pub const OH_Drawing_PathMeasureMatrixFlags_GET_TANGENT_MATRIX: OH_Drawing_PathMeasureMatrixFlags =
4195    1;
4196#[doc = " Gets both position and tangent."]
4197pub const OH_Drawing_PathMeasureMatrixFlags_GET_POSITION_AND_TANGENT_MATRIX:
4198    OH_Drawing_PathMeasureMatrixFlags = 2;
4199#[doc = " @brief Enumerates the matrix information corresponding to the path measurements.\n\n @since 12\n @version 1.0"]
4200pub type OH_Drawing_PathMeasureMatrixFlags = u32;
4201extern "C" {
4202    #[doc = " @brief Creates an <b>OH_Drawing_Path</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Path</b> object created.\n @since 8\n @version 1.0"]
4203    pub fn OH_Drawing_PathCreate() -> *mut OH_Drawing_Path;
4204}
4205extern "C" {
4206    #[doc = " @brief Creates an <b>OH_Drawing_Path</b> copy object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Path</b> object created.\n @since 12\n @version 1.0"]
4207    pub fn OH_Drawing_PathCopy(path: *mut OH_Drawing_Path) -> *mut OH_Drawing_Path;
4208}
4209extern "C" {
4210    #[doc = " @brief Destroys an <b>OH_Drawing_Path</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @since 8\n @version 1.0"]
4211    pub fn OH_Drawing_PathDestroy(path: *mut OH_Drawing_Path);
4212}
4213extern "C" {
4214    #[doc = " @brief Sets <b>OH_Drawing_Path</b> object with the same content of another.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Path</b> object to copy content from.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or other is nullptr.\n @since 20\n @version 1.0"]
4215    #[cfg(feature = "api-20")]
4216    pub fn OH_Drawing_PathSetPath(
4217        path: *mut OH_Drawing_Path,
4218        other: *mut OH_Drawing_Path,
4219    ) -> OH_Drawing_ErrorCode;
4220}
4221extern "C" {
4222    #[doc = " @brief Checks if <b>OH_Drawing_Path</b> object is empty.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param isEmpty Indicates the return value.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or isEmpty is nullptr.\n @since 20\n @version 1.0"]
4223    #[cfg(feature = "api-20")]
4224    pub fn OH_Drawing_PathIsEmpty(
4225        path: *mut OH_Drawing_Path,
4226        isEmpty: *mut bool,
4227    ) -> OH_Drawing_ErrorCode;
4228}
4229extern "C" {
4230    #[doc = " @brief Checks if <b>OH_Drawing_Path</b> represents a rectangle.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param rect Indicates the Pointer to an <b>OH_Drawing_Rect</b> object.\n @param isRect Indicates the return value.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or isRect is nullptr.\n @since 20\n @version 1.0"]
4231    #[cfg(feature = "api-20")]
4232    pub fn OH_Drawing_PathIsRect(
4233        path: *mut OH_Drawing_Path,
4234        rect: *mut OH_Drawing_Rect,
4235        isRect: *mut bool,
4236    ) -> OH_Drawing_ErrorCode;
4237}
4238extern "C" {
4239    #[doc = " @brief Sets the start point of a path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param x Indicates the x coordinate of the start point.\n @param y Indicates the y coordinate of the start point.\n @since 8\n @version 1.0"]
4240    pub fn OH_Drawing_PathMoveTo(path: *mut OH_Drawing_Path, x: f32, y: f32);
4241}
4242extern "C" {
4243    #[doc = " @brief Draws a line segment from the last point of a path to the target point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param x Indicates the x coordinate of the target point.\n @param y Indicates the y coordinate of the target point.\n @since 8\n @version 1.0"]
4244    pub fn OH_Drawing_PathLineTo(path: *mut OH_Drawing_Path, x: f32, y: f32);
4245}
4246extern "C" {
4247    #[doc = " @brief Draws an arc to a path.\n\n This is done by using angle arc mode. In this mode, a rectangle that encloses an ellipse is specified first,\n and then a start angle and a sweep angle are specified.\n The arc is a portion of the ellipse defined by the start angle and the sweep angle.\n By default, a line segment from the last point of the path to the start point of the arc is also added.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param x1 Indicates the x coordinate of the upper left corner of the rectangle.\n @param y1 Indicates the y coordinate of the upper left corner of the rectangle.\n @param x2 Indicates the x coordinate of the lower right corner of the rectangle.\n @param y2 Indicates the y coordinate of the lower right corner of the rectangle.\n @param startDeg Indicates the start angle, in degrees.\n @param sweepDeg Indicates the angle to sweep, in degrees.\n @since 8\n @version 1.0"]
4248    pub fn OH_Drawing_PathArcTo(
4249        path: *mut OH_Drawing_Path,
4250        x1: f32,
4251        y1: f32,
4252        x2: f32,
4253        y2: f32,
4254        startDeg: f32,
4255        sweepDeg: f32,
4256    );
4257}
4258extern "C" {
4259    #[doc = " @brief Draws a quadratic Bezier curve from the last point of a path to the target point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param ctrlX Indicates the x coordinate of the control point.\n @param ctrlY Indicates the y coordinate of the control point.\n @param endX Indicates the x coordinate of the target point.\n @param endY Indicates the y coordinate of the target point.\n @since 8\n @version 1.0"]
4260    pub fn OH_Drawing_PathQuadTo(
4261        path: *mut OH_Drawing_Path,
4262        ctrlX: f32,
4263        ctrlY: f32,
4264        endX: f32,
4265        endY: f32,
4266    );
4267}
4268extern "C" {
4269    #[doc = " @brief Draws a conic from the last point of a path to the target point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param ctrlX Indicates the x coordinate of the control point.\n @param ctrlY Indicates the y coordinate of the control point.\n @param endX Indicates the x coordinate of the target point.\n @param endY Indicates the y coordinate of the target point.\n @param weight Indicates the weight of added conic.\n @since 12\n @version 1.0"]
4270    pub fn OH_Drawing_PathConicTo(
4271        path: *mut OH_Drawing_Path,
4272        ctrlX: f32,
4273        ctrlY: f32,
4274        endX: f32,
4275        endY: f32,
4276        weight: f32,
4277    );
4278}
4279extern "C" {
4280    #[doc = " @brief Draws a cubic Bezier curve from the last point of a path to the target point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param ctrlX1 Indicates the x coordinate of the first control point.\n @param ctrlY1 Indicates the y coordinate of the first control point.\n @param ctrlX2 Indicates the x coordinate of the second control point.\n @param ctrlY2 Indicates the y coordinate of the second control point.\n @param endX Indicates the x coordinate of the target point.\n @param endY Indicates the y coordinate of the target point.\n @since 8\n @version 1.0"]
4281    pub fn OH_Drawing_PathCubicTo(
4282        path: *mut OH_Drawing_Path,
4283        ctrlX1: f32,
4284        ctrlY1: f32,
4285        ctrlX2: f32,
4286        ctrlY2: f32,
4287        endX: f32,
4288        endY: f32,
4289    );
4290}
4291extern "C" {
4292    #[doc = " @brief Sets the relative starting point of a path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param x Indicates the x coordinate of the relative starting point.\n @param y Indicates the y coordinate of the relative starting point.\n @since 12\n @version 1.0"]
4293    pub fn OH_Drawing_PathRMoveTo(path: *mut OH_Drawing_Path, x: f32, y: f32);
4294}
4295extern "C" {
4296    #[doc = " @brief Draws a line segment from the last point of a path to the relative target point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param x Indicates the x coordinate of the relative target point.\n @param y Indicates the y coordinate of the relative target point.\n @since 12\n @version 1.0"]
4297    pub fn OH_Drawing_PathRLineTo(path: *mut OH_Drawing_Path, x: f32, y: f32);
4298}
4299extern "C" {
4300    #[doc = " @brief Draws a quadratic bezier curve from the last point of a path to the relative target point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param ctrlX Indicates the x coordinate of the relative control point.\n @param ctrlY Indicates the y coordinate of the relative control point.\n @param endX Indicates the x coordinate of the relative target point.\n @param endY Indicates the y coordinate of the relative target point.\n @since 12\n @version 1.0"]
4301    pub fn OH_Drawing_PathRQuadTo(
4302        path: *mut OH_Drawing_Path,
4303        ctrlX: f32,
4304        ctrlY: f32,
4305        endX: f32,
4306        endY: f32,
4307    );
4308}
4309extern "C" {
4310    #[doc = " @brief Draws a conic from the last point of a path to the relative target point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param ctrlX Indicates the x coordinate of the relative control point.\n @param ctrlY Indicates the y coordinate of the relative control point.\n @param endX Indicates the x coordinate of the relative target point.\n @param endY Indicates the y coordinate of the relative target point.\n @param weight Indicates the weight of added conic.\n @since 12\n @version 1.0"]
4311    pub fn OH_Drawing_PathRConicTo(
4312        path: *mut OH_Drawing_Path,
4313        ctrlX: f32,
4314        ctrlY: f32,
4315        endX: f32,
4316        endY: f32,
4317        weight: f32,
4318    );
4319}
4320extern "C" {
4321    #[doc = " @brief Draws a cubic bezier curve from the last point of a path to the relative target point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param ctrlX1 Indicates the x coordinate of the first relative control point.\n @param ctrlY1 Indicates the y coordinate of the first relative control point.\n @param ctrlX2 Indicates the x coordinate of the second relative control point.\n @param ctrlY2 Indicates the y coordinate of the second relative control point.\n @param endX Indicates the x coordinate of the relative target point.\n @param endY Indicates the y coordinate of the relative target point.\n @since 12\n @version 1.0"]
4322    pub fn OH_Drawing_PathRCubicTo(
4323        path: *mut OH_Drawing_Path,
4324        ctrlX1: f32,
4325        ctrlY1: f32,
4326        ctrlX2: f32,
4327        ctrlY2: f32,
4328        endX: f32,
4329        endY: f32,
4330    );
4331}
4332extern "C" {
4333    #[doc = " @brief Adds a new contour to the path, defined by the rect, and wound in the specified direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param left Indicates the left coordinate of the upper left corner of the rectangle.\n @param top Indicates the top coordinate of the upper top corner of the rectangle.\n @param right Indicates the right coordinate of the lower right corner of the rectangle.\n @param bottom Indicates the bottom coordinate of the lower bottom corner of the rectangle.\n @param pathDirection Indicates the path direction.\n @since 12\n @version 1.0"]
4334    pub fn OH_Drawing_PathAddRect(
4335        path: *mut OH_Drawing_Path,
4336        left: f32,
4337        top: f32,
4338        right: f32,
4339        bottom: f32,
4340        pathDirection: OH_Drawing_PathDirection,
4341    );
4342}
4343extern "C" {
4344    #[doc = " @brief Adds a new contour to the path, defined by the rect, and wound in the specified direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param pathDirection Indicates the path direction.\n @param start Indicates initial corner of rect to add.\n @since 12\n @version 1.0"]
4345    pub fn OH_Drawing_PathAddRectWithInitialCorner(
4346        path: *mut OH_Drawing_Path,
4347        rect: *const OH_Drawing_Rect,
4348        pathDirection: OH_Drawing_PathDirection,
4349        start: u32,
4350    );
4351}
4352extern "C" {
4353    #[doc = " @brief Adds a new contour to the path, defined by the round rect, and wound in the specified direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param roundRect Indicates the pointer to an <b>OH_Drawing_RoundRect</b> object.\n @param pathDirection Indicates the path direction.\n @since 12\n @version 1.0"]
4354    pub fn OH_Drawing_PathAddRoundRect(
4355        path: *mut OH_Drawing_Path,
4356        roundRect: *const OH_Drawing_RoundRect,
4357        pathDirection: OH_Drawing_PathDirection,
4358    );
4359}
4360extern "C" {
4361    #[doc = " @brief Adds a oval to the path, defined by the rect, and wound in the specified direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param start Index of initial point of ellipse.\n @param pathDirection Indicates the path direction.\n @since 12\n @version 1.0"]
4362    pub fn OH_Drawing_PathAddOvalWithInitialPoint(
4363        path: *mut OH_Drawing_Path,
4364        rect: *const OH_Drawing_Rect,
4365        start: u32,
4366        pathDirection: OH_Drawing_PathDirection,
4367    );
4368}
4369extern "C" {
4370    #[doc = " @brief Adds a oval to the path, defined by the rect, and wound in the specified direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param pathDirection Indicates the path direction.\n @since 12\n @version 1.0"]
4371    pub fn OH_Drawing_PathAddOval(
4372        path: *mut OH_Drawing_Path,
4373        rect: *const OH_Drawing_Rect,
4374        pathDirection: OH_Drawing_PathDirection,
4375    );
4376}
4377extern "C" {
4378    #[doc = " @brief Appends arc to path, as the start of new contour.Arc added is part of ellipse bounded by oval,\n from startAngle through sweepAngle. Both startAngle and sweepAngle are measured in degrees, where zero degrees\n is aligned with the positive x-axis, and positive sweeps extends arc clockwise.If sweepAngle <= -360, or\n sweepAngle >= 360; and startAngle modulo 90 is nearly zero, append oval instead of arc. Otherwise, sweepAngle\n values are treated modulo 360, and arc may or may not draw depending on numeric rounding.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param startAngle Indicates the starting angle of arc in degrees.\n @param sweepAngle Indicates the sweep, in degrees. Positive is clockwise.\n @since 12\n @version 1.0"]
4379    pub fn OH_Drawing_PathAddArc(
4380        path: *mut OH_Drawing_Path,
4381        rect: *const OH_Drawing_Rect,
4382        startAngle: f32,
4383        sweepAngle: f32,
4384    );
4385}
4386extern "C" {
4387    #[doc = " @brief Appends src path to path, transformed by matrix. Transformed curves may have different verbs,\n point, and conic weights.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param src Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param matrix Indicates the length of the <b>OH_Drawing_Matrix</b> object.\n @since 12\n @version 1.0"]
4388    pub fn OH_Drawing_PathAddPath(
4389        path: *mut OH_Drawing_Path,
4390        src: *const OH_Drawing_Path,
4391        matrix: *const OH_Drawing_Matrix,
4392    );
4393}
4394extern "C" {
4395    #[doc = " @brief Appends src path to path, transformed by matrix and mode. Transformed curves may have different verbs,\n point, and conic weights.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param src Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param matrix Indicates the length of the <b>OH_Drawing_Matrix</b> object.\n @param pathAddMode Indicates the add path's add mode.\n @since 12\n @version 1.0"]
4396    pub fn OH_Drawing_PathAddPathWithMatrixAndMode(
4397        path: *mut OH_Drawing_Path,
4398        src: *const OH_Drawing_Path,
4399        matrix: *const OH_Drawing_Matrix,
4400        pathAddMode: OH_Drawing_PathAddMode,
4401    );
4402}
4403extern "C" {
4404    #[doc = " @brief Appends src path to path, transformed by mode. Transformed curves may have different verbs,\n point, and conic weights.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param src Indicates the pointer to an <b>OH_Drawing_Path</b> object, which is Appends src path to path.\n @param pathAddMode Indicates the add path's add mode.\n @since 12\n @version 1.0"]
4405    pub fn OH_Drawing_PathAddPathWithMode(
4406        path: *mut OH_Drawing_Path,
4407        src: *const OH_Drawing_Path,
4408        pathAddMode: OH_Drawing_PathAddMode,
4409    );
4410}
4411extern "C" {
4412    #[doc = " @brief Appends src path to path, transformed by offset and mode. Transformed curves may have different verbs,\n point, and conic weights.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param src Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param dx Indicates offset added to src path x-axis coordinates.\n @param dy Indicates offset added to src path y-axis coordinates.\n @param pathAddMode Indicates the add path's add mode.\n @since 12\n @version 1.0"]
4413    pub fn OH_Drawing_PathAddPathWithOffsetAndMode(
4414        path: *mut OH_Drawing_Path,
4415        src: *const OH_Drawing_Path,
4416        dx: f32,
4417        dy: f32,
4418        pathAddMode: OH_Drawing_PathAddMode,
4419    );
4420}
4421extern "C" {
4422    #[doc = " @brief Adds contour created from point array, adding (count - 1) line segments.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param points Indicates the point array.\n @param count Indicates the size of point array.\n @param isClosed Indicates Whether to add lines that connect the end and start.\n @since 12\n @version 1.0"]
4423    pub fn OH_Drawing_PathAddPolygon(
4424        path: *mut OH_Drawing_Path,
4425        points: *const OH_Drawing_Point2D,
4426        count: u32,
4427        isClosed: bool,
4428    );
4429}
4430extern "C" {
4431    #[doc = " @brief  Adds a circle to the path, and wound in the specified direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param x Indicates the x coordinate of the center of the circle.\n @param y Indicates the y coordinate of the center of the circle.\n @param radius Indicates the radius of the circle.\n @param pathDirection Indicates the path direction.\n @since 12\n @version 1.0"]
4432    pub fn OH_Drawing_PathAddCircle(
4433        path: *mut OH_Drawing_Path,
4434        x: f32,
4435        y: f32,
4436        radius: f32,
4437        pathDirection: OH_Drawing_PathDirection,
4438    );
4439}
4440extern "C" {
4441    #[doc = " @brief Parses the svg path from the string.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param str Indicates the string of the SVG path.\n @return Returns true if build path is successful, returns false otherwise.\n @since 12\n @version 1.0"]
4442    pub fn OH_Drawing_PathBuildFromSvgString(
4443        path: *mut OH_Drawing_Path,
4444        str_: *const ::std::os::raw::c_char,
4445    ) -> bool;
4446}
4447extern "C" {
4448    #[doc = " @brief Return the status that point (x, y) is contained by path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param x Indicates the x-axis value of containment test.\n @param y Indicates the y-axis value of containment test.\n @return Returns true if the point (x, y) is contained by path.\n @since 12\n @version 1.0"]
4449    pub fn OH_Drawing_PathContains(path: *mut OH_Drawing_Path, x: f32, y: f32) -> bool;
4450}
4451extern "C" {
4452    #[doc = " @brief Transforms verb array, point array, and weight by matrix. transform may change verbs\n and increase their number. path is replaced by transformed data.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @since 12\n @version 1.0"]
4453    pub fn OH_Drawing_PathTransform(path: *mut OH_Drawing_Path, matrix: *const OH_Drawing_Matrix);
4454}
4455extern "C" {
4456    #[doc = " @brief Transforms verb array, point array, and weight by matrix.\n Transform may change verbs and increase their number.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param src Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param dst Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param applyPerspectiveClip Indicates whether to apply perspective clip.\n @since 12\n @version 1.0"]
4457    pub fn OH_Drawing_PathTransformWithPerspectiveClip(
4458        src: *mut OH_Drawing_Path,
4459        matrix: *const OH_Drawing_Matrix,
4460        dst: *mut OH_Drawing_Path,
4461        applyPerspectiveClip: bool,
4462    );
4463}
4464extern "C" {
4465    #[doc = " @brief Sets FillType, the rule used to fill path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param pathFillType Indicates the add path's fill type.\n @since 12\n @version 1.0"]
4466    pub fn OH_Drawing_PathSetFillType(
4467        path: *mut OH_Drawing_Path,
4468        pathFillType: OH_Drawing_PathFillType,
4469    );
4470}
4471extern "C" {
4472    #[doc = " @brief Gets FillType, the rule used to fill path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param pathFillType Indicates the FillType apply to path.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or pathFillType is nullptr.\n @since 20\n @version 1.0"]
4473    #[cfg(feature = "api-20")]
4474    pub fn OH_Drawing_PathGetFillType(
4475        path: *mut OH_Drawing_Path,
4476        pathFillType: *mut OH_Drawing_PathFillType,
4477    ) -> OH_Drawing_ErrorCode;
4478}
4479extern "C" {
4480    #[doc = " @brief Gets the length of the current path object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param forceClosed Indicates whether free to modify/delete the path after this call.\n @return Returns the length of the current path object.\n @since 12\n @version 1.0"]
4481    pub fn OH_Drawing_PathGetLength(path: *mut OH_Drawing_Path, forceClosed: bool) -> f32;
4482}
4483extern "C" {
4484    #[doc = " @brief Gets the smallest bounding box that contains the path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @since 12\n @version 1.0"]
4485    pub fn OH_Drawing_PathGetBounds(path: *mut OH_Drawing_Path, rect: *mut OH_Drawing_Rect);
4486}
4487extern "C" {
4488    #[doc = " @brief Closes a path. A line segment from the start point to the last point of the path is added.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @since 8\n @version 1.0"]
4489    pub fn OH_Drawing_PathClose(path: *mut OH_Drawing_Path);
4490}
4491extern "C" {
4492    #[doc = " @brief Offset path replaces dst.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param dst Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param dx Indicates offset added to dst path x-axis coordinates.\n @param dy Indicates offset added to dst path y-axis coordinates.\n @since 12\n @version 1.0"]
4493    pub fn OH_Drawing_PathOffset(
4494        path: *mut OH_Drawing_Path,
4495        dst: *mut OH_Drawing_Path,
4496        dx: f32,
4497        dy: f32,
4498    );
4499}
4500extern "C" {
4501    #[doc = " @brief Resets path data.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @since 8\n @version 1.0"]
4502    pub fn OH_Drawing_PathReset(path: *mut OH_Drawing_Path);
4503}
4504extern "C" {
4505    #[doc = " @brief Determines whether the path current contour is closed.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param forceClosed Whether to close the Path.\n @return Returns <b>true</b> if the path current contour is closed; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
4506    pub fn OH_Drawing_PathIsClosed(path: *mut OH_Drawing_Path, forceClosed: bool) -> bool;
4507}
4508extern "C" {
4509    #[doc = " @brief Gets the position and tangent of the distance from the starting position of the Path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param forceClosed Whether to close the Path.\n @param distance The distance from the start of the Path.\n @param position Sets to the position of distance from the starting position of the Path.\n @param tangent Sets to the tangent of distance from the starting position of the Path.\n @return Returns <b>true</b> if succeeded; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
4510    pub fn OH_Drawing_PathGetPositionTangent(
4511        path: *mut OH_Drawing_Path,
4512        forceClosed: bool,
4513        distance: f32,
4514        position: *mut OH_Drawing_Point2D,
4515        tangent: *mut OH_Drawing_Point2D,
4516    ) -> bool;
4517}
4518extern "C" {
4519    #[doc = " @brief Gets the path between the start and end points.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param forceClosed Whether to close the path.\n @param start The distance from the starting point of the segment to the starting point of the path.\n @param stop The distance from the end point of the segment to the starting point of the path.\n @param startWithMoveTo Whether the path obtained moveTo to the starting segment.\n @param dst The path obtained.\n @param result Indicates the result of getting the path segment.\n               The value is false if the segment is zero-length or start >= stop, and true otherwise.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if any of path, dst and result is nullptr.\n @since 18\n @version 1.0"]
4520    #[cfg(feature = "api-18")]
4521    pub fn OH_Drawing_PathGetSegment(
4522        path: *mut OH_Drawing_Path,
4523        forceClosed: bool,
4524        start: f32,
4525        stop: f32,
4526        startWithMoveTo: bool,
4527        dst: *mut OH_Drawing_Path,
4528        result: *mut bool,
4529    ) -> OH_Drawing_ErrorCode;
4530}
4531extern "C" {
4532    #[doc = " @brief Combines two paths.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param op Indicates the operation to apply to combine.\n @return Returns <b>true</b> if constructed path is not empty; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
4533    pub fn OH_Drawing_PathOp(
4534        path: *mut OH_Drawing_Path,
4535        other: *const OH_Drawing_Path,
4536        op: OH_Drawing_PathOpMode,
4537    ) -> bool;
4538}
4539extern "C" {
4540    #[doc = " @brief Computes the corresponding matrix at the specified distance.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param forceClosed Whether to close the Path.\n @param distance The distance from the start of the Path.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object.\n @param flag Indicates what should be returned in the matrix.\n @return Returns <b>false</b> if path is nullptr or zero-length;\nreturns <b>true</b> if path is not nullptr and not zero-length.\n @since 12\n @version 1.0"]
4541    pub fn OH_Drawing_PathGetMatrix(
4542        path: *mut OH_Drawing_Path,
4543        forceClosed: bool,
4544        distance: f32,
4545        matrix: *mut OH_Drawing_Matrix,
4546        flag: OH_Drawing_PathMeasureMatrixFlags,
4547    ) -> bool;
4548}
4549extern "C" {
4550    #[doc = " @brief Approximates the path with a series of line segments.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param acceptableError Indicates the acceptable error for a line on the path. Should be no less than 0.\n @param vals Indicates the storage for the computed array containing point components.\n There are three components for each point:\n 1.Fraction along the length of the path that the point resides.\n 2.The x coordinate of the point.\n 3.The y coordinate of the point.\n @param count Returns with the size of array.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if path or count is nullptr.\n         Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if acceptableError is less than 0.\n @since 20\n @version 1.0"]
4551    #[cfg(feature = "api-20")]
4552    pub fn OH_Drawing_PathApproximate(
4553        path: *mut OH_Drawing_Path,
4554        acceptableError: f32,
4555        vals: *mut f32,
4556        count: *mut u32,
4557    ) -> OH_Drawing_ErrorCode;
4558}
4559extern "C" {
4560    #[doc = " @brief Performs interpolation between the current path and another path based on a given weight, and stores the\n result in the target path object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Path</b> object to be interpolated with path.\n @param weight Indicates the interpolation weight, which must be in the range [0, 1].\n @param success Indicates the interpolation is success or not.\n @param interpolatedPath Indicates the pointer to an <b>OH_Drawing_Path</b> object to store the result.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other, success or interpolatedPath is\n                 nullptr.\n         Returns {@link OH_DRAWING_ERROR_PARAMETER_OUT_OF_RANGE} if weight is outside the range [0, 1].\n @since 20\n @version 1.0"]
4561    #[cfg(feature = "api-20")]
4562    pub fn OH_Drawing_PathInterpolate(
4563        path: *mut OH_Drawing_Path,
4564        other: *mut OH_Drawing_Path,
4565        weight: f32,
4566        success: *mut bool,
4567        interpolatedPath: *mut OH_Drawing_Path,
4568    ) -> OH_Drawing_ErrorCode;
4569}
4570extern "C" {
4571    #[doc = " @brief Checks whether the current path is compatible with another path (other) for interpolation, which means\n they have exactly the same structure, both paths must have the same operations, in the same order.\n If any of the operations are of type CONIC, then the weights of those conics must also match.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Path</b> object to be interpolated with path.\n @param result Indicates whether the current path and the other path are compatible for interpolation.\n               The value is true if the paths are compatible, and false otherwise.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either path, other or result is nullptr.\n @since 20\n @version 1.0"]
4572    #[cfg(feature = "api-20")]
4573    pub fn OH_Drawing_PathIsInterpolate(
4574        path: *mut OH_Drawing_Path,
4575        other: *mut OH_Drawing_Path,
4576        result: *mut bool,
4577    ) -> OH_Drawing_ErrorCode;
4578}
4579extern "C" {
4580    #[doc = " @brief Checks if the fill type is one of the INVERSE variants.\n\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param isInverse Indicates if the filltype is one of the INVERSE variants.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if path or isInverse is nullptr.\n @since 23\n @version 1.0"]
4581    #[cfg(feature = "api-23")]
4582    pub fn OH_Drawing_PathIsInverseFillType(
4583        path: *const OH_Drawing_Path,
4584        isInverse: *mut bool,
4585    ) -> OH_Drawing_ErrorCode;
4586}
4587extern "C" {
4588    #[doc = " @brief Toggles the INVERSE state of the filltype.\n\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if path is nullptr.\n @since 23\n @version 1.0"]
4589    #[cfg(feature = "api-23")]
4590    pub fn OH_Drawing_PathToggleInverseFillType(path: *mut OH_Drawing_Path)
4591        -> OH_Drawing_ErrorCode;
4592}
4593#[doc = " Indicates translation effect."]
4594#[cfg(feature = "api-18")]
4595pub const OH_Drawing_PathDashStyle_DRAWING_PATH_DASH_STYLE_TRANSLATE: OH_Drawing_PathDashStyle = 0;
4596#[doc = " Indicates rotation effect."]
4597#[cfg(feature = "api-18")]
4598pub const OH_Drawing_PathDashStyle_DRAWING_PATH_DASH_STYLE_ROTATE: OH_Drawing_PathDashStyle = 1;
4599#[doc = " Indicates morph effect."]
4600#[cfg(feature = "api-18")]
4601pub const OH_Drawing_PathDashStyle_DRAWING_PATH_DASH_STYLE_MORPH: OH_Drawing_PathDashStyle = 2;
4602#[doc = " @brief Enumerate path dash style.\n\n @since 18\n @version 1.0"]
4603#[cfg(feature = "api-18")]
4604pub type OH_Drawing_PathDashStyle = u32;
4605extern "C" {
4606    #[doc = " @brief Creates an <b>OH_Drawing_PathEffect</b> object that is a combination of paths,\n applying the inner path effect first and then the outer path effect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param outer Indicates an <b>OH_Drawing_PathEffect</b> object\n @param inner Indicates an <b>OH_Drawing_PathEffect</b> object\n @return Returns the pointer to the <b>OH_Drawing_PathEffect</b> object created.\n @since 18\n @version 1.0"]
4607    #[cfg(feature = "api-18")]
4608    pub fn OH_Drawing_CreateComposePathEffect(
4609        outer: *mut OH_Drawing_PathEffect,
4610        inner: *mut OH_Drawing_PathEffect,
4611    ) -> *mut OH_Drawing_PathEffect;
4612}
4613extern "C" {
4614    #[doc = " @brief Creates an <b>OH_Drawing_PathEffect</b> object\n that turns the included angle of the path into a fillet of a specified radius.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param radius Indicates the degree of curvature of the arc, the radius must be greater than zero.\n @return Returns the pointer to the <b>OH_Drawing_PathEffect</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is radius is zero or less.\n @since 18\n @version 1.0"]
4615    #[cfg(feature = "api-18")]
4616    pub fn OH_Drawing_CreateCornerPathEffect(radius: f32) -> *mut OH_Drawing_PathEffect;
4617}
4618extern "C" {
4619    #[doc = " @brief Creates an <b>OH_Drawing_PathEffect</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param intervals Indicates a array which contain an even number of entries.\n @param count Indicates the number of elements of the intervals array.\n @param phase Indicates the offset into intervals array.\n @return Returns the pointer to the <b>OH_Drawing_PathEffect</b> object created.\n @since 12\n @version 1.0"]
4620    pub fn OH_Drawing_CreateDashPathEffect(
4621        intervals: *mut f32,
4622        count: ::std::os::raw::c_int,
4623        phase: f32,
4624    ) -> *mut OH_Drawing_PathEffect;
4625}
4626extern "C" {
4627    #[doc = " @brief Creates an <b>OH_Drawing_PathEffect</b> object\n that breaks the path and creates an irregular distribution on the path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param segLength Indicates the maximum segment length of the path.\n @param deviation Indicates the deviation during drawing.\n @return Returns the pointer to the <b>OH_Drawing_PathEffect</b> object created.\n @since 18\n @version 1.0"]
4628    #[cfg(feature = "api-18")]
4629    pub fn OH_Drawing_CreateDiscretePathEffect(
4630        segLength: f32,
4631        deviation: f32,
4632    ) -> *mut OH_Drawing_PathEffect;
4633}
4634extern "C" {
4635    #[doc = " @brief Creates an <b>OH_Drawing_PathEffect</b> object and sets the path effect to a dash effect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param advance Indicates the distance between the dashed segments.\n @param phase Indicates the offset into intervals array.\n @param type Indicates the type of the path dash effect.\n @return Returns the pointer to the <b>OH_Drawing_PathEffect</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is advance and phase are zero or less.\n @since 18\n @version 1.0"]
4636    #[cfg(feature = "api-18")]
4637    pub fn OH_Drawing_CreatePathDashEffect(
4638        path: *const OH_Drawing_Path,
4639        advance: f32,
4640        phase: f32,
4641        type_: OH_Drawing_PathDashStyle,
4642    ) -> *mut OH_Drawing_PathEffect;
4643}
4644extern "C" {
4645    #[doc = " @brief Creates an <b>OH_Drawing_PathEffect</b> object by overlaying two path effects.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param firstPathEffect Indicates the pointer to an <b>OH_Drawing_PathEffect</b> object.\n @param secondPathEffect Indicates the pointer to an <b>OH_Drawing_PathEffect</b> object.\n @return Returns the pointer to the <b>OH_Drawing_PathEffect</b> object created.\n @since 18\n @version 1.0"]
4646    #[cfg(feature = "api-18")]
4647    pub fn OH_Drawing_CreateSumPathEffect(
4648        firstPathEffect: *mut OH_Drawing_PathEffect,
4649        secondPathEffect: *mut OH_Drawing_PathEffect,
4650    ) -> *mut OH_Drawing_PathEffect;
4651}
4652extern "C" {
4653    #[doc = " @brief Destroys an <b>OH_Drawing_PathEffect</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pathEffect Indicates the pointer to an <b>OH_Drawing_PathEffect</b> object.\n @since 12\n @version 1.0"]
4654    pub fn OH_Drawing_PathEffectDestroy(pathEffect: *mut OH_Drawing_PathEffect);
4655}
4656extern "C" {
4657    #[doc = " @brief Creates an <b>OH_Drawing_Pen</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Pen</b> object created.\n @since 8\n @version 1.0"]
4658    pub fn OH_Drawing_PenCreate() -> *mut OH_Drawing_Pen;
4659}
4660extern "C" {
4661    #[doc = " @brief Creates an <b>OH_Drawing_Pen</b> copy object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Pen</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty or a nullptr is passed.\n @since 12\n @version 1.0"]
4662    pub fn OH_Drawing_PenCopy(pen: *mut OH_Drawing_Pen) -> *mut OH_Drawing_Pen;
4663}
4664extern "C" {
4665    #[doc = " @brief Destroys an <b>OH_Drawing_Pen</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @since 8\n @version 1.0"]
4666    pub fn OH_Drawing_PenDestroy(pen: *mut OH_Drawing_Pen);
4667}
4668extern "C" {
4669    #[doc = " @brief Checks whether anti-aliasing is enabled for a pen. If anti-aliasing is enabled,\n edges will be drawn with partial transparency.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @return Returns <b>true</b> if anti-aliasing is enabled; returns <b>false</b> otherwise.\n @since 8\n @version 1.0"]
4670    pub fn OH_Drawing_PenIsAntiAlias(pen: *const OH_Drawing_Pen) -> bool;
4671}
4672extern "C" {
4673    #[doc = " @brief Enables or disables anti-aliasing for a pen. If anti-aliasing is enabled,\n edges will be drawn with partial transparency.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param antiAlias Specifies whether to enable anti-aliasing. The value <b>true</b> means\n             to enable anti-aliasing, and <b>false</b> means the opposite.\n @since 8\n @version 1.0"]
4674    pub fn OH_Drawing_PenSetAntiAlias(pen: *mut OH_Drawing_Pen, antiAlias: bool);
4675}
4676extern "C" {
4677    #[doc = " @brief Obtains the color of a pen. The color is used by the pen to outline a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @return Returns a 32-bit (ARGB) variable that describes the color.\n @since 8\n @version 1.0"]
4678    pub fn OH_Drawing_PenGetColor(pen: *const OH_Drawing_Pen) -> u32;
4679}
4680extern "C" {
4681    #[doc = " @brief Sets the color for a pen. The color is used by the pen to outline a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param color Indicates the color to set, which is a 32-bit (ARGB) variable.\n @since 8\n @version 1.0"]
4682    pub fn OH_Drawing_PenSetColor(pen: *mut OH_Drawing_Pen, color: u32);
4683}
4684extern "C" {
4685    #[doc = " @brief Obtains the alpha of a pen. The alpha is used by the pen to outline a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @return Returns a 8-bit variable that describes the alpha.\n @since 11\n @version 1.0"]
4686    pub fn OH_Drawing_PenGetAlpha(pen: *const OH_Drawing_Pen) -> u8;
4687}
4688extern "C" {
4689    #[doc = " @brief Sets the alpha for a pen. The alpha is used by the pen to outline a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param alpha Indicates the alpha to set, which is a 8-bit variable.\n @since 11\n @version 1.0"]
4690    pub fn OH_Drawing_PenSetAlpha(pen: *mut OH_Drawing_Pen, alpha: u8);
4691}
4692extern "C" {
4693    #[doc = " @brief Sets the color for a pen. The color will be used by the pen to fill in a shape.\n The color is an ARGB structure described by floating point numbers and interpreted as being in the colorSpaceManager.\n If colorSpaceManager is nullptr, then color is assumed to be in the sRGB color space.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param a Indicates the alpha component of color, represented as a floating point number between 0 and 1.\n @param r Indicates the red component of color, represented as a floating point number between 0 and 1.\n @param g Indicates the green component of color, represented as a floating point number between 0 and 1.\n @param b Indicates the blue component of color, represented as a floating point number between 0 and 1.\n @param colorSpaceManager Indicates the pointer to an <b>OH_NativeColorSpaceManager</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen is nullptr.\n @since 20\n @version 1.0"]
4694    #[cfg(feature = "api-20")]
4695    pub fn OH_Drawing_PenSetColor4f(
4696        pen: *mut OH_Drawing_Pen,
4697        a: f32,
4698        r: f32,
4699        g: f32,
4700        b: f32,
4701        colorSpaceManager: *mut OH_NativeColorSpaceManager,
4702    ) -> OH_Drawing_ErrorCode;
4703}
4704extern "C" {
4705    #[doc = " @brief Obtains the alpha component of a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param a Indicates the alpha component of color.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen or a is nullptr.\n @since 20\n @version 1.0"]
4706    #[cfg(feature = "api-20")]
4707    pub fn OH_Drawing_PenGetAlphaFloat(
4708        pen: *mut OH_Drawing_Pen,
4709        a: *mut f32,
4710    ) -> OH_Drawing_ErrorCode;
4711}
4712extern "C" {
4713    #[doc = " @brief Obtains the red component of a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param r Indicates the red component of color.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen or r is nullptr.\n @since 20\n @version 1.0"]
4714    #[cfg(feature = "api-20")]
4715    pub fn OH_Drawing_PenGetRedFloat(pen: *mut OH_Drawing_Pen, r: *mut f32)
4716        -> OH_Drawing_ErrorCode;
4717}
4718extern "C" {
4719    #[doc = " @brief Obtains the green component of a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param g Indicates the green component of color.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen or g is nullptr.\n @since 20\n @version 1.0"]
4720    #[cfg(feature = "api-20")]
4721    pub fn OH_Drawing_PenGetGreenFloat(
4722        pen: *mut OH_Drawing_Pen,
4723        g: *mut f32,
4724    ) -> OH_Drawing_ErrorCode;
4725}
4726extern "C" {
4727    #[doc = " @brief Obtains the blue component of a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param b Indicates the blue component of color.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if pen or b is nullptr.\n @since 20\n @version 1.0"]
4728    #[cfg(feature = "api-20")]
4729    pub fn OH_Drawing_PenGetBlueFloat(
4730        pen: *mut OH_Drawing_Pen,
4731        b: *mut f32,
4732    ) -> OH_Drawing_ErrorCode;
4733}
4734extern "C" {
4735    #[doc = " @brief Obtains the thickness of a pen. This thickness determines the width of the outline of a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @return Returns the thickness.\n @since 8\n @version 1.0"]
4736    pub fn OH_Drawing_PenGetWidth(pen: *const OH_Drawing_Pen) -> f32;
4737}
4738extern "C" {
4739    #[doc = " @brief Sets the thickness for a pen. This thickness determines the width of the outline of a shape.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param width Indicates the thickness to set, which is a variable.\n @since 8\n @version 1.0"]
4740    pub fn OH_Drawing_PenSetWidth(pen: *mut OH_Drawing_Pen, width: f32);
4741}
4742extern "C" {
4743    #[doc = " @brief Obtains the stroke miter limit of a polyline drawn by a pen.\n\n When the corner type is bevel, a beveled corner is displayed if the miter limit is exceeded,\n and a mitered corner is displayed if the miter limit is not exceeded.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @return Returns the miter limit.\n @since 8\n @version 1.0"]
4744    pub fn OH_Drawing_PenGetMiterLimit(pen: *const OH_Drawing_Pen) -> f32;
4745}
4746extern "C" {
4747    #[doc = " @brief Sets the stroke miter limit for a polyline drawn by a pen.\n\n When the corner type is bevel, a beveled corner is displayed if the miter limit is exceeded,\n and a mitered corner is displayed if the miter limit is not exceeded.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param miter Indicates a variable that describes the miter limit.\n @since 8\n @version 1.0"]
4748    pub fn OH_Drawing_PenSetMiterLimit(pen: *mut OH_Drawing_Pen, miter: f32);
4749}
4750#[doc = " There is no cap style. Both ends of the line segment are cut off square."]
4751pub const OH_Drawing_PenLineCapStyle_LINE_FLAT_CAP: OH_Drawing_PenLineCapStyle = 0;
4752#[doc = " Square cap style. Both ends have a square, the height of which\n is half of the width of the line segment, with the same width."]
4753pub const OH_Drawing_PenLineCapStyle_LINE_SQUARE_CAP: OH_Drawing_PenLineCapStyle = 1;
4754#[doc = " Round cap style. Both ends have a semicircle centered, the diameter of which\n is the same as the width of the line segment."]
4755pub const OH_Drawing_PenLineCapStyle_LINE_ROUND_CAP: OH_Drawing_PenLineCapStyle = 2;
4756#[doc = " @brief Enumerates line cap styles of a pen. The line cap style defines\n the style of both ends of a line segment drawn by the pen.\n\n @since 8\n @version 1.0"]
4757pub type OH_Drawing_PenLineCapStyle = u32;
4758extern "C" {
4759    #[doc = " @brief Obtains the line cap style of a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @return Returns the line cap style.\n @since 8\n @version 1.0"]
4760    pub fn OH_Drawing_PenGetCap(pen: *const OH_Drawing_Pen) -> OH_Drawing_PenLineCapStyle;
4761}
4762extern "C" {
4763    #[doc = " @brief Sets the line cap style for a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param capStyle Indicates a variable that describes the line cap style.\n @since 8\n @version 1.0"]
4764    pub fn OH_Drawing_PenSetCap(pen: *mut OH_Drawing_Pen, capStyle: OH_Drawing_PenLineCapStyle);
4765}
4766#[doc = " Mitered corner. If the angle of a polyline is small, its miter length may be inappropriate.\n In this case, you need to use the miter limit to limit the miter length."]
4767pub const OH_Drawing_PenLineJoinStyle_LINE_MITER_JOIN: OH_Drawing_PenLineJoinStyle = 0;
4768#[doc = " Round corner."]
4769pub const OH_Drawing_PenLineJoinStyle_LINE_ROUND_JOIN: OH_Drawing_PenLineJoinStyle = 1;
4770#[doc = " Beveled corner."]
4771pub const OH_Drawing_PenLineJoinStyle_LINE_BEVEL_JOIN: OH_Drawing_PenLineJoinStyle = 2;
4772#[doc = " @brief Enumerates pen line join styles. The line join style defines\n the shape of the joints of a polyline segment drawn by the pen.\n\n @since 8\n @version 1.0"]
4773pub type OH_Drawing_PenLineJoinStyle = u32;
4774extern "C" {
4775    #[doc = " @brief Obtains the line join style of a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @return Returns the line join style.\n @since 8\n @version 1.0"]
4776    pub fn OH_Drawing_PenGetJoin(pen: *const OH_Drawing_Pen) -> OH_Drawing_PenLineJoinStyle;
4777}
4778extern "C" {
4779    #[doc = " @brief Sets the line join style for a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param joinStyle Indicates a variable that describes the line join style.\n @since 8\n @version 1.0"]
4780    pub fn OH_Drawing_PenSetJoin(pen: *mut OH_Drawing_Pen, joinStyle: OH_Drawing_PenLineJoinStyle);
4781}
4782extern "C" {
4783    #[doc = " @brief Sets the shaderEffect for a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param shaderEffect Indicates the pointer to an <b>OH_Drawing_ShaderEffect</b> object.\n @since 11\n @version 1.0"]
4784    pub fn OH_Drawing_PenSetShaderEffect(
4785        pen: *mut OH_Drawing_Pen,
4786        shaderEffect: *mut OH_Drawing_ShaderEffect,
4787    );
4788}
4789extern "C" {
4790    #[doc = " @brief Sets the shadowLayer for a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param shadowLayer Indicates the pointer to an <b>OH_Drawing_ShadowLayer</b> object.\n @since 12\n @version 1.0"]
4791    pub fn OH_Drawing_PenSetShadowLayer(
4792        pen: *mut OH_Drawing_Pen,
4793        shadowLayer: *mut OH_Drawing_ShadowLayer,
4794    );
4795}
4796extern "C" {
4797    #[doc = " @brief Sets the pathEffect for a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param pathEffect Indicates the pointer to an <b>OH_Drawing_PathEffect</b> object.\n @since 12\n @version 1.0"]
4798    pub fn OH_Drawing_PenSetPathEffect(
4799        pen: *mut OH_Drawing_Pen,
4800        pathEffect: *mut OH_Drawing_PathEffect,
4801    );
4802}
4803extern "C" {
4804    #[doc = " @brief Sets the filter for a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @since 11\n @version 1.0"]
4805    pub fn OH_Drawing_PenSetFilter(pen: *mut OH_Drawing_Pen, filter: *mut OH_Drawing_Filter);
4806}
4807extern "C" {
4808    #[doc = " @brief Gets the filter from a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param filter Indicates the pointer to an <b>OH_Drawing_Filter</b> object.\n @since 12\n @version 1.0"]
4809    pub fn OH_Drawing_PenGetFilter(pen: *mut OH_Drawing_Pen, filter: *mut OH_Drawing_Filter);
4810}
4811extern "C" {
4812    #[doc = " @brief Sets a blender that implements the specified blendmode enum for a pen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param blendMode Indicates the blend mode.\n @since 12\n @version 1.0"]
4813    pub fn OH_Drawing_PenSetBlendMode(pen: *mut OH_Drawing_Pen, blendMode: OH_Drawing_BlendMode);
4814}
4815extern "C" {
4816    #[doc = " @brief Gets the filled equivalent of the src path.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @param src Indicates the Path read to create a filled version.\n @param dst Indicates the resulting Path.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object that limits the PathEffect area if\nPen has PathEffect.\n @param matrix Indicates the pointer to an <b>OH_Drawing_Matrix</b> object that tranfomation applied to\nPathEffect if Pen has PathEffect.\n @return Returns true if get successes; false if get fails.\n @since 12\n @version 1.0"]
4817    pub fn OH_Drawing_PenGetFillPath(
4818        pen: *mut OH_Drawing_Pen,
4819        src: *const OH_Drawing_Path,
4820        dst: *mut OH_Drawing_Path,
4821        rect: *const OH_Drawing_Rect,
4822        matrix: *const OH_Drawing_Matrix,
4823    ) -> bool;
4824}
4825extern "C" {
4826    #[doc = " @brief Resets all pen contents to their initial values.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pen Indicates the pointer to an <b>OH_Drawing_Pen</b> object.\n @since 12\n @version 1.0"]
4827    pub fn OH_Drawing_PenReset(pen: *mut OH_Drawing_Pen);
4828}
4829extern "C" {
4830    #[doc = " @brief Gets an <b>OH_Drawing_PixelMap</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param nativePixelMap Indicates a pointer to an native pixelmap supported by image framework.\n @return Returns the pointer to the <b>OH_Drawing_PixelMap</b> object.\n @since 12\n @version 1.0"]
4831    pub fn OH_Drawing_PixelMapGetFromNativePixelMap(
4832        nativePixelMap: *mut NativePixelMap_,
4833    ) -> *mut OH_Drawing_PixelMap;
4834}
4835extern "C" {
4836    #[doc = " @brief Gets an <b>OH_Drawing_PixelMap</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pixelmapNative Indicates a pointer to the <b>OH_PixelmapNative</b> object supported by image framework.\n @return Returns the pointer to the <b>OH_Drawing_PixelMap</b> object.\n         If nullptr is returned, the get operation fails.\n         The possible cause of the failure is that a nullptr is passed.\n @since 12\n @version 1.0"]
4837    pub fn OH_Drawing_PixelMapGetFromOhPixelMapNative(
4838        pixelmapNative: *mut OH_PixelmapNative,
4839    ) -> *mut OH_Drawing_PixelMap;
4840}
4841extern "C" {
4842    #[doc = " @brief Dissolves the relationship between <b>OH_Drawing_PixelMap</b> object and <b>NativePixelMap_</b> or\n<b>OH_PixelmapNative</b> which is build by 'GetFrom' function.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param pixelMap Indicates a pointer to the <b>OH_Drawing_PixelMap</b>.\n @since 12\n @version 1.0"]
4843    pub fn OH_Drawing_PixelMapDissolve(pixelMap: *mut OH_Drawing_PixelMap);
4844}
4845extern "C" {
4846    #[doc = " @brief Creates an <b>OH_Drawing_Point</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param x Indicates the x-axis coordinates of the point.\n @param y Indicates the y-axis coordinates of the point.\n @return Returns the pointer to the <b>OH_Drawing_Point</b> object created.\n @since 11\n @version 1.0"]
4847    pub fn OH_Drawing_PointCreate(x: f32, y: f32) -> *mut OH_Drawing_Point;
4848}
4849extern "C" {
4850    #[doc = " @brief Gets the x-axis coordinate of the point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param point Indicates the pointer to an <b>OH_Drawing_Point</b> object.\n @param x Indicates the x-axis coordinate of the point.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if point or x is nullptr.\n @since 12\n @version 1.0"]
4851    pub fn OH_Drawing_PointGetX(
4852        point: *const OH_Drawing_Point,
4853        x: *mut f32,
4854    ) -> OH_Drawing_ErrorCode;
4855}
4856extern "C" {
4857    #[doc = " @brief Gets the y-axis coordinate of the point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param point Indicates the pointer to an <b>OH_Drawing_Point</b> object.\n @param y Indicates the y-axis coordinate of the point.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if point or y is nullptr.\n @since 12\n @version 1.0"]
4858    pub fn OH_Drawing_PointGetY(
4859        point: *const OH_Drawing_Point,
4860        y: *mut f32,
4861    ) -> OH_Drawing_ErrorCode;
4862}
4863extern "C" {
4864    #[doc = " @brief Sets the x-axis and y-axis coordinates of the point.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param point Indicates the pointer to an <b>OH_Drawing_Point</b> object.\n @param x Indicates the x-axis coordinate of the point.\n @param y Indicates the y-axis coordinate of the point.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if point is nullptr.\n @since 12\n @version 1.0"]
4865    pub fn OH_Drawing_PointSet(
4866        point: *mut OH_Drawing_Point,
4867        x: f32,
4868        y: f32,
4869    ) -> OH_Drawing_ErrorCode;
4870}
4871extern "C" {
4872    #[doc = " @brief Destroys an <b>OH_Drawing_Point</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param point Indicates the pointer to an <b>OH_Drawing_Point</b> object.\n @since 11\n @version 1.0"]
4873    pub fn OH_Drawing_PointDestroy(point: *mut OH_Drawing_Point);
4874}
4875extern "C" {
4876    #[doc = " @brief Creates an <b>OH_Drawing_RecordCmdUtils</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_RecordCmdUtils</b> object created.\n @since 13\n @version 1.0"]
4877    #[cfg(feature = "api-13")]
4878    pub fn OH_Drawing_RecordCmdUtilsCreate() -> *mut OH_Drawing_RecordCmdUtils;
4879}
4880extern "C" {
4881    #[doc = " @brief Destroys an <b>OH_Drawing_RecordCmdUtils</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param recordCmdUtils Indicates the pointer to an <b>OH_Drawing_RecordCmdUtils</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if recordCmdUtils is nullptr.\n @since 13\n @version 1.0"]
4882    #[cfg(feature = "api-13")]
4883    pub fn OH_Drawing_RecordCmdUtilsDestroy(
4884        recordCmdUtils: *mut OH_Drawing_RecordCmdUtils,
4885    ) -> OH_Drawing_ErrorCode;
4886}
4887extern "C" {
4888    #[doc = " @brief Get the canvas that records the drawing command.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param recordCmdUtils Indicates the pointer to an <b>OH_Drawing_RecordCmdUtils</b> object.\n @param width Width of canvas object.\n @param height Height of canvas object.\n @param canvas Indicates a secondary pointer to an <b>OH_Drawing_Canvas</b>object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if recordCmdUtils or canvas is nullptr,\n         width less than or equal to 0 or height less than or equal to 0.\n         Returns {@link OH_DRAWING_ERROR_ALLOCATION_FAILED} if no memory.\n @since 13\n @version 1.0"]
4889    #[cfg(feature = "api-13")]
4890    pub fn OH_Drawing_RecordCmdUtilsBeginRecording(
4891        recordCmdUtils: *mut OH_Drawing_RecordCmdUtils,
4892        width: i32,
4893        height: i32,
4894        canvas: *mut *mut OH_Drawing_Canvas,
4895    ) -> OH_Drawing_ErrorCode;
4896}
4897extern "C" {
4898    #[doc = " @brief Finish the recording and get the recording command object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param recordCmdUtils Indicates the pointer to an <b>OH_Drawing_RecordCmdUtils</b> object.\n @param recordCmd Indicates a secondary pointer to an <b>OH_Drawing_RecordCmd</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if recordCmdUtils or recordCmd is nullptr.\n         Returns {@link OH_DRAWING_ERROR_ALLOCATION_FAILED} if no memory.\n @since 13\n @version 1.0"]
4899    #[cfg(feature = "api-13")]
4900    pub fn OH_Drawing_RecordCmdUtilsFinishRecording(
4901        recordCmdUtils: *mut OH_Drawing_RecordCmdUtils,
4902        recordCmd: *mut *mut OH_Drawing_RecordCmd,
4903    ) -> OH_Drawing_ErrorCode;
4904}
4905extern "C" {
4906    #[doc = " @brief Destroys an <b>OH_Drawing_RecordCmd</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param recordCmd Indicates the pointer to an <b>OH_Drawing_RecordCmd</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if recordCmd is nullptr.\n @since 13\n @version 1.0"]
4907    #[cfg(feature = "api-13")]
4908    pub fn OH_Drawing_RecordCmdDestroy(
4909        recordCmd: *mut OH_Drawing_RecordCmd,
4910    ) -> OH_Drawing_ErrorCode;
4911}
4912extern "C" {
4913    #[doc = " @brief Creates an <b>OH_Drawing_Rect</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param left Indicates the left position of the rect.\n @param top Indicates the top position of the rect.\n @param right Indicates the right position of the rect.\n @param bottom Indicates the bottom position of the rect.\n @return Returns the pointer to the <b>OH_Drawing_Rect</b> object created.\n @since 11\n @version 1.0"]
4914    pub fn OH_Drawing_RectCreate(
4915        left: f32,
4916        top: f32,
4917        right: f32,
4918        bottom: f32,
4919    ) -> *mut OH_Drawing_Rect;
4920}
4921extern "C" {
4922    #[doc = " @brief If rect intersects other, sets rect to intersection.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Returns true if have area in common.\n @since 12\n @version 1.0"]
4923    pub fn OH_Drawing_RectIntersect(
4924        rect: *mut OH_Drawing_Rect,
4925        other: *const OH_Drawing_Rect,
4926    ) -> bool;
4927}
4928extern "C" {
4929    #[doc = " @brief Sets rect to the union of rect and other.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Returns true if rect and other are not nullptr, and other is not empty;\n         false if rect or other is nullptr, or other is empty.\n @since 12\n @version 1.0"]
4930    pub fn OH_Drawing_RectJoin(rect: *mut OH_Drawing_Rect, other: *const OH_Drawing_Rect) -> bool;
4931}
4932extern "C" {
4933    #[doc = " @brief Set the left position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param left Indicates the left position of the rect.\n @since 12\n @version 1.0"]
4934    pub fn OH_Drawing_RectSetLeft(rect: *mut OH_Drawing_Rect, left: f32);
4935}
4936extern "C" {
4937    #[doc = " @brief Set the top position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param top Indicates the top position of the rect.\n @since 12\n @version 1.0"]
4938    pub fn OH_Drawing_RectSetTop(rect: *mut OH_Drawing_Rect, top: f32);
4939}
4940extern "C" {
4941    #[doc = " @brief Set the right position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param right Indicates the right position of the rect.\n @since 12\n @version 1.0"]
4942    pub fn OH_Drawing_RectSetRight(rect: *mut OH_Drawing_Rect, right: f32);
4943}
4944extern "C" {
4945    #[doc = " @brief Set the bottom position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param bottom Indicates the bottom position of the rect.\n @since 12\n @version 1.0"]
4946    pub fn OH_Drawing_RectSetBottom(rect: *mut OH_Drawing_Rect, bottom: f32);
4947}
4948extern "C" {
4949    #[doc = " @brief Get the left position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Return the left position of the rect.\n @since 12\n @version 1.0"]
4950    pub fn OH_Drawing_RectGetLeft(rect: *mut OH_Drawing_Rect) -> f32;
4951}
4952extern "C" {
4953    #[doc = " @brief Get the top position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Return the top position of the rect.\n @since 12\n @version 1.0"]
4954    pub fn OH_Drawing_RectGetTop(rect: *mut OH_Drawing_Rect) -> f32;
4955}
4956extern "C" {
4957    #[doc = " @brief Get the right position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Return the right position of the rect.\n @since 12\n @version 1.0"]
4958    pub fn OH_Drawing_RectGetRight(rect: *mut OH_Drawing_Rect) -> f32;
4959}
4960extern "C" {
4961    #[doc = " @brief Get the bottom position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Return the bottom position of the rect.\n @since 12\n @version 1.0"]
4962    pub fn OH_Drawing_RectGetBottom(rect: *mut OH_Drawing_Rect) -> f32;
4963}
4964extern "C" {
4965    #[doc = " @brief Get the height position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @since 12\n @version 1.0"]
4966    pub fn OH_Drawing_RectGetHeight(rect: *mut OH_Drawing_Rect) -> f32;
4967}
4968extern "C" {
4969    #[doc = " @brief Get the width position of the rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Returns the width.\n @since 12\n @version 1.0"]
4970    pub fn OH_Drawing_RectGetWidth(rect: *mut OH_Drawing_Rect) -> f32;
4971}
4972extern "C" {
4973    #[doc = " @brief Copy the original rectangular object to the destination rectangular object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param src Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param dst Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @since 12\n @version 1.0"]
4974    pub fn OH_Drawing_RectCopy(src: *mut OH_Drawing_Rect, dst: *mut OH_Drawing_Rect);
4975}
4976extern "C" {
4977    #[doc = " @brief Destroys an <b>OH_Drawing_Rect</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @since 11\n @version 1.0"]
4978    pub fn OH_Drawing_RectDestroy(rect: *mut OH_Drawing_Rect);
4979}
4980extern "C" {
4981    #[doc = " @brief Creates an <b>OH_Drawing_Array</b> object, which is used to store multiple <b>OH_Drawing_Rect</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param size Indicates the size of the array object.\n @return Returns the pointer to the <b>OH_Drawing_Array</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty,\n         or size is invalid.\n @since 18\n @version 1.0"]
4982    #[cfg(feature = "api-18")]
4983    pub fn OH_Drawing_RectCreateArray(size: usize) -> *mut OH_Drawing_Array;
4984}
4985extern "C" {
4986    #[doc = " @brief Gets the size of an <b>OH_Drawing_Array</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rectArray Indicates the array object.\n @param pSize Indicates the size pointer.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if rectArray or pSize is nullptr.\n @since 18\n @version 1.0"]
4987    #[cfg(feature = "api-18")]
4988    pub fn OH_Drawing_RectGetArraySize(
4989        rectArray: *mut OH_Drawing_Array,
4990        pSize: *mut usize,
4991    ) -> OH_Drawing_ErrorCode;
4992}
4993extern "C" {
4994    #[doc = " @brief Gets the specified <b>OH_Drawing_Rect</b> object from <b>OH_Drawing_Array</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rectArray Indicates the array object.\n @param index Indicates the index of array, caller must make sure the index is valid.\n @param rect Pointers to Pointer of <b>OH_Drawing_Rect</b> object, returned to the caller.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if rectArray or rect is nullptr,\n                 or index is valid.\n @since 18\n @version 1.0"]
4995    #[cfg(feature = "api-18")]
4996    pub fn OH_Drawing_RectGetArrayElement(
4997        rectArray: *mut OH_Drawing_Array,
4998        index: usize,
4999        rect: *mut *mut OH_Drawing_Rect,
5000    ) -> OH_Drawing_ErrorCode;
5001}
5002extern "C" {
5003    #[doc = " @brief Destroys an array <b>OH_Drawing_Rect</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rectArray Indicates the pointer to an <b>OH_Drawing_Array</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if rectArray is nullptr.\n @since 18\n @version 1.0"]
5004    #[cfg(feature = "api-18")]
5005    pub fn OH_Drawing_RectDestroyArray(rectArray: *mut OH_Drawing_Array) -> OH_Drawing_ErrorCode;
5006}
5007extern "C" {
5008    #[doc = " @brief Determine whether one <b>OH_Drawing_Rect</b> object totally contains another <b>OH_Drawing_Rect</b> object.\n\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param isContains Indicates whether rect totally contains other.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if rect, other or isContains is nullptr.\n @since 22\n @version 1.0"]
5009    #[cfg(feature = "api-22")]
5010    pub fn OH_Drawing_RectContains(
5011        rect: *mut OH_Drawing_Rect,
5012        other: *const OH_Drawing_Rect,
5013        isContains: *mut bool,
5014    ) -> OH_Drawing_ErrorCode;
5015}
5016extern "C" {
5017    #[doc = " @brief Add the specified values to the left and top boundaried of an <b>OH_Drawing_Rect</b> object.\n\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param left Indicates the value added to the left boundary of an <b>OH_Drawing_Rect</b> object.\n @param top Indicates the value added to the top boundary of an <b>OH_Drawing_Rect</b> object.\n @param right Indicates the value added to the right boundary of an <b>OH_Drawing_Rect</b> object.\n @param bottom Indicates the value added to the bottom boundary of an <b>OH_Drawing_Rect</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if rect is nullptr.\n @since 22\n @version 1.0"]
5018    #[cfg(feature = "api-22")]
5019    pub fn OH_Drawing_RectInset(
5020        rect: *mut OH_Drawing_Rect,
5021        left: f32,
5022        top: f32,
5023        right: f32,
5024        bottom: f32,
5025    ) -> OH_Drawing_ErrorCode;
5026}
5027extern "C" {
5028    #[doc = " @brief Checks if rect is empty.\n\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param isEmpty Indicates whether rect is empty.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if rect or isEmpty is nullptr.\n @since 23"]
5029    #[cfg(feature = "api-23")]
5030    pub fn OH_Drawing_RectIsEmpty(
5031        rect: *const OH_Drawing_Rect,
5032        isEmpty: *mut bool,
5033    ) -> OH_Drawing_ErrorCode;
5034}
5035extern "C" {
5036    #[doc = " @brief Offsets rect by adding dx to its left and right coordinates, and adding dy to its top and bottom\n coordinates.\n\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param dx Indicates the distance to offset on the x-axis in pixels.\n @param dy Indicates the distance to offset on the y-axis in pixels.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if rect is nullptr.\n @since 23"]
5037    #[cfg(feature = "api-23")]
5038    pub fn OH_Drawing_RectOffset(
5039        rect: *mut OH_Drawing_Rect,
5040        dx: f32,
5041        dy: f32,
5042    ) -> OH_Drawing_ErrorCode;
5043}
5044extern "C" {
5045    #[doc = " @brief Offsets rect to a specific position and keeps the width and height unchanged.\n\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param newLeft Indicates the new left coordinate.\n @param newTop Indicates the new top coordinate.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if rect is nullptr.\n @since 23"]
5046    #[cfg(feature = "api-23")]
5047    pub fn OH_Drawing_RectOffsetTo(
5048        rect: *mut OH_Drawing_Rect,
5049        newLeft: f32,
5050        newTop: f32,
5051    ) -> OH_Drawing_ErrorCode;
5052}
5053extern "C" {
5054    #[doc = " @brief Sets the boundary coordinates of rect to zero.\n\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if rect is nullptr.\n @since 23"]
5055    #[cfg(feature = "api-23")]
5056    pub fn OH_Drawing_RectSetEmpty(rect: *mut OH_Drawing_Rect) -> OH_Drawing_ErrorCode;
5057}
5058extern "C" {
5059    #[doc = " @brief Swaps the left and right if the left is greater than right; and swaps top and bottom if the top is greater\n than bottom. If the edges are already valid, then nothing is done.\n\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if rect is nullptr.\n @since 23"]
5060    #[cfg(feature = "api-23")]
5061    pub fn OH_Drawing_RectSort(rect: *mut OH_Drawing_Rect) -> OH_Drawing_ErrorCode;
5062}
5063extern "C" {
5064    #[doc = " @brief Sets rect to the union of itself and another.\n\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if rect or other is nullptr.\n @since 23"]
5065    #[cfg(feature = "api-23")]
5066    pub fn OH_Drawing_RectUnion(
5067        rect: *mut OH_Drawing_Rect,
5068        other: *const OH_Drawing_Rect,
5069    ) -> OH_Drawing_ErrorCode;
5070}
5071#[doc = " Difference operation."]
5072pub const OH_Drawing_RegionOpMode_REGION_OP_MODE_DIFFERENCE: OH_Drawing_RegionOpMode = 0;
5073#[doc = " Intersect operation."]
5074pub const OH_Drawing_RegionOpMode_REGION_OP_MODE_INTERSECT: OH_Drawing_RegionOpMode = 1;
5075#[doc = " Union operation."]
5076pub const OH_Drawing_RegionOpMode_REGION_OP_MODE_UNION: OH_Drawing_RegionOpMode = 2;
5077#[doc = " Xor operation."]
5078pub const OH_Drawing_RegionOpMode_REGION_OP_MODE_XOR: OH_Drawing_RegionOpMode = 3;
5079#[doc = " Reverse difference operation."]
5080pub const OH_Drawing_RegionOpMode_REGION_OP_MODE_REVERSE_DIFFERENCE: OH_Drawing_RegionOpMode = 4;
5081#[doc = " Replace operation."]
5082pub const OH_Drawing_RegionOpMode_REGION_OP_MODE_REPLACE: OH_Drawing_RegionOpMode = 5;
5083#[doc = " @brief Operations when two regions are combined.\n\n @since 12\n @version 1.0"]
5084pub type OH_Drawing_RegionOpMode = u32;
5085extern "C" {
5086    #[doc = " @brief Creates an <b>OH_Drawing_Region</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Region</b> object created.\n @since 12\n @version 1.0"]
5087    pub fn OH_Drawing_RegionCreate() -> *mut OH_Drawing_Region;
5088}
5089extern "C" {
5090    #[doc = " @brief Creates an <b>OH_Drawing_Region</b> copy object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object to copy.\n @return Returns the pointer to the <b>OH_Drawing_Region</b> object created.\n @since 20\n @version 1.0"]
5091    #[cfg(feature = "api-20")]
5092    pub fn OH_Drawing_RegionCopy(region: *const OH_Drawing_Region) -> *mut OH_Drawing_Region;
5093}
5094extern "C" {
5095    #[doc = " @brief Determines whether the region contains the specified coordinates.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param x x-coordinate.\n @param y y-coordinate.\n @return Returns <b>true</b> if (x, y) is inside region; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
5096    pub fn OH_Drawing_RegionContains(region: *mut OH_Drawing_Region, x: i32, y: i32) -> bool;
5097}
5098extern "C" {
5099    #[doc = " @brief Combines two regions.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param other Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param op Indicates the operation to apply to combine.\n @return Returns <b>true</b> if constructed Region is not empty; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
5100    pub fn OH_Drawing_RegionOp(
5101        region: *mut OH_Drawing_Region,
5102        other: *const OH_Drawing_Region,
5103        op: OH_Drawing_RegionOpMode,
5104    ) -> bool;
5105}
5106extern "C" {
5107    #[doc = " @brief Sets the region to the specified rect.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Return true if constructed Region is not empty.\n @since 12\n @version 1.0"]
5108    pub fn OH_Drawing_RegionSetRect(
5109        region: *mut OH_Drawing_Region,
5110        rect: *const OH_Drawing_Rect,
5111    ) -> bool;
5112}
5113extern "C" {
5114    #[doc = " @brief Constructs region that matchs outline of path within clip.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @param clip Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @return Returns <b>true</b> if constructed Region is not empty; returns <b>false</b> otherwise.\n @since 12\n @version 1.0"]
5115    pub fn OH_Drawing_RegionSetPath(
5116        region: *mut OH_Drawing_Region,
5117        path: *const OH_Drawing_Path,
5118        clip: *const OH_Drawing_Region,
5119    ) -> bool;
5120}
5121extern "C" {
5122    #[doc = " @brief Destroys an <b>OH_Drawing_Region</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @since 12\n @version 1.0"]
5123    pub fn OH_Drawing_RegionDestroy(region: *mut OH_Drawing_Region);
5124}
5125extern "C" {
5126    #[doc = " @brief Set an <b>OH_Drawing_Region</b> empty.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region is nullptr.\n @since 22\n @version 1.0"]
5127    #[cfg(feature = "api-22")]
5128    pub fn OH_Drawing_RegionEmpty(region: *mut OH_Drawing_Region) -> OH_Drawing_ErrorCode;
5129}
5130extern "C" {
5131    #[doc = " @brief Set the path to the boundary of the region. If the region is empty, the path will also be empty.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param path Indicates the pointer to an <b>OH_Drawing_Path</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region or path is nullptr.\n @since 23"]
5132    #[cfg(feature = "api-23")]
5133    pub fn OH_Drawing_RegionGetBoundaryPath(
5134        region: *const OH_Drawing_Region,
5135        path: *mut OH_Drawing_Path,
5136    ) -> OH_Drawing_ErrorCode;
5137}
5138extern "C" {
5139    #[doc = " @brief Obtains the minimum bounding rectangle that encloses this path.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region or rect is nullptr.\n @since 23"]
5140    #[cfg(feature = "api-23")]
5141    pub fn OH_Drawing_RegionGetBounds(
5142        region: *const OH_Drawing_Region,
5143        rect: *mut OH_Drawing_Rect,
5144    ) -> OH_Drawing_ErrorCode;
5145}
5146extern "C" {
5147    #[doc = " @brief Checks if the region contains more than one rectangle.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param isComplex Indicates if the region is complex.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region or isComplex is nullptr.\n @since 23"]
5148    #[cfg(feature = "api-23")]
5149    pub fn OH_Drawing_RegionIsComplex(
5150        region: *const OH_Drawing_Region,
5151        isComplex: *mut bool,
5152    ) -> OH_Drawing_ErrorCode;
5153}
5154extern "C" {
5155    #[doc = " @brief Checks if the region is empty.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param isEmpty Indicates if the region is empty.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region or isEmpty is nullptr.\n @since 23"]
5156    #[cfg(feature = "api-23")]
5157    pub fn OH_Drawing_RegionIsEmpty(
5158        region: *const OH_Drawing_Region,
5159        isEmpty: *mut bool,
5160    ) -> OH_Drawing_ErrorCode;
5161}
5162extern "C" {
5163    #[doc = " @brief Checks if the region is equivalent to a single rectangle.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param isRect Indicates if the region contains a single rectangle.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region or isRect is nullptr.\n @since 23"]
5164    #[cfg(feature = "api-23")]
5165    pub fn OH_Drawing_RegionIsRect(
5166        region: *const OH_Drawing_Region,
5167        isRect: *mut bool,
5168    ) -> OH_Drawing_ErrorCode;
5169}
5170extern "C" {
5171    #[doc = " @brief Checks if the region is equivalent to a single rectangle and it contains the specified rectangle.\n A false indicates that the region is not equivalent to a single rectangle or the rectangle is not contained by\n this region. A true is a guarantee that the rectangle is contained by this region.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param left Indicates the left position of the rect.\n @param top Indicates the top position of the rect.\n @param right Indicates the right position of the rect.\n @param bottom Indicates the bottom position of the rect.\n @param isContained Indicates if the specified rectangle is contained in the region.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region or isContained is nullptr.\n @since 23"]
5172    #[cfg(feature = "api-23")]
5173    pub fn OH_Drawing_RegionQuickContains(
5174        region: *const OH_Drawing_Region,
5175        left: i32,
5176        top: i32,
5177        right: i32,
5178        bottom: i32,
5179        isContained: *mut bool,
5180    ) -> OH_Drawing_ErrorCode;
5181}
5182extern "C" {
5183    #[doc = " @brief Checks if the region is empty, or if the specified rectangle does not intersect the region.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param left Indicates the left position of the rect.\n @param top Indicates the top position of the rect.\n @param right Indicates the right position of the rect.\n @param bottom Indicates the bottom position of the rect.\n @param isReject Indicates if the specified rectangle does not intersect the region.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region or isReject is nullptr.\n @since 23"]
5184    #[cfg(feature = "api-23")]
5185    pub fn OH_Drawing_RegionQuickReject(
5186        region: *const OH_Drawing_Region,
5187        left: i32,
5188        top: i32,
5189        right: i32,
5190        bottom: i32,
5191        isReject: *mut bool,
5192    ) -> OH_Drawing_ErrorCode;
5193}
5194extern "C" {
5195    #[doc = " @brief Translates the region by dx, dy. If the region is empty, do nothing.\n\n @param region Indicates the pointer to an <b>OH_Drawing_Region</b> object.\n @param dx Indicates the distance to translate on x-axis in pixels.\n @param dy Indicates the distance to translate on y-axis in pixels.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if region is nullptr.\n @since 23"]
5196    #[cfg(feature = "api-23")]
5197    pub fn OH_Drawing_RegionTranslate(
5198        region: *mut OH_Drawing_Region,
5199        dx: i32,
5200        dy: i32,
5201    ) -> OH_Drawing_ErrorCode;
5202}
5203extern "C" {
5204    #[doc = " @brief Defines an <b>OH_Drawing_RegisterFont</b>, which is used to register a customized font in the FontManager.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param OH_Drawing_FontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @param fontFamily Indicates the family-name of the font which need to register.\n @param familySrc Indicates the path of the font file which need to register.\n @return error code.\n @since 11\n @version 1.0"]
5205    pub fn OH_Drawing_RegisterFont(
5206        arg1: *mut OH_Drawing_FontCollection,
5207        fontFamily: *const ::std::os::raw::c_char,
5208        familySrc: *const ::std::os::raw::c_char,
5209    ) -> u32;
5210}
5211extern "C" {
5212    #[doc = " @brief Defines an <b>OH_Drawing_RegisterFontBuffer</b>, which is used to register a customized font in the\n        FontManager.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param OH_Drawing_FontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @param fontFamily Indicates the family-name of the font which need to register.\n @param fontBuffer Indicates the buffer of the font file which need to register.\n @param length Indicates the length of the font file which need to register.\n @return error code.\n @since 11\n @version 1.0"]
5213    pub fn OH_Drawing_RegisterFontBuffer(
5214        arg1: *mut OH_Drawing_FontCollection,
5215        fontFamily: *const ::std::os::raw::c_char,
5216        fontBuffer: *mut u8,
5217        length: usize,
5218    ) -> u32;
5219}
5220extern "C" {
5221    #[doc = " @brief Defines an <b>OH_Drawing_RegisterFontByIndex</b>, which is used to register font from ttc file.\n\n @param fontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @param fontFamily Indicates the family name of the font which need to register.\n @param familySrc Indicates the path of the font file which need to register.\n @param index Indicates the index of the font data in the ttc file.\n @return error code.\n @since 23"]
5222    #[cfg(feature = "api-23")]
5223    pub fn OH_Drawing_RegisterFontByIndex(
5224        fontCollection: *mut OH_Drawing_FontCollection,
5225        fontFamily: *const ::std::os::raw::c_char,
5226        familySrc: *const ::std::os::raw::c_char,
5227        index: u32,
5228    ) -> u32;
5229}
5230extern "C" {
5231    #[doc = " @brief Defines an <b>OH_Drawing_RegisterFontBufferByIndex</b>, which is used to register font from ttc buffer.\n\n @param fontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @param fontFamily Indicates the family name of the font which need to register.\n @param fontBuffer Indicates the font data which need to register.\n @param length Indicates the font data length.\n @param index Indicates the index of the font data in the ttc file.\n @return error code.\n @since 23"]
5232    #[cfg(feature = "api-23")]
5233    pub fn OH_Drawing_RegisterFontBufferByIndex(
5234        fontCollection: *mut OH_Drawing_FontCollection,
5235        fontFamily: *const ::std::os::raw::c_char,
5236        fontBuffer: *mut u8,
5237        length: usize,
5238        index: u32,
5239    ) -> u32;
5240}
5241extern "C" {
5242    #[doc = " @brief Unregister a customized font by the font family.\n Unregistering a font that is currently in use by UI components may lead to text rendering anomalies,\n including garbled characters or missing glyphs.\n All typography using the unregistered font family should be destroyed and re-created.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontCollection Indicates the pointer to an <b>OH_Drawing_FontCollection</b> object.\n @param fontFamily Indicates the family-name of the font which need to be unregistered.\n @return error code.\n @since 20"]
5243    #[cfg(feature = "api-20")]
5244    pub fn OH_Drawing_UnregisterFont(
5245        fontCollection: *mut OH_Drawing_FontCollection,
5246        fontFamily: *const ::std::os::raw::c_char,
5247    ) -> u32;
5248}
5249extern "C" {
5250    #[doc = " @brief Checks whether the font format specified by the path is supported.\n\n @param path The absolute path to the font file.\n @return Returns true if the font is supported; otherwise, returns false.\n @since 23"]
5251    #[cfg(feature = "api-23")]
5252    pub fn OH_Drawing_IsFontSupportedFromPath(path: *const ::std::os::raw::c_char) -> bool;
5253}
5254extern "C" {
5255    #[doc = " @brief Checks whether the font format specified by the buffer is supported.\n\n @param data A pointer to the memory buffer containing font data.\n @param dataLength The size of the font data in bytes.\n @return Returns true if the font is supported; otherwise, returns false.\n @since 23"]
5256    #[cfg(feature = "api-23")]
5257    pub fn OH_Drawing_IsFontSupportedFromBuffer(data: *mut u8, dataLength: usize) -> bool;
5258}
5259#[doc = " Index of top-left corner radii."]
5260pub const OH_Drawing_CornerPos_CORNER_POS_TOP_LEFT: OH_Drawing_CornerPos = 0;
5261#[doc = " Index of top-right corner radii."]
5262pub const OH_Drawing_CornerPos_CORNER_POS_TOP_RIGHT: OH_Drawing_CornerPos = 1;
5263#[doc = " Index of bottom-right corner radii."]
5264pub const OH_Drawing_CornerPos_CORNER_POS_BOTTOM_RIGHT: OH_Drawing_CornerPos = 2;
5265#[doc = " Index of bottom-left corner radii."]
5266pub const OH_Drawing_CornerPos_CORNER_POS_BOTTOM_LEFT: OH_Drawing_CornerPos = 3;
5267#[doc = " @brief Enumerates of corner radii position.\n\n @since 12\n @version 1.0"]
5268pub type OH_Drawing_CornerPos = u32;
5269extern "C" {
5270    #[doc = " @brief Creates an <b>OH_Drawing_RoundRect</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param xRad Indicates the corner radii on x-axis.\n @param yRad Indicates the corner radii on y-axis.\n @return Returns the pointer to the <b>OH_Drawing_RoundRect</b> object created.\n @since 11\n @version 1.0"]
5271    pub fn OH_Drawing_RoundRectCreate(
5272        rect: *const OH_Drawing_Rect,
5273        xRad: f32,
5274        yRad: f32,
5275    ) -> *mut OH_Drawing_RoundRect;
5276}
5277extern "C" {
5278    #[doc = " @brief Creates an <b>OH_Drawing_RoundRect</b> copy object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param roundRect Indicates the pointer to an <b>OH_Drawing_RoundRect</b> object to copy.\n @return Returns the pointer to the <b>OH_Drawing_RoundRect</b> object created.\n @since 20\n @version 1.0"]
5279    #[cfg(feature = "api-20")]
5280    pub fn OH_Drawing_RoundRectCopy(
5281        roundRect: *const OH_Drawing_RoundRect,
5282    ) -> *mut OH_Drawing_RoundRect;
5283}
5284extern "C" {
5285    #[doc = " @brief Sets the radiusX and radiusY for a specific corner position.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param roundRect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @param pos Indicates the corner radii position.\n @param radii Indicates the corner radii on x-axis and y-axis.\n @since 12\n @version 1.0"]
5286    pub fn OH_Drawing_RoundRectSetCorner(
5287        roundRect: *mut OH_Drawing_RoundRect,
5288        pos: OH_Drawing_CornerPos,
5289        radii: OH_Drawing_Corner_Radii,
5290    );
5291}
5292extern "C" {
5293    #[doc = " @brief Gets an <b>OH_Drawing_Corner_Radii</b> struct, the point is round corner radiusX and radiusY.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param roundRect Indicates the pointer to an <b>OH_Drawing_RoundRect</b> object.\n @param pos Indicates the corner radii position.\n @return Returns the corner radii of <b>OH_Drawing_Corner_Radii</b> struct.\n @since 12\n @version 1.0"]
5294    pub fn OH_Drawing_RoundRectGetCorner(
5295        roundRect: *mut OH_Drawing_RoundRect,
5296        pos: OH_Drawing_CornerPos,
5297    ) -> OH_Drawing_Corner_Radii;
5298}
5299extern "C" {
5300    #[doc = " @brief Destroys an <b>OH_Drawing_RoundRect</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param roundRect Indicates the pointer to an <b>OH_Drawing_RoundRect</b> object.\n @since 11\n @version 1.0"]
5301    pub fn OH_Drawing_RoundRectDestroy(roundRect: *mut OH_Drawing_RoundRect);
5302}
5303extern "C" {
5304    #[doc = " @brief Translates round rect by (dx, dy).\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param roundRect Indicates the pointer to an <b>OH_Drawing_RoundRect</b> object.\n @param dx Indicates the offsets added to rect left and rect right.\n @param dy Indicates the offsets added to rect top and rect bottom.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if roundRect is nullptr.\n @since 12\n @version 1.0"]
5305    pub fn OH_Drawing_RoundRectOffset(
5306        roundRect: *mut OH_Drawing_RoundRect,
5307        dx: f32,
5308        dy: f32,
5309    ) -> OH_Drawing_ErrorCode;
5310}
5311extern "C" {
5312    #[doc = " @brief Creates an <b>OH_Drawing_ShadowLayer</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param blurRadius Indicates the blur radius of the shadow.\n @param x Indicates the offset point on x-axis.\n @param y Indicates the offset point on y-axis.\n @param color Indicates the shadow color.\n @return Returns the pointer to the <b>OH_Drawing_ShadowLayer</b> object created.\n @since 12\n @version 1.0"]
5313    pub fn OH_Drawing_ShadowLayerCreate(
5314        blurRadius: f32,
5315        x: f32,
5316        y: f32,
5317        color: u32,
5318    ) -> *mut OH_Drawing_ShadowLayer;
5319}
5320extern "C" {
5321    #[doc = " @brief Destroys an <b>OH_Drawing_ShadowLayer</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param shadowLayer Indicates the pointer to an <b>OH_Drawing_ShadowLayer</b> object.\n @since 12\n @version 1.0"]
5322    pub fn OH_Drawing_ShadowLayerDestroy(shadowLayer: *mut OH_Drawing_ShadowLayer);
5323}
5324extern "C" {
5325    #[doc = " @brief Creates an <b>OH_Drawing_Surface</b> object on GPU indicated by context.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param gpuContext Indicates the pointer to an <b>OH_Drawing_GpuContext</b> object.\n @param flag Indicates whether an allocation should count against a cache budget.\n @param imageInfo Indicates the image info.\n @return Returns the pointer to the <b>OH_Drawing_Surface</b> object created.\n @since 12\n @version 1.0"]
5326    pub fn OH_Drawing_SurfaceCreateFromGpuContext(
5327        gpuContext: *mut OH_Drawing_GpuContext,
5328        flag: bool,
5329        imageInfo: OH_Drawing_Image_Info,
5330    ) -> *mut OH_Drawing_Surface;
5331}
5332extern "C" {
5333    #[doc = " @brief Creates an <b>OH_Drawing_Surface</b> object on GPU indicated by context which is on-screen.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param gpuContext Indicates the pointer to an <b>OH_Drawing_GpuContext</b> object.\n @param imageInfo Indicates the image info.\n @param window Indicates the pointer of the screen window.\n @return Returns the pointer to the <b>OH_Drawing_Surface</b> object created.\n @since 16\n @version 1.0"]
5334    #[cfg(feature = "api-16")]
5335    pub fn OH_Drawing_SurfaceCreateOnScreen(
5336        gpuContext: *mut OH_Drawing_GpuContext,
5337        imageInfo: OH_Drawing_Image_Info,
5338        window: *mut ::std::os::raw::c_void,
5339    ) -> *mut OH_Drawing_Surface;
5340}
5341extern "C" {
5342    #[doc = " @brief Gets the canvas that draws into surface.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param surface Indicates the pointer to an <b>OH_Drawing_Surface</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Canvas</b> object. The returned pointer does not need to be managed\n         by the caller.\n @since 12\n @version 1.0"]
5343    pub fn OH_Drawing_SurfaceGetCanvas(surface: *mut OH_Drawing_Surface) -> *mut OH_Drawing_Canvas;
5344}
5345extern "C" {
5346    #[doc = " @brief Resolves all pending GPU operations on the surface.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param surface Indicates the pointer to an <b>OH_Drawing_Surface</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if surface is nullptr.\n @since 16\n @version 1.0"]
5347    #[cfg(feature = "api-16")]
5348    pub fn OH_Drawing_SurfaceFlush(surface: *mut OH_Drawing_Surface) -> OH_Drawing_ErrorCode;
5349}
5350extern "C" {
5351    #[doc = " @brief Destroys an <b>OH_Drawing_Surface</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param surface Indicates the pointer to an <b>OH_Drawing_Surface</b> object.\n @since 12\n @version 1.0"]
5352    pub fn OH_Drawing_SurfaceDestroy(surface: *mut OH_Drawing_Surface);
5353}
5354extern "C" {
5355    #[doc = " @brief Creates an <b>OH_Drawing_TextBlobBuilder</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_TextBlobBuilder</b> object created.\n @since 11\n @version 1.0"]
5356    pub fn OH_Drawing_TextBlobBuilderCreate() -> *mut OH_Drawing_TextBlobBuilder;
5357}
5358extern "C" {
5359    #[doc = " @brief Creates an <b>OH_Drawing_TextBlob</b> object from text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param text Indicates the the pointer to text.\n @param byteLength Indicates the text length.\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param textEncoding Indicates the pointer to an <b>OH_Drawing_TextEncoding</b> object.\n @return Returns the pointer to the <b>OH_Drawing_TextBlob</b> object created.\n @since 12\n @version 1.0"]
5360    pub fn OH_Drawing_TextBlobCreateFromText(
5361        text: *const ::std::os::raw::c_void,
5362        byteLength: usize,
5363        font: *const OH_Drawing_Font,
5364        textEncoding: OH_Drawing_TextEncoding,
5365    ) -> *mut OH_Drawing_TextBlob;
5366}
5367extern "C" {
5368    #[doc = " @brief Creates an <b>OH_Drawing_TextBlob</b> object from pos text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param text Indicates the the pointer to text.\n @param byteLength Indicates the text length.\n @param point2D Indicates the pointer to an <b>OH_Drawing_Point2D</b> array object.\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param textEncoding Indicates the pointer to an <b>OH_Drawing_TextEncoding</b> object.\n @return Returns the pointer to the <b>OH_Drawing_TextBlob</b> object created.\n @since 12\n @version 1.0"]
5369    pub fn OH_Drawing_TextBlobCreateFromPosText(
5370        text: *const ::std::os::raw::c_void,
5371        byteLength: usize,
5372        point2D: *mut OH_Drawing_Point2D,
5373        font: *const OH_Drawing_Font,
5374        textEncoding: OH_Drawing_TextEncoding,
5375    ) -> *mut OH_Drawing_TextBlob;
5376}
5377extern "C" {
5378    #[doc = " @brief Creates an <b>OH_Drawing_TextBlob</b> object from pos text.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param str Indicates the the pointer to text.\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param textEncoding Indicates the pointer to an <b>OH_Drawing_TextEncoding</b> object.\n @return Returns the pointer to the <b>OH_Drawing_TextBlob</b> object created.\n @since 12\n @version 1.0"]
5379    pub fn OH_Drawing_TextBlobCreateFromString(
5380        str_: *const ::std::os::raw::c_char,
5381        font: *const OH_Drawing_Font,
5382        textEncoding: OH_Drawing_TextEncoding,
5383    ) -> *mut OH_Drawing_TextBlob;
5384}
5385extern "C" {
5386    #[doc = " @brief Gets the bounds of textblob, assigned to the pointer to an <b>OH_Drawing_Rect</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textBlob Indicates the pointer to an <b>OH_Drawing_TextBlob</b> object.\n @param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.\n @since 12\n @version 1.0"]
5387    pub fn OH_Drawing_TextBlobGetBounds(
5388        textBlob: *mut OH_Drawing_TextBlob,
5389        rect: *mut OH_Drawing_Rect,
5390    );
5391}
5392extern "C" {
5393    #[doc = " @brief Gets a non-zero value unique among all <b>OH_Drawing_TextBlob</b> objects.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textBlob Indicates the pointer to an <b>OH_Drawing_TextBlob</b> object.\n @return Returns identifier for the <b>OH_Drawing_TextBlob</b> object.\n @since 12\n @version 1.0"]
5394    pub fn OH_Drawing_TextBlobUniqueID(textBlob: *const OH_Drawing_TextBlob) -> u32;
5395}
5396#[doc = " @brief Defines a run, supplies storage for glyphs and positions.\n\n @since 11\n @version 1.0"]
5397#[repr(C)]
5398#[derive(Debug, Copy, Clone)]
5399pub struct OH_Drawing_RunBuffer {
5400    #[doc = " storage for glyph indexes in run"]
5401    pub glyphs: *mut u16,
5402    #[doc = " storage for glyph positions in run"]
5403    pub pos: *mut f32,
5404    #[doc = " storage for text UTF-8 code units in run"]
5405    pub utf8text: *mut ::std::os::raw::c_char,
5406    #[doc = " storage for glyph clusters (index of UTF-8 code unit)"]
5407    pub clusters: *mut u32,
5408}
5409extern "C" {
5410    #[doc = " @brief Alloc run with storage for glyphs and positions. The returned pointer does not need to be managed\n by the caller and is forbidden to be used after OH_Drawing_TextBlobBuilderMake is called.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textBlobBuilder Indicates the pointer to an <b>OH_Drawing_TextBlobBuilder</b> object.\n @param font Indicates the pointer to an <b>OH_Drawing_Font</b> object.\n @param count Indicates the number of glyphs.\n @param rect Indicates the optional run bounding box.\n @since 11\n @version 1.0"]
5411    pub fn OH_Drawing_TextBlobBuilderAllocRunPos(
5412        textBlobBuilder: *mut OH_Drawing_TextBlobBuilder,
5413        font: *const OH_Drawing_Font,
5414        count: i32,
5415        rect: *const OH_Drawing_Rect,
5416    ) -> *const OH_Drawing_RunBuffer;
5417}
5418extern "C" {
5419    #[doc = " @brief Make an <b>OH_Drawing_TextBlob</b> from <b>OH_Drawing_TextBlobBuilder</b>.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textBlobBuilder Indicates the pointer to an <b>OH_Drawing_TextBlobBuilder</b> object.\n @return Returns the pointer to the <b>OH_Drawing_TextBlob</b> object.\n @since 11\n @version 1.0"]
5420    pub fn OH_Drawing_TextBlobBuilderMake(
5421        textBlobBuilder: *mut OH_Drawing_TextBlobBuilder,
5422    ) -> *mut OH_Drawing_TextBlob;
5423}
5424extern "C" {
5425    #[doc = " @brief Destroys an <b>OH_Drawing_TextBlob</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textBlob Indicates the pointer to an <b>OH_Drawing_TextBlob</b> object.\n @since 11\n @version 1.0"]
5426    pub fn OH_Drawing_TextBlobDestroy(textBlob: *mut OH_Drawing_TextBlob);
5427}
5428extern "C" {
5429    #[doc = " @brief Destroys an <b>OH_Drawing_TextBlobBuilder</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param textBlobBuilder Indicates the pointer to an <b>OH_Drawing_TextBlobBuilder</b> object.\n @since 11\n @version 1.0"]
5430    pub fn OH_Drawing_TextBlobBuilderDestroy(textBlobBuilder: *mut OH_Drawing_TextBlobBuilder);
5431}
5432#[doc = " All font types"]
5433#[cfg(feature = "api-14")]
5434pub const OH_Drawing_SystemFontType_ALL: OH_Drawing_SystemFontType = 1;
5435#[doc = " System generic font type"]
5436#[cfg(feature = "api-14")]
5437pub const OH_Drawing_SystemFontType_GENERIC: OH_Drawing_SystemFontType = 2;
5438#[doc = " Stylish font type"]
5439#[cfg(feature = "api-14")]
5440pub const OH_Drawing_SystemFontType_STYLISH: OH_Drawing_SystemFontType = 4;
5441#[doc = " Installed font types"]
5442#[cfg(feature = "api-14")]
5443pub const OH_Drawing_SystemFontType_INSTALLED: OH_Drawing_SystemFontType = 8;
5444#[doc = " Customized font types\n @since 18"]
5445#[cfg(feature = "api-18")]
5446pub const OH_Drawing_SystemFontType_CUSTOMIZED: OH_Drawing_SystemFontType = 16;
5447#[doc = " @brief An enumeration of system font types.\n\n @since 14"]
5448#[cfg(feature = "api-14")]
5449pub type OH_Drawing_SystemFontType = u32;
5450#[doc = " The file path of the font"]
5451#[cfg(feature = "api-22")]
5452pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_PATH:
5453    OH_Drawing_FontFullDescriptorAttributeId = 0;
5454#[doc = " A name that uniquely identifies the font"]
5455#[cfg(feature = "api-22")]
5456pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_POSTSCRIPT_NAME:
5457    OH_Drawing_FontFullDescriptorAttributeId = 1;
5458#[doc = " The full name of the font"]
5459#[cfg(feature = "api-22")]
5460pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_FULL_NAME:
5461    OH_Drawing_FontFullDescriptorAttributeId = 2;
5462#[doc = " The family name of the font"]
5463#[cfg(feature = "api-22")]
5464pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_FAMILY_NAME:
5465    OH_Drawing_FontFullDescriptorAttributeId = 3;
5466#[doc = " The subfont family of the font"]
5467#[cfg(feature = "api-22")]
5468pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_SUB_FAMILY_NAME:
5469    OH_Drawing_FontFullDescriptorAttributeId = 4;
5470#[doc = " The weight of the font"]
5471#[cfg(feature = "api-22")]
5472pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_I_WEIGHT:
5473    OH_Drawing_FontFullDescriptorAttributeId = 5;
5474#[doc = " The width of the font"]
5475#[cfg(feature = "api-22")]
5476pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_I_WIDTH:
5477    OH_Drawing_FontFullDescriptorAttributeId = 6;
5478#[doc = " Whether the font is tilted"]
5479#[cfg(feature = "api-22")]
5480pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_I_ITALIC:
5481    OH_Drawing_FontFullDescriptorAttributeId = 7;
5482#[doc = " Whether the font is monospaced"]
5483#[cfg(feature = "api-22")]
5484pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_B_MONO:
5485    OH_Drawing_FontFullDescriptorAttributeId = 8;
5486#[doc = " whether symbolic fonts are supported"]
5487#[cfg(feature = "api-22")]
5488pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_B_SYMBOLIC:
5489    OH_Drawing_FontFullDescriptorAttributeId = 9;
5490#[doc = " The local postscript name of the font\n @since 23"]
5491#[cfg(feature = "api-23")]
5492pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_LOCAL_POSTSCRIPT_NAME:
5493    OH_Drawing_FontFullDescriptorAttributeId = 10;
5494#[doc = " The local full name of the font\n @since 23"]
5495#[cfg(feature = "api-23")]
5496pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_LOCAL_FULL_NAME:
5497    OH_Drawing_FontFullDescriptorAttributeId = 11;
5498#[doc = " The local family name of the font\n @since 23"]
5499#[cfg(feature = "api-23")]
5500pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_LOCAL_FAMILY_NAME:
5501    OH_Drawing_FontFullDescriptorAttributeId = 12;
5502#[doc = " The local sub family name of the font\n @since 23"]
5503#[cfg(feature = "api-23")]
5504pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_LOCAL_SUB_FAMILY_NAME:
5505    OH_Drawing_FontFullDescriptorAttributeId = 13;
5506#[doc = " The version of the font\n @since 23"]
5507#[cfg(feature = "api-23")]
5508pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_VERSION:
5509    OH_Drawing_FontFullDescriptorAttributeId = 14;
5510#[doc = " The manufacture of the font\n @since 23"]
5511#[cfg(feature = "api-23")]
5512pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_MANUFACTURE:
5513    OH_Drawing_FontFullDescriptorAttributeId = 15;
5514#[doc = " The copyright of the font\n @since 23"]
5515#[cfg(feature = "api-23")]
5516pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_COPYRIGHT:
5517    OH_Drawing_FontFullDescriptorAttributeId = 16;
5518#[doc = " The trademark of the font\n @since 23"]
5519#[cfg(feature = "api-23")]
5520pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_TRADEMARK:
5521    OH_Drawing_FontFullDescriptorAttributeId = 17;
5522#[doc = " The license of the font\n @since 23"]
5523#[cfg(feature = "api-23")]
5524pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_S_LICENSE:
5525    OH_Drawing_FontFullDescriptorAttributeId = 18;
5526#[doc = " The font index in ttc file\n @since 23"]
5527#[cfg(feature = "api-23")]
5528pub const OH_Drawing_FontFullDescriptorAttributeId_FULL_DESCRIPTOR_ATTR_I_INDEX:
5529    OH_Drawing_FontFullDescriptorAttributeId = 21;
5530#[doc = " @brief An enumeration of font full descriptor attribute.\n\n @since 22"]
5531#[cfg(feature = "api-22")]
5532pub type OH_Drawing_FontFullDescriptorAttributeId = u32;
5533extern "C" {
5534    #[doc = " @brief Obtain all system font descriptive symbols that match the specified font descriptor. Where the 'path'\n fields are not considered as valid matching values, It takes effect when the remaining fields are not\n default values, If all the fields of the parameters <b>OH_Drawing_FontDescriptor</b> are default, obtain all system\n font descriptors. If the match fails, return nullptr.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param desc The pointer to the <b>OH_Drawing_FontDescriptor</b> object. It is recommended to\n use <b>OH_Drawing_CreateFontDescriptor</b> to obtain a valid <b>OH_Drawing_FontDescriptor</b> instance.\n If you create your own <b>OH_Drawing_FontDescriptor</b> object, ensure that fields not intended for matching are\n set to their default values.\n @param num Indicates the count of obtained <b>OH_Drawing_FontDescriptor</b>.\n @return Returns an array of <b>OH_Drawing_FontDescriptor</b>. Released through the\n <b>OH_Drawing_DestroyFontDescriptors</b> interface after use.\n @since 18"]
5535    #[cfg(feature = "api-18")]
5536    pub fn OH_Drawing_MatchFontDescriptors(
5537        desc: *mut OH_Drawing_FontDescriptor,
5538        num: *mut usize,
5539    ) -> *mut OH_Drawing_FontDescriptor;
5540}
5541extern "C" {
5542    #[doc = " @brief Releases the <b>OH_Drawing_FontDescriptor</b> array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param descriptors <b>OH_Drawing_FontDescriptor</b> object array.\n @param num Represents the number of members of the <b>OH_Drawing_FontDescriptor</b> array.\n @since 18"]
5543    #[cfg(feature = "api-18")]
5544    pub fn OH_Drawing_DestroyFontDescriptors(
5545        descriptors: *mut OH_Drawing_FontDescriptor,
5546        num: usize,
5547    );
5548}
5549extern "C" {
5550    #[doc = " @brief Get the <b>OH_Drawing_FontDescriptor</b> object by the font full name and the font type, supporting generic\n fonts, stylish fonts, and installed fonts.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fullName Indicates the full name object <b>OH_Drawing_String</b>.\n @param fontType Indicates enumerates of system font type object <b>OH_Drawing_SystemFontType</b>.\n @return Returns the pointer to a font descriptor object <b>OH_Drawing_FontDescriptor</b>.\n @since 14"]
5551    #[cfg(feature = "api-14")]
5552    pub fn OH_Drawing_GetFontDescriptorByFullName(
5553        fullName: *const OH_Drawing_String,
5554        fontType: OH_Drawing_SystemFontType,
5555    ) -> *mut OH_Drawing_FontDescriptor;
5556}
5557extern "C" {
5558    #[doc = " @brief Obtain the corresponding font full name array by the font type.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontType Indicates enumerates of system font type object <b>OH_Drawing_SystemFontType</b>.\n @return Returns the pointer to full name array object <b>OH_Drawing_Array</b>.\n @since 14"]
5559    #[cfg(feature = "api-14")]
5560    pub fn OH_Drawing_GetSystemFontFullNamesByType(
5561        fontType: OH_Drawing_SystemFontType,
5562    ) -> *mut OH_Drawing_Array;
5563}
5564extern "C" {
5565    #[doc = " @brief Get the specified full name object <b>OH_Drawing_String</b> by index from the\n <b>OH_Drawing_Array</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fullNameArray Indicates an array of full name object <b>OH_Drawing_Array</b>.\n @param index The index of full name.\n @return Returns a full name object <b>OH_Drawing_String</b>.\n @since 14"]
5566    #[cfg(feature = "api-14")]
5567    pub fn OH_Drawing_GetSystemFontFullNameByIndex(
5568        fullNameArray: *mut OH_Drawing_Array,
5569        index: usize,
5570    ) -> *const OH_Drawing_String;
5571}
5572extern "C" {
5573    #[doc = " @brief Releases the memory occupied by an array of font full names.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fullNameArray Indicates an array of full name object <b>OH_Drawing_Array</b>.\n @since 14"]
5574    #[cfg(feature = "api-14")]
5575    pub fn OH_Drawing_DestroySystemFontFullNames(fullNameArray: *mut OH_Drawing_Array);
5576}
5577extern "C" {
5578    #[doc = " @brief Retrieves an array of font full descriptors from raw binary data.\n\n @param data Pointer to the raw binary font data buffer.\n @param size Size of the font data buffer in bytes.\n @return Returns a pointer to <b>OH_Drawing_Array</b> containing font full descriptors.\n         Returns <b>NULL</b> if the operation fails due to invalid data format or parsing errors.\n @since 22"]
5579    #[cfg(feature = "api-22")]
5580    pub fn OH_Drawing_GetFontFullDescriptorsFromStream(
5581        data: *const ::std::os::raw::c_void,
5582        size: usize,
5583    ) -> *mut OH_Drawing_Array;
5584}
5585extern "C" {
5586    #[doc = " @brief Obtains an array of font full descriptors from font file path.\n\n @param path The font file path.\n @return Returns a pointer to <b>OH_Drawing_Array</b> structure containing font full descriptors.\n         Returns <b>NULL</b> if no fonts are found, invalid path, no permission, or non-font file.\n @since 22"]
5587    #[cfg(feature = "api-22")]
5588    pub fn OH_Drawing_GetFontFullDescriptorsFromPath(
5589        path: *const ::std::os::raw::c_char,
5590    ) -> *mut OH_Drawing_Array;
5591}
5592extern "C" {
5593    #[doc = " @brief Retrieves a font full descriptor from an array by index.\n\n @param descriptorArray Pointer to the array of font full descriptors <b>OH_Drawing_Array</b>.\n @param index Zero-based index position of the descriptor to retrieve.\n @return Returns a pointer to <b>OH_Drawing_FontFullDescriptor</b> at the specified index.\n         Returns <b>NULL</b> if the index is out of bounds or the array is invalid.\n @since 22"]
5594    #[cfg(feature = "api-22")]
5595    pub fn OH_Drawing_GetFontFullDescriptorByIndex(
5596        descriptorArray: *mut OH_Drawing_Array,
5597        index: usize,
5598    ) -> *const OH_Drawing_FontFullDescriptor;
5599}
5600extern "C" {
5601    #[doc = " @brief Releases the memory occupied by an array of font full descriptors.\n\n @param descriptorArray Pointer to the array of font full descriptors <b>OH_Drawing_Array</b>.\n @since 22"]
5602    #[cfg(feature = "api-22")]
5603    pub fn OH_Drawing_DestroyFontFullDescriptors(descriptorArray: *mut OH_Drawing_Array);
5604}
5605extern "C" {
5606    #[doc = " @brief Defines an <b>OH_Drawing_GetFontUnicodeArrayFromFile</b>, which is used to get unicode from font file.\n\n @param fontSrc Indicates the path of the font file.\n @param index Indicates the index of the font data in the ttc file.\n @param unicodeArray Output parameter to receive unicode, When no longer needed, use 'free()' to release.\n @param arrayLength Output parameter to receive the length of the unicode array.\n @return error code.\n         Returns <b>OH_DRAWING_SUCCESS</b> if the operation is successful.\n         Returns <b>OH_DRAWING_ERROR_INCORRECT_PARAMETER</b> if the fontSrc is invalid or non-font file.\n @since 23"]
5607    #[cfg(feature = "api-23")]
5608    pub fn OH_Drawing_GetFontUnicodeArrayFromFile(
5609        fontSrc: *const ::std::os::raw::c_char,
5610        index: u32,
5611        unicodeArray: *mut *mut i32,
5612        arrayLength: *mut i32,
5613    ) -> OH_Drawing_ErrorCode;
5614}
5615extern "C" {
5616    #[doc = " @brief Defines an <b>OH_Drawing_GetFontUnicodeArrayFromBuffer</b>, which is used to get unicode from font buffer.\n\n @param fontBuffer Indicates the font data.\n @param length Indicates the font data length.\n @param index Indicates the index of the font data in the ttc file.\n @param unicodeArray Output parameter to receive unicode, When no longer needed, use 'free()' to release.\n @param arrayLength Output parameter to receive the length of the unicode array.\n @return error code.\n         Returns <b>OH_DRAWING_SUCCESS</b> if the operation is successful.\n         Returns <b>OH_DRAWING_ERROR_INCORRECT_PARAMETER</b> if the fontBuffer is invalid or non-font buffer.\n @since 23"]
5617    #[cfg(feature = "api-23")]
5618    pub fn OH_Drawing_GetFontUnicodeArrayFromBuffer(
5619        fontBuffer: *mut u8,
5620        length: usize,
5621        index: u32,
5622        unicodeArray: *mut *mut i32,
5623        arrayLength: *mut i32,
5624    ) -> OH_Drawing_ErrorCode;
5625}
5626extern "C" {
5627    #[doc = " @brief Retrieves an integer attribute value from a font full descriptor.\n\n @param descriptor Pointer to the font full descriptor <b>OH_Drawing_FontFullDescriptor</b>.\n @param id Attribute identifier from <b>OH_Drawing_FontFullDescriptorAttributeId</b> enumeration.\n @param value Output parameter to receive the requested integer attribute value.\n @return Returns the error code.\n         Returns <b>OH_DRAWING_SUCCESS</b> if the operation is successful.\n         Returns <b>OH_DRAWING_ERROR_INCORRECT_PARAMETER</b> if the descriptor or value is NULL.\n         Returns <b>OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH</b> if the attribute id is not recognized or supported.\n @since 22"]
5628    #[cfg(feature = "api-22")]
5629    pub fn OH_Drawing_GetFontFullDescriptorAttributeInt(
5630        descriptor: *const OH_Drawing_FontFullDescriptor,
5631        id: OH_Drawing_FontFullDescriptorAttributeId,
5632        value: *mut ::std::os::raw::c_int,
5633    ) -> OH_Drawing_ErrorCode;
5634}
5635extern "C" {
5636    #[doc = " @brief Retrieves a boolean attribute value from a font full descriptor.\n\n @param descriptor Pointer to the font full descriptor <b>OH_Drawing_FontFullDescriptor</b>.\n @param id Attribute identifier from <b>OH_Drawing_FontFullDescriptorAttributeId</b> enumeration.\n @param value Output parameter to receive the requested boolean attribute value.\n @return Returns the error code.\n         Returns <b>OH_DRAWING_SUCCESS</b> if the operation is successful.\n         Returns <b>OH_DRAWING_ERROR_INCORRECT_PARAMETER</b> if the descriptor or value is NULL.\n         Returns <b>OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH</b> if the attribute id is not recognized or supported.\n @since 22"]
5637    #[cfg(feature = "api-22")]
5638    pub fn OH_Drawing_GetFontFullDescriptorAttributeBool(
5639        descriptor: *const OH_Drawing_FontFullDescriptor,
5640        id: OH_Drawing_FontFullDescriptorAttributeId,
5641        value: *mut bool,
5642    ) -> OH_Drawing_ErrorCode;
5643}
5644extern "C" {
5645    #[doc = " @brief Retrieves a string attribute value from a font full descriptor.\n\n @note The caller is responsible for manually releasing the internal <b>strData</b> member of the\n       <b>OH_Drawing_String</b> structure when it is no longer needed.\n\n @param descriptor Pointer to the font full descriptor <b>OH_Drawing_FontFullDescriptor</b>.\n @param id Attribute identifier from <b>OH_Drawing_FontFullDescriptorAttributeId</b> enumeration.\n @param str Output parameter to receive pointer to the requested string attribute value.\n @return Returns the error code.\n         Returns <b>OH_DRAWING_SUCCESS</b> if the operation is successful.\n         Returns <b>OH_DRAWING_ERROR_INCORRECT_PARAMETER</b> if the descriptor or str is NULL.\n         Returns <b>OH_DRAWING_ERROR_ATTRIBUTE_ID_MISMATCH</b> if the attribute id is not recognized or supported.\n @since 22"]
5646    #[cfg(feature = "api-22")]
5647    pub fn OH_Drawing_GetFontFullDescriptorAttributeString(
5648        descriptor: *const OH_Drawing_FontFullDescriptor,
5649        id: OH_Drawing_FontFullDescriptorAttributeId,
5650        str_: *mut OH_Drawing_String,
5651    ) -> OH_Drawing_ErrorCode;
5652}
5653extern "C" {
5654    #[doc = " @brief Defines an <b>OH_Drawing_GetFontCountFromFile</b>, which is used to get font count from font file.\n\n @param fontSrc Indicates the path of the font file.\n @return font count.\n @since 23"]
5655    #[cfg(feature = "api-23")]
5656    pub fn OH_Drawing_GetFontCountFromFile(fontSrc: *const ::std::os::raw::c_char) -> u32;
5657}
5658extern "C" {
5659    #[doc = " @brief Defines an <b>OH_Drawing_GetFontCountFromBuffer</b>, which is used to get font count from font buffer.\n\n @param fontBuffer Indicates the font data.\n @param length Indicates the font data length.\n @return font count.\n @since 23"]
5660    #[cfg(feature = "api-23")]
5661    pub fn OH_Drawing_GetFontCountFromBuffer(fontBuffer: *mut u8, length: usize) -> u32;
5662}
5663extern "C" {
5664    #[doc = " @brief Get the font path list.\n @param fontType Indicates enumerates of system font type object <b>OH_Drawing_SystemFontType</b>.\n @param pathCount The count of return path list.\n @return Returns a font path object <b>OH_Drawing_String</b> list.\n @since 23"]
5665    #[cfg(feature = "api-23")]
5666    pub fn OH_Drawing_GetFontPathsByType(
5667        fontType: OH_Drawing_SystemFontType,
5668        pathCount: *mut usize,
5669    ) -> *mut OH_Drawing_String;
5670}
5671#[doc = " Follow system's high contrast settings for text rendering"]
5672#[cfg(feature = "api-20")]
5673pub const OH_Drawing_TextHighContrast_TEXT_FOLLOW_SYSTEM_HIGH_CONTRAST:
5674    OH_Drawing_TextHighContrast = 0;
5675#[doc = " Disable high contrast rendering regardless of system settings"]
5676#[cfg(feature = "api-20")]
5677pub const OH_Drawing_TextHighContrast_TEXT_APP_DISABLE_HIGH_CONTRAST: OH_Drawing_TextHighContrast =
5678    1;
5679#[doc = " Enable high contrast rendering regardless of system settings"]
5680#[cfg(feature = "api-20")]
5681pub const OH_Drawing_TextHighContrast_TEXT_APP_ENABLE_HIGH_CONTRAST: OH_Drawing_TextHighContrast =
5682    2;
5683#[doc = " @brief Defines text rendering high contrast mode to enhance readability.\n @since 20\n @version 1.0"]
5684#[cfg(feature = "api-20")]
5685pub type OH_Drawing_TextHighContrast = u32;
5686#[doc = " Uses the glyph defined in the font file, which could be an empty box, blank space, or custom symbol etc."]
5687#[cfg(feature = "api-20")]
5688pub const OH_Drawing_TextUndefinedGlyphDisplay_TEXT_NO_GLYPH_USE_DEFAULT:
5689    OH_Drawing_TextUndefinedGlyphDisplay = 0;
5690#[doc = " Always render tofu blocks for missing glyphs."]
5691#[cfg(feature = "api-20")]
5692pub const OH_Drawing_TextUndefinedGlyphDisplay_TEXT_NO_GLYPH_USE_TOFU:
5693    OH_Drawing_TextUndefinedGlyphDisplay = 1;
5694#[doc = " @brief Visual representations for undefined (.notdef) glyphs.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @since 20"]
5695#[cfg(feature = "api-20")]
5696pub type OH_Drawing_TextUndefinedGlyphDisplay = u32;
5697extern "C" {
5698    #[doc = " @brief Sets high contrast mode of text rendering.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param action <b>OH_Drawing_TextHighContrast</b> object.\n @since 20"]
5699    #[cfg(feature = "api-20")]
5700    pub fn OH_Drawing_SetTextHighContrast(action: OH_Drawing_TextHighContrast);
5701}
5702extern "C" {
5703    #[doc = " @brief Controls how undefined glyphs are visually presented, affects all text rendered after this call.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param undefinedGlyphDisplay Indicates a <b>OH_Drawing_TextUndefinedGlyphDisplay</b> to be set.\n @since 20"]
5704    #[cfg(feature = "api-20")]
5705    pub fn OH_Drawing_SetTextUndefinedGlyphDisplay(
5706        undefinedGlyphDisplay: OH_Drawing_TextUndefinedGlyphDisplay,
5707    );
5708}
5709extern "C" {
5710    #[doc = " @brief Get text line information.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typography Indicates the pointer to a typography object <b>OH_Drawing_Typography</b>.\n @return Indicates the pointer to a text line array object <b>OH_Drawing_Array</b>.\n @since 18"]
5711    #[cfg(feature = "api-18")]
5712    pub fn OH_Drawing_TypographyGetTextLines(
5713        typography: *mut OH_Drawing_Typography,
5714    ) -> *mut OH_Drawing_Array;
5715}
5716extern "C" {
5717    #[doc = " @brief Releases the memory occupied by the text line array object <b>OH_Drawing_Array</b>.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param lines Indicates the pointer to the text line array object <b>OH_Drawing_Array</b>.\n @since 18\n @version 1.0"]
5718    #[cfg(feature = "api-18")]
5719    pub fn OH_Drawing_DestroyTextLines(lines: *mut OH_Drawing_Array);
5720}
5721extern "C" {
5722    #[doc = " @brief Releases the memory occupied by the text line object <b>OH_Drawing_TextLine</b>.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to the text line object <b>OH_Drawing_TextLine</b>.\n @since 18\n @version 1.0"]
5723    #[cfg(feature = "api-18")]
5724    pub fn OH_Drawing_DestroyTextLine(line: *mut OH_Drawing_TextLine);
5725}
5726extern "C" {
5727    #[doc = " @brief Get the text line object by index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param lines Indicates the pointer to the text line array object <b>OH_Drawing_Array</b>.\n @param index The text line object index.\n @return Indicates the pointer to a text line object <b>OH_Drawing_TextLine</b>.\n @since 18"]
5728    #[cfg(feature = "api-18")]
5729    pub fn OH_Drawing_GetTextLineByIndex(
5730        lines: *mut OH_Drawing_Array,
5731        index: usize,
5732    ) -> *mut OH_Drawing_TextLine;
5733}
5734extern "C" {
5735    #[doc = " @brief Get the count of glyphs.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @return Returns the count of glyphs.\n @since 18\n @version 1.0"]
5736    #[cfg(feature = "api-18")]
5737    pub fn OH_Drawing_TextLineGetGlyphCount(line: *mut OH_Drawing_TextLine) -> f64;
5738}
5739extern "C" {
5740    #[doc = " @brief Get the range of text line.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @param start Indicates the pointer to text line start position.\n @param end Indicates the pointer to text line end position.\n @since 18\n @version 1.0"]
5741    #[cfg(feature = "api-18")]
5742    pub fn OH_Drawing_TextLineGetTextRange(
5743        line: *mut OH_Drawing_TextLine,
5744        start: *mut usize,
5745        end: *mut usize,
5746    );
5747}
5748extern "C" {
5749    #[doc = " @brief Get the glyph runs array of text line.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @return Indicates the pointer to a glyph runs array object of text line <b>OH_Drawing_Array</b>.\n @since 18\n @version 1.0"]
5750    #[cfg(feature = "api-18")]
5751    pub fn OH_Drawing_TextLineGetGlyphRuns(line: *mut OH_Drawing_TextLine)
5752        -> *mut OH_Drawing_Array;
5753}
5754extern "C" {
5755    #[doc = " @brief Releases the memory occupied by the run array object <b>OH_Drawing_Array</b>.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param runs Indicates the pointer to the run array object <b>OH_Drawing_Array</b>.\n @since 18\n @version 1.0"]
5756    #[cfg(feature = "api-18")]
5757    pub fn OH_Drawing_DestroyRuns(runs: *mut OH_Drawing_Array);
5758}
5759extern "C" {
5760    #[doc = " @brief Get the run object by index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param runs Indicates the pointer to the run array object <b>OH_Drawing_Array</b>.\n @param index The run object index.\n @return Indicates the pointer to a run object <b>OH_Drawing_Run</b>.\n @since 18"]
5761    #[cfg(feature = "api-18")]
5762    pub fn OH_Drawing_GetRunByIndex(
5763        runs: *mut OH_Drawing_Array,
5764        index: usize,
5765    ) -> *mut OH_Drawing_Run;
5766}
5767extern "C" {
5768    #[doc = " @brief Paint the range of text line.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param x Represents the X-axis position on the canvas.\n @param y Represents the Y-axis position on the canvas.\n @since 18\n @version 1.0"]
5769    #[cfg(feature = "api-18")]
5770    pub fn OH_Drawing_TextLinePaint(
5771        line: *mut OH_Drawing_TextLine,
5772        canvas: *mut OH_Drawing_Canvas,
5773        x: f64,
5774        y: f64,
5775    );
5776}
5777extern "C" {
5778    #[doc = " @brief Creates a truncated text line object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @param width Indicates the text line width to set.\n @param mode Indicates the ellipsis model to set, EllipsisMode:MIDDLE is not supported.\n For details, see the enum <b>OH_Drawing_EllipsisModal</b>.\n @param ellipsis Indicates the ellipsis string to set.\n @return Returns the pointer to the <b>OH_Drawing_TextLine</b> object created.\n @since 18\n @version 1.0"]
5779    #[cfg(feature = "api-18")]
5780    pub fn OH_Drawing_TextLineCreateTruncatedLine(
5781        line: *mut OH_Drawing_TextLine,
5782        width: f64,
5783        mode: ::std::os::raw::c_int,
5784        ellipsis: *const ::std::os::raw::c_char,
5785    ) -> *mut OH_Drawing_TextLine;
5786}
5787extern "C" {
5788    #[doc = " @brief Gets the text line typographic bounds.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @param ascent Indicates the distance that the pointer points to remain above the baseline.\n @param descent Indicates the pointer to the distance that remains below the baseline.\n @param leading Indicates the pointer to the line Spacing.\n @return Returns The total width of the typesetting border.\n @since 18\n @version 1.0"]
5789    #[cfg(feature = "api-18")]
5790    pub fn OH_Drawing_TextLineGetTypographicBounds(
5791        line: *mut OH_Drawing_TextLine,
5792        ascent: *mut f64,
5793        descent: *mut f64,
5794        leading: *mut f64,
5795    ) -> f64;
5796}
5797extern "C" {
5798    #[doc = " @brief Gets the text line image bounds.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Rect</b> struct created.\n @since 18\n @version 1.0"]
5799    #[cfg(feature = "api-18")]
5800    pub fn OH_Drawing_TextLineGetImageBounds(
5801        line: *mut OH_Drawing_TextLine,
5802    ) -> *mut OH_Drawing_Rect;
5803}
5804extern "C" {
5805    #[doc = " @brief Gets the tail space width.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @return Returns the tail space width.\n @since 18\n @version 1.0"]
5806    #[cfg(feature = "api-18")]
5807    pub fn OH_Drawing_TextLineGetTrailingSpaceWidth(line: *mut OH_Drawing_TextLine) -> f64;
5808}
5809extern "C" {
5810    #[doc = " @brief Gets the string index of the given position.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @param point Indicates the pointer to an <b>OH_Drawing_Point</b> object.\n @return Returns the string index for a given position.\n @since 18"]
5811    #[cfg(feature = "api-18")]
5812    pub fn OH_Drawing_TextLineGetStringIndexForPosition(
5813        line: *mut OH_Drawing_TextLine,
5814        point: *mut OH_Drawing_Point,
5815    ) -> i32;
5816}
5817extern "C" {
5818    #[doc = " @brief Gets the offset of the given string index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @param index The given string index.\n @return Returns the offset for a given string index.\n @since 18"]
5819    #[cfg(feature = "api-18")]
5820    pub fn OH_Drawing_TextLineGetOffsetForStringIndex(
5821        line: *mut OH_Drawing_TextLine,
5822        index: i32,
5823    ) -> f64;
5824}
5825#[doc = " @brief User-defined callback functions for using offsets and indexes.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param offset Character offset is traversed as an argument to the callback function.\n @param index Character index is traversed as an argument to the callback function.\n @param leadingEdge Whether the current offset is at the character front, as an argument to the callback function.\n @return The return value of the user-defined callback function.\n         If false is returned, the traversal continues.\n         If true is returned, the traversal stops.\n @since 18\n @version 1.0"]
5826#[cfg(feature = "api-18")]
5827pub type Drawing_CaretOffsetsCallback =
5828    ::std::option::Option<unsafe extern "C" fn(offset: f64, index: i32, leadingEdge: bool) -> bool>;
5829extern "C" {
5830    #[doc = " @brief Enumerate caret offset and index in text lines.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @param callback User-defined callback functions, see <b>Drawing_CaretOffsetsCallback</b>.\n @since 18"]
5831    #[cfg(feature = "api-18")]
5832    pub fn OH_Drawing_TextLineEnumerateCaretOffsets(
5833        line: *mut OH_Drawing_TextLine,
5834        callback: Drawing_CaretOffsetsCallback,
5835    );
5836}
5837extern "C" {
5838    #[doc = " @brief Gets the text offset based on the given alignment factor and alignment width.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param line Indicates the pointer to an <b>OH_Drawing_TextLine</b> object.\n @param alignmentFactor The coefficients that text needs to be aligned.\n                        Less than or equal to 0 is left justified, 0.5 is center justified,\n                        and greater than or equal to 1 is right justified.\n @param alignmentWidth The width of the text to be aligned.\n                       Returns 0 if it is less than the actual width of the text.\n @return Returns the offset of the aligned text.\n @since 18\n @version 1.0"]
5839    #[cfg(feature = "api-18")]
5840    pub fn OH_Drawing_TextLineGetAlignmentOffset(
5841        line: *mut OH_Drawing_TextLine,
5842        alignmentFactor: f64,
5843        alignmentWidth: f64,
5844    ) -> f64;
5845}
5846extern "C" {
5847    #[doc = " @brief Creates an <b>OH_Drawing_LineTypography</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param handler Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @return Returns the pointer to the <b>OH_Drawing_LineTypography</b> object created.\n @since 18"]
5848    #[cfg(feature = "api-18")]
5849    pub fn OH_Drawing_CreateLineTypography(
5850        handler: *mut OH_Drawing_TypographyCreate,
5851    ) -> *mut OH_Drawing_LineTypography;
5852}
5853extern "C" {
5854    #[doc = " @brief Releases the memory occupied by an <b>OH_Drawing_LineTypography</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param lineTypography Indicates the pointer to an <b>OH_Drawing_LineTypography</b> object.\n @since 18"]
5855    #[cfg(feature = "api-18")]
5856    pub fn OH_Drawing_DestroyLineTypography(lineTypography: *mut OH_Drawing_LineTypography);
5857}
5858extern "C" {
5859    #[doc = " @brief Calculate the line breakpoint based on the width provided.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param lineTypography Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @param startIndex Indicates the starting point for the line-break calculations.\n @param width Indicates the requested line-break width.\n @return Returns the count of the characters from startIndex that would cause the line break.\n @since 18"]
5860    #[cfg(feature = "api-18")]
5861    pub fn OH_Drawing_LineTypographyGetLineBreak(
5862        lineTypography: *mut OH_Drawing_LineTypography,
5863        startIndex: usize,
5864        width: f64,
5865    ) -> usize;
5866}
5867extern "C" {
5868    #[doc = " @brief Creates a text line object based on the text range provided.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param lineTypography Indicates the pointer to an <b>OH_Drawing_TypographyCreate</b> object.\n @param startIndex Indicates the starting index of the text range.\n @param count Indicates the characters count of the text range.\n @return Returns the pointer to the <b>OH_Drawing_TextLine</b> object created.\n @since 18"]
5869    #[cfg(feature = "api-18")]
5870    pub fn OH_Drawing_LineTypographyCreateLine(
5871        lineTypography: *mut OH_Drawing_LineTypography,
5872        startIndex: usize,
5873        count: usize,
5874    ) -> *mut OH_Drawing_TextLine;
5875}
5876extern "C" {
5877    #[doc = " @brief Gets the run glyph indices ,the offset of the index relative to the entire paragraph.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @param start The run of start index.\n @param length The run of length, if start and length are set to 0, then get all of the current run.\n @return Run of glyph indices array object <b>OH_Drawing_Array</b>.\n @since 18"]
5878    #[cfg(feature = "api-18")]
5879    pub fn OH_Drawing_GetRunStringIndices(
5880        run: *mut OH_Drawing_Run,
5881        start: i64,
5882        length: i64,
5883    ) -> *mut OH_Drawing_Array;
5884}
5885extern "C" {
5886    #[doc = " @brief Gets the run glyph indices by index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param stringIndices the run glyph indices array object <b>OH_Drawing_Array</b>.\n @param index The run of glyph index.\n @return Run of glyph indices element.\n @since 18"]
5887    #[cfg(feature = "api-18")]
5888    pub fn OH_Drawing_GetRunStringIndicesByIndex(
5889        stringIndices: *mut OH_Drawing_Array,
5890        index: usize,
5891    ) -> u64;
5892}
5893extern "C" {
5894    #[doc = " @brief Releases the memory run glyph indices array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param stringIndices glyph indices array object <b>OH_Drawing_Array</b>.\n @since 18"]
5895    #[cfg(feature = "api-18")]
5896    pub fn OH_Drawing_DestroyRunStringIndices(stringIndices: *mut OH_Drawing_Array);
5897}
5898extern "C" {
5899    #[doc = " @brief Gets the range run glyph location and length.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @param location The run of glyph location.\n @param length The run of glyph length.\n @since 18"]
5900    #[cfg(feature = "api-18")]
5901    pub fn OH_Drawing_GetRunStringRange(
5902        run: *mut OH_Drawing_Run,
5903        location: *mut u64,
5904        length: *mut u64,
5905    );
5906}
5907extern "C" {
5908    #[doc = " @brief Gets the run typographic bound.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @param ascent The run of ascent.\n @param descent The run of descent.\n @param leading The run of leading.\n @return run typographic width.\n @since 18"]
5909    #[cfg(feature = "api-18")]
5910    pub fn OH_Drawing_GetRunTypographicBounds(
5911        run: *mut OH_Drawing_Run,
5912        ascent: *mut f32,
5913        descent: *mut f32,
5914        leading: *mut f32,
5915    ) -> f32;
5916}
5917extern "C" {
5918    #[doc = " @brief Paints text on the canvas.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param canvas Indicates the pointer to an <b>OH_Drawing_Canvas</b> object.\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @param x Indicates the x coordinate.\n @param y Indicates the y coordinate.\n @since 18"]
5919    #[cfg(feature = "api-18")]
5920    pub fn OH_Drawing_RunPaint(
5921        canvas: *mut OH_Drawing_Canvas,
5922        run: *mut OH_Drawing_Run,
5923        x: f64,
5924        y: f64,
5925    );
5926}
5927extern "C" {
5928    #[doc = " @brief Gets the run image bound.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @return The run image bounds to an <b>OH_Drawing_Rect</b> object.\n @since 18"]
5929    #[cfg(feature = "api-18")]
5930    pub fn OH_Drawing_GetRunImageBounds(run: *mut OH_Drawing_Run) -> *mut OH_Drawing_Rect;
5931}
5932extern "C" {
5933    #[doc = " @brief Releases the memory run image bounds pointer.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param rect Run image bounds to an <b>OH_Drawing_Rect</b> object.\n @since 18"]
5934    #[cfg(feature = "api-18")]
5935    pub fn OH_Drawing_DestroyRunImageBounds(rect: *mut OH_Drawing_Rect);
5936}
5937extern "C" {
5938    #[doc = " @brief Gets the range glyph identifier for each character.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @param start The run of start index.\n @param length The run of length, if start and length are set to 0, then get all of the current run.\n @return Run of glyph array object <b>OH_Drawing_Array</b.\n @since 18"]
5939    #[cfg(feature = "api-18")]
5940    pub fn OH_Drawing_GetRunGlyphs(
5941        run: *mut OH_Drawing_Run,
5942        start: i64,
5943        length: i64,
5944    ) -> *mut OH_Drawing_Array;
5945}
5946extern "C" {
5947    #[doc = " @brief Gets the glyph identifier by index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param glyphs The run of glyph array object <b>OH_Drawing_Array</b>.\n @param index The run of glyph index.\n @return Run of glyph element.\n @since 18\n @version 1.0"]
5948    #[cfg(feature = "api-18")]
5949    pub fn OH_Drawing_GetRunGlyphsByIndex(glyphs: *mut OH_Drawing_Array, index: usize) -> u16;
5950}
5951extern "C" {
5952    #[doc = " @brief Releases the memory run glyph array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param glyphs The run of glyph array object <b>OH_Drawing_Array</b>.\n @since 18"]
5953    #[cfg(feature = "api-18")]
5954    pub fn OH_Drawing_DestroyRunGlyphs(glyphs: *mut OH_Drawing_Array);
5955}
5956extern "C" {
5957    #[doc = " @brief Gets the range glyph position array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @param start The run of start index.\n @param length The run of length, if start and length are set to 0, then get all of the current run.\n @return Run of position array object <b>OH_Drawing_Array</b>.\n @since 18"]
5958    #[cfg(feature = "api-18")]
5959    pub fn OH_Drawing_GetRunPositions(
5960        run: *mut OH_Drawing_Run,
5961        start: i64,
5962        length: i64,
5963    ) -> *mut OH_Drawing_Array;
5964}
5965extern "C" {
5966    #[doc = " @brief Gets the glyph position by index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param positions The run of position array object <b>OH_Drawing_Array</b>.\n @param index The run of glyph index.\n @return Run of glyph position pointer to an <b>OH_Drawing_Point</b> object.\n @since 18\n @version 1.0"]
5967    #[cfg(feature = "api-18")]
5968    pub fn OH_Drawing_GetRunPositionsByIndex(
5969        positions: *mut OH_Drawing_Array,
5970        index: usize,
5971    ) -> *mut OH_Drawing_Point;
5972}
5973extern "C" {
5974    #[doc = " @brief Releases the memory run of position array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param positions The run of position array object <b>OH_Drawing_Array</b>.\n @since 18"]
5975    #[cfg(feature = "api-18")]
5976    pub fn OH_Drawing_DestroyRunPositions(positions: *mut OH_Drawing_Array);
5977}
5978extern "C" {
5979    #[doc = " @brief Gets the number of glyph.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @return The number of glyph.\n @since 18"]
5980    #[cfg(feature = "api-18")]
5981    pub fn OH_Drawing_GetRunGlyphCount(run: *mut OH_Drawing_Run) -> u32;
5982}
5983extern "C" {
5984    #[doc = " @brief Gets the Font Object of run.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @return The Font Object of run.\n @since 20\n @version 1.0"]
5985    #[cfg(feature = "api-20")]
5986    pub fn OH_Drawing_GetRunFont(run: *mut OH_Drawing_Run) -> *mut OH_Drawing_Font;
5987}
5988extern "C" {
5989    #[doc = " @brief Get the text direction.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @return Return the text direction of an <b>OH_Drawing_TextDirection</b> object.\n @since 20"]
5990    #[cfg(feature = "api-20")]
5991    pub fn OH_Drawing_GetRunTextDirection(run: *mut OH_Drawing_Run) -> OH_Drawing_TextDirection;
5992}
5993extern "C" {
5994    #[doc = " @brief Gets the glyph advance array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param run Indicates the pointer to an <b>OH_Drawing_Run</b> object.\n @param start The run of start index.\n @param length The run of length, if start and length are set to 0, then get all of the current run.\n @return Indicates the pointer to the glyph advance array object <b>OH_Drawing_Array</b>.\n @since 20"]
5995    #[cfg(feature = "api-20")]
5996    pub fn OH_Drawing_GetRunGlyphAdvances(
5997        run: *mut OH_Drawing_Run,
5998        start: u32,
5999        length: u32,
6000    ) -> *mut OH_Drawing_Array;
6001}
6002extern "C" {
6003    #[doc = " @brief Gets the glyph advance by index.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param advances The glyph advance array object <b>OH_Drawing_Array</b>.\n @param index The run of glyph index.\n @return Run of glyph advance pointer to an <b>OH_Drawing_Point</b> object.\n @since 20"]
6004    #[cfg(feature = "api-20")]
6005    pub fn OH_Drawing_GetRunGlyphAdvanceByIndex(
6006        advances: *mut OH_Drawing_Array,
6007        index: usize,
6008    ) -> *mut OH_Drawing_Point;
6009}
6010extern "C" {
6011    #[doc = " @brief Releases the memory of glyph advance array.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param advances The run of glyph advance array object <b>OH_Drawing_Array</b>.\n @since 20"]
6012    #[cfg(feature = "api-20")]
6013    pub fn OH_Drawing_DestroyRunGlyphAdvances(advances: *mut OH_Drawing_Array);
6014}
6015extern "C" {
6016    #[doc = " @brief Creates a default <b>OH_Drawing_Typeface</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_Typeface</b> object created.\n @since 11\n @version 1.0"]
6017    pub fn OH_Drawing_TypefaceCreateDefault() -> *mut OH_Drawing_Typeface;
6018}
6019extern "C" {
6020    #[doc = " @brief Creates an <b>OH_Drawing_Typeface</b> object by file.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path  file path.\n @param index  file index.\n @return Returns the pointer to the <b>OH_Drawing_Typeface</b> object created.\n @since 12\n @version 1.0"]
6021    pub fn OH_Drawing_TypefaceCreateFromFile(
6022        path: *const ::std::os::raw::c_char,
6023        index: ::std::os::raw::c_int,
6024    ) -> *mut OH_Drawing_Typeface;
6025}
6026extern "C" {
6027    #[doc = " @brief Creates an <b>OH_Drawing_Typeface</b> object with the specified font arguments from a file.\n If the <b>OH_Drawing_Typeface</b> object does not support the variations described in fontArguments,\n this function creates an <b>OH_Drawing_Typeface</b> object without font arguments.\n In this case, this function provides the same capability as {@link OH_Drawing_TypefaceCreateFromFile}.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param path Indicates the file path.\n @param fontArguments Indicates the pointer to an <b>OH_Drawing_FontArguments</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Typeface</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty,\n         or either path or fontArguments is nullptr, or the path is invalid.\n @since 13\n @version 1.0"]
6028    #[cfg(feature = "api-13")]
6029    pub fn OH_Drawing_TypefaceCreateFromFileWithArguments(
6030        path: *const ::std::os::raw::c_char,
6031        fontArguments: *const OH_Drawing_FontArguments,
6032    ) -> *mut OH_Drawing_Typeface;
6033}
6034extern "C" {
6035    #[doc = " @brief Creates an <b>OH_Drawing_Typeface</b> object with the specified font arguments from\n an existing <b>OH_Drawing_Typeface</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param current Indicates the existing <b>OH_Drawing_Typeface</b> object.\n @param fontArguments Indicates the pointer to an <b>OH_Drawing_FontArguments</b> object.\n @return Returns the pointer to the <b>OH_Drawing_Typeface</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty,\n         or either current or fontArguments is nullptr,\n         or current does not support the variations described in fontArguments.\n @since 13\n @version 1.0"]
6036    #[cfg(feature = "api-13")]
6037    pub fn OH_Drawing_TypefaceCreateFromCurrent(
6038        current: *const OH_Drawing_Typeface,
6039        fontArguments: *const OH_Drawing_FontArguments,
6040    ) -> *mut OH_Drawing_Typeface;
6041}
6042extern "C" {
6043    #[doc = " @brief Creates an <b>OH_Drawing_Typeface</b> object by given a stream. If the stream is not a valid\n font file, returns nullptr. Ownership of the stream is transferred, so the caller must not reference\n it or free it again.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param memoryStream Indicates the pointer to an <b>OH_Drawing_MemoryStream</b> object.\n @param index  memory stream index.\n @return Returns the pointer to the <b>OH_Drawing_Typeface</b> object created.\n @since 12\n @version 1.0"]
6044    pub fn OH_Drawing_TypefaceCreateFromStream(
6045        memoryStream: *mut OH_Drawing_MemoryStream,
6046        index: i32,
6047    ) -> *mut OH_Drawing_Typeface;
6048}
6049extern "C" {
6050    #[doc = " @brief Destroys an <b>OH_Drawing_Typeface</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param typeface Indicates the pointer to an <b>OH_Drawing_Typeface</b> object.\n @since 11\n @version 1.0"]
6051    pub fn OH_Drawing_TypefaceDestroy(typeface: *mut OH_Drawing_Typeface);
6052}
6053extern "C" {
6054    #[doc = " @brief Creates an <b>OH_Drawing_FontArguments</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @return Returns the pointer to the <b>OH_Drawing_FontArguments</b> object created.\n         If nullptr is returned, the creation fails.\n         The possible cause of the failure is that the available memory is empty.\n @since 13\n @version 1.0"]
6055    #[cfg(feature = "api-13")]
6056    pub fn OH_Drawing_FontArgumentsCreate() -> *mut OH_Drawing_FontArguments;
6057}
6058extern "C" {
6059    #[doc = " @brief Adds a font variation axis for an <b>OH_Drawing_FontArguments</b> object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontArguments Indicates the pointer to an <b>OH_Drawing_FontArguments</b> object.\n @param axis Indicates the axis tag, which must contain four ASCII characters.\n @param value Indicates the value of the axis field.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if either fontArguments or axis is nullptr,\n                 or the length of axis is not 4.\n @since 13\n @version 1.0"]
6060    #[cfg(feature = "api-13")]
6061    pub fn OH_Drawing_FontArgumentsAddVariation(
6062        fontArguments: *mut OH_Drawing_FontArguments,
6063        axis: *const ::std::os::raw::c_char,
6064        value: f32,
6065    ) -> OH_Drawing_ErrorCode;
6066}
6067extern "C" {
6068    #[doc = " @brief Destroys an <b>OH_Drawing_FontArguments</b> object and reclaims the memory occupied by the object.\n\n @syscap SystemCapability.Graphic.Graphic2D.NativeDrawing\n @param fontArguments Indicates the pointer to an <b>OH_Drawing_FontArguments</b> object.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INVALID_PARAMETER} if fontArguments is nullptr.\n @since 13\n @version 1.0"]
6069    #[cfg(feature = "api-13")]
6070    pub fn OH_Drawing_FontArgumentsDestroy(
6071        fontArguments: *mut OH_Drawing_FontArguments,
6072    ) -> OH_Drawing_ErrorCode;
6073}
6074extern "C" {
6075    #[doc = " @brief Checks if the typeface is bold.\n\n @param typeface Indicates the pointer to an <b>OH_Drawing_Typeface</b> object.\n @param isBold Indicates if the typeface is bold.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if typeface or isBold is nullptr.\n @since 23\n @version 1.0"]
6076    #[cfg(feature = "api-23")]
6077    pub fn OH_Drawing_TypefaceIsBold(
6078        typeface: *const OH_Drawing_Typeface,
6079        isBold: *mut bool,
6080    ) -> OH_Drawing_ErrorCode;
6081}
6082extern "C" {
6083    #[doc = " @brief Checks if the typeface is italic.\n\n @param typeface Indicates the pointer to an <b>OH_Drawing_Typeface</b> object.\n @param isItalic Indicates if the typeface is italic.\n @return Returns the error code.\n         Returns {@link OH_DRAWING_SUCCESS} if the operation is successful.\n         Returns {@link OH_DRAWING_ERROR_INCORRECT_PARAMETER} if typeface or italic is nullptr.\n @since 23\n @version 1.0"]
6084    #[cfg(feature = "api-23")]
6085    pub fn OH_Drawing_TypefaceIsItalic(
6086        typeface: *const OH_Drawing_Typeface,
6087        isItalic: *mut bool,
6088    ) -> OH_Drawing_ErrorCode;
6089}