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
/* automatically generated by rust-bindgen 0.69.4 */
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
use crate::drawing::types::*;
extern "C" {
/** @brief Creates an <b>OH_Drawing_Brush</b> object.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@return Returns the pointer to the <b>OH_Drawing_Brush</b> object created.
@since 8
@version 1.0*/
pub fn OH_Drawing_BrushCreate() -> *mut OH_Drawing_Brush;
/** @brief Destroys an <b>OH_Drawing_Brush</b> object and reclaims the memory occupied by the object.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.
@since 8
@version 1.0*/
pub fn OH_Drawing_BrushDestroy(arg1: *mut OH_Drawing_Brush);
/** @brief Checks whether anti-aliasing is enabled for a brush. If anti-aliasing is enabled,
edges will be drawn with partial transparency.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.
@return Returns <b>true</b> if anti-aliasing is enabled; returns <b>false</b> otherwise.
@since 8
@version 1.0*/
pub fn OH_Drawing_BrushIsAntiAlias(arg1: *const OH_Drawing_Brush) -> bool;
/** @brief Enables or disables anti-aliasing for a brush. If anti-aliasing is enabled,
edges will be drawn with partial transparency.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.
@param bool Specifies whether to enable anti-aliasing. The value <b>true</b> means
to enable anti-aliasing, and <b>false</b> means the opposite.
@since 8
@version 1.0*/
pub fn OH_Drawing_BrushSetAntiAlias(arg1: *mut OH_Drawing_Brush, arg2: bool);
/** @brief Obtains the color of a brush. The color is used by the brush to fill in a shape.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.
@return Returns a 32-bit (ARGB) variable that describes the color.
@since 8
@version 1.0*/
pub fn OH_Drawing_BrushGetColor(arg1: *const OH_Drawing_Brush) -> u32;
/** @brief Sets the color for a brush. The color will be used by the brush to fill in a shape.
@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing
@param OH_Drawing_Brush Indicates the pointer to an <b>OH_Drawing_Brush</b> object.
@param color Indicates the color to set, which is a 32-bit (ARGB) variable.
@since 8
@version 1.0*/
pub fn OH_Drawing_BrushSetColor(arg1: *mut OH_Drawing_Brush, color: u32);
}