1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#![allow(non_snake_case)]
use crate::drawing::types::*;
extern "C" {
/** @brief If rect intersects other, sets rect to intersection.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@param other Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@return Returns true if have area in common.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectIntersect(
rect: *mut OH_Drawing_Rect,
other: *const OH_Drawing_Rect,
) -> bool;
/** @brief Sets rect to the union of rect and other.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@param other Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@return Returns true if rect and other are not nullptr, and other is not empty;
false if rect or other is nullptr, or other is empty.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectJoin(rect: *mut OH_Drawing_Rect, other: *const OH_Drawing_Rect) -> bool;
/** @brief Set the left position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@param left Indicates the left position of the rect.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectSetLeft(rect: *mut OH_Drawing_Rect, left: f32);
/** @brief Set the top position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@param top Indicates the top position of the rect.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectSetTop(rect: *mut OH_Drawing_Rect, top: f32);
/** @brief Set the right position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@param right Indicates the right position of the rect.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectSetRight(rect: *mut OH_Drawing_Rect, right: f32);
/** @brief Set the bottom position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@param bottom Indicates the bottom position of the rect.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectSetBottom(rect: *mut OH_Drawing_Rect, bottom: f32);
/** @brief Get the left position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@return Return the left position of the rect.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectGetLeft(arg1: *mut OH_Drawing_Rect) -> f32;
/** @brief Get the top position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@return Return the top position of the rect.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectGetTop(arg1: *mut OH_Drawing_Rect) -> f32;
/** @brief Get the right position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@return Return the right position of the rect.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectGetRight(arg1: *mut OH_Drawing_Rect) -> f32;
/** @brief Get the bottom position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@return Return the bottom position of the rect.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectGetBottom(arg1: *mut OH_Drawing_Rect) -> f32;
/** @brief Get the height position of the rect.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Rect Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectGetHeight(arg1: *mut OH_Drawing_Rect) -> f32;
pub fn OH_Drawing_RectGetWidth(arg1: *mut OH_Drawing_Rect) -> f32;
/** @brief Copy the original rectangular object to the destination rectangular object.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param src Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@param dst Indicates the pointer to an <b>OH_Drawing_Rect</b> object.
@since 12
@version 1.0*/
pub fn OH_Drawing_RectCopy(src: *mut OH_Drawing_Rect, dst: *mut OH_Drawing_Rect);
}