ohos_drawing_sys/text_declaration/
text_declaration_ffi.rs

1// automatically generated by rust-bindgen 0.71.1
2
3#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6use crate::types::*;
7
8/// Defines an <b>OH_Drawing_FontCollection</b>, which is used to load fonts.
9///
10///
11/// Available since API-level: 8
12///
13/// Version: 1.0
14#[repr(C)]
15pub struct OH_Drawing_FontCollection {
16    _unused: [u8; 0],
17}
18/// Defines an <b>OH_Drawing_Typography</b>, which is used to manage the typography layout and display.
19///
20///
21/// Available since API-level: 8
22///
23/// Version: 1.0
24#[repr(C)]
25pub struct OH_Drawing_Typography {
26    _unused: [u8; 0],
27}
28/// Defines an <b>OH_Drawing_LineTypography</b>, which is used to perform line layout.
29///
30///
31/// Available since API-level: 18
32///
33/// Version: 1.0
34#[cfg(feature = "api-18")]
35#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
36#[repr(C)]
37pub struct OH_Drawing_LineTypography {
38    _unused: [u8; 0],
39}
40/// Defines an <b>OH_Drawing_TextStyle</b>, which is used to manage text colors and decorations.
41///
42///
43/// Available since API-level: 8
44///
45/// Version: 1.0
46#[repr(C)]
47pub struct OH_Drawing_TextStyle {
48    _unused: [u8; 0],
49}
50/// Defines an <b>OH_Drawing_TypographyStyle</b>, which is used to manage the typography style,
51/// such as the text direction.
52///
53///
54/// Available since API-level: 8
55///
56/// Version: 1.0
57#[repr(C)]
58pub struct OH_Drawing_TypographyStyle {
59    _unused: [u8; 0],
60}
61/// Defines an <b>OH_Drawing_TypographyCreate</b>, which is used to create an <b>OH_Drawing_Typography</b> object.
62///
63///
64/// Available since API-level: 8
65///
66/// Version: 1.0
67#[repr(C)]
68pub struct OH_Drawing_TypographyCreate {
69    _unused: [u8; 0],
70}
71/// Defines an <b>OH_Drawing_TextBox</b>, which is used to create an <b>OH_Drawing_TextBox</b> object.
72///
73///
74/// Available since API-level: 11
75///
76/// Version: 1.0
77#[cfg(feature = "api-11")]
78#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
79#[repr(C)]
80pub struct OH_Drawing_TextBox {
81    _unused: [u8; 0],
82}
83/// Defines an <b>OH_Drawing_PositionAndAffinity</b>,
84/// which is used to create an <b>OH_Drawing_PositionAndAffinity</b> object.
85///
86/// Available since API-level: 11
87///
88/// Version: 1.0
89#[cfg(feature = "api-11")]
90#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
91#[repr(C)]
92pub struct OH_Drawing_PositionAndAffinity {
93    _unused: [u8; 0],
94}
95/// Defines an <b>OH_Drawing_Range</b>, which is used to create an <b>OH_Drawing_Range</b> object.
96///
97///
98/// Available since API-level: 11
99///
100/// Version: 1.0
101#[cfg(feature = "api-11")]
102#[cfg_attr(docsrs, doc(cfg(feature = "api-11")))]
103#[repr(C)]
104pub struct OH_Drawing_Range {
105    _unused: [u8; 0],
106}
107/// Defines an <b>OH_Drawing_FontParser</b>, which is used to parse system font files.
108///
109///
110/// Available since API-level: 12
111///
112/// Version: 1.0
113#[cfg(feature = "api-12")]
114#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
115#[repr(C)]
116pub struct OH_Drawing_FontParser {
117    _unused: [u8; 0],
118}
119/// Defines an <b>OH_Drawing_TextShadow</b>, which is used to manage text shadow.
120///
121///
122/// Available since API-level: 12
123///
124/// Version: 1.0
125#[cfg(feature = "api-12")]
126#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
127#[repr(C)]
128pub struct OH_Drawing_TextShadow {
129    _unused: [u8; 0],
130}
131/// Defines an <b>OH_Drawing_TextTab</b>, which is used to to store the tab alignment type and position.
132///
133///
134/// Available since API-level: 18
135///
136/// Version: 1.0
137#[cfg(feature = "api-18")]
138#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
139#[repr(C)]
140pub struct OH_Drawing_TextTab {
141    _unused: [u8; 0],
142}
143/// Defines an <b>OH_Drawing_TextLine</b>, which is used to manage text line.
144///
145///
146/// Available since API-level: 18
147///
148/// Version: 1.0
149#[cfg(feature = "api-18")]
150#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
151#[repr(C)]
152pub struct OH_Drawing_TextLine {
153    _unused: [u8; 0],
154}
155/// Defines an <b>OH_Drawing_Run</b>, which is used to manage run.
156///
157///
158/// Available since API-level: 18
159///
160/// Version: 1.0
161#[cfg(feature = "api-18")]
162#[cfg_attr(docsrs, doc(cfg(feature = "api-18")))]
163#[repr(C)]
164pub struct OH_Drawing_Run {
165    _unused: [u8; 0],
166}