Skip to main content

ohos_input_sys/pointer_style/
pointer_style_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)]
6
7#[cfg(feature = "api-22")]
8#[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
9impl Input_PointerStyle {
10    /// Default
11    ///
12    /// Available since API-level: 22
13    #[cfg(feature = "api-22")]
14    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
15    pub const DEFAULT: Input_PointerStyle = Input_PointerStyle(0);
16    /// East arrow
17    ///
18    /// Available since API-level: 22
19    #[cfg(feature = "api-22")]
20    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
21    pub const EAST: Input_PointerStyle = Input_PointerStyle(1);
22    /// West arrow
23    ///
24    /// Available since API-level: 22
25    #[cfg(feature = "api-22")]
26    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
27    pub const WEST: Input_PointerStyle = Input_PointerStyle(2);
28    /// South arrow
29    ///
30    /// Available since API-level: 22
31    #[cfg(feature = "api-22")]
32    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
33    pub const SOUTH: Input_PointerStyle = Input_PointerStyle(3);
34    /// North arrow
35    ///
36    /// Available since API-level: 22
37    #[cfg(feature = "api-22")]
38    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
39    pub const NORTH: Input_PointerStyle = Input_PointerStyle(4);
40    /// East-west arrow
41    ///
42    /// Available since API-level: 22
43    #[cfg(feature = "api-22")]
44    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
45    pub const WEST_EAST: Input_PointerStyle = Input_PointerStyle(5);
46    /// North-south arrow
47    ///
48    /// Available since API-level: 22
49    #[cfg(feature = "api-22")]
50    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
51    pub const NORTH_SOUTH: Input_PointerStyle = Input_PointerStyle(6);
52    /// North-east arrow
53    ///
54    /// Available since API-level: 22
55    #[cfg(feature = "api-22")]
56    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
57    pub const NORTH_EAST: Input_PointerStyle = Input_PointerStyle(7);
58    /// North-west arrow
59    ///
60    /// Available since API-level: 22
61    #[cfg(feature = "api-22")]
62    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
63    pub const NORTH_WEST: Input_PointerStyle = Input_PointerStyle(8);
64    /// South-east arrow
65    ///
66    /// Available since API-level: 22
67    #[cfg(feature = "api-22")]
68    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
69    pub const SOUTH_EAST: Input_PointerStyle = Input_PointerStyle(9);
70    /// South-west arrow
71    ///
72    /// Available since API-level: 22
73    #[cfg(feature = "api-22")]
74    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
75    pub const SOUTH_WEST: Input_PointerStyle = Input_PointerStyle(10);
76    /// Northeast and southwest adjustment
77    ///
78    /// Available since API-level: 22
79    #[cfg(feature = "api-22")]
80    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
81    pub const NORTH_EAST_SOUTH_WEST: Input_PointerStyle = Input_PointerStyle(11);
82    /// Northwest and southeast adjustment
83    ///
84    /// Available since API-level: 22
85    #[cfg(feature = "api-22")]
86    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
87    pub const NORTH_WEST_SOUTH_EAST: Input_PointerStyle = Input_PointerStyle(12);
88    /// Cross (accurate selection)
89    ///
90    /// Available since API-level: 22
91    #[cfg(feature = "api-22")]
92    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
93    pub const CROSS: Input_PointerStyle = Input_PointerStyle(13);
94    /// Copy
95    ///
96    /// Available since API-level: 22
97    #[cfg(feature = "api-22")]
98    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
99    pub const CURSOR_COPY: Input_PointerStyle = Input_PointerStyle(14);
100    /// Forbid
101    ///
102    /// Available since API-level: 22
103    #[cfg(feature = "api-22")]
104    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
105    pub const CURSOR_FORBID: Input_PointerStyle = Input_PointerStyle(15);
106    /// Sucker
107    ///
108    /// Available since API-level: 22
109    #[cfg(feature = "api-22")]
110    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
111    pub const COLOR_SUCKER: Input_PointerStyle = Input_PointerStyle(16);
112    /// Grabbing hand
113    ///
114    /// Available since API-level: 22
115    #[cfg(feature = "api-22")]
116    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
117    pub const HAND_GRABBING: Input_PointerStyle = Input_PointerStyle(17);
118    /// Opening hand
119    ///
120    /// Available since API-level: 22
121    #[cfg(feature = "api-22")]
122    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
123    pub const HAND_OPEN: Input_PointerStyle = Input_PointerStyle(18);
124    /// Hand-shaped pointer
125    ///
126    /// Available since API-level: 22
127    #[cfg(feature = "api-22")]
128    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
129    pub const HAND_POINTING: Input_PointerStyle = Input_PointerStyle(19);
130    /// Help
131    ///
132    /// Available since API-level: 22
133    #[cfg(feature = "api-22")]
134    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
135    pub const HELP: Input_PointerStyle = Input_PointerStyle(20);
136    /// Move
137    ///
138    /// Available since API-level: 22
139    #[cfg(feature = "api-22")]
140    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
141    pub const MOVE: Input_PointerStyle = Input_PointerStyle(21);
142    /// Left and right resizing
143    ///
144    /// Available since API-level: 22
145    #[cfg(feature = "api-22")]
146    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
147    pub const RESIZE_LEFT_RIGHT: Input_PointerStyle = Input_PointerStyle(22);
148    /// Up and down resizing
149    ///
150    /// Available since API-level: 22
151    #[cfg(feature = "api-22")]
152    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
153    pub const RESIZE_UP_DOWN: Input_PointerStyle = Input_PointerStyle(23);
154    /// Screenshot crosshair
155    ///
156    /// Available since API-level: 22
157    #[cfg(feature = "api-22")]
158    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
159    pub const SCREENSHOT_CHOOSE: Input_PointerStyle = Input_PointerStyle(24);
160    /// Screenshot
161    ///
162    /// Available since API-level: 22
163    #[cfg(feature = "api-22")]
164    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
165    pub const SCREENSHOT_CURSOR: Input_PointerStyle = Input_PointerStyle(25);
166    /// Text selection
167    ///
168    /// Available since API-level: 22
169    #[cfg(feature = "api-22")]
170    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
171    pub const TEXT_CURSOR: Input_PointerStyle = Input_PointerStyle(26);
172    /// Zoom in
173    ///
174    /// Available since API-level: 22
175    #[cfg(feature = "api-22")]
176    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
177    pub const ZOOM_IN: Input_PointerStyle = Input_PointerStyle(27);
178    /// Zoom out
179    ///
180    /// Available since API-level: 22
181    #[cfg(feature = "api-22")]
182    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
183    pub const ZOOM_OUT: Input_PointerStyle = Input_PointerStyle(28);
184    /// Scrolling east
185    ///
186    /// Available since API-level: 22
187    #[cfg(feature = "api-22")]
188    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
189    pub const MIDDLE_BTN_EAST: Input_PointerStyle = Input_PointerStyle(29);
190    /// Scrolling west
191    ///
192    /// Available since API-level: 22
193    #[cfg(feature = "api-22")]
194    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
195    pub const MIDDLE_BTN_WEST: Input_PointerStyle = Input_PointerStyle(30);
196    /// Scrolling south
197    ///
198    /// Available since API-level: 22
199    #[cfg(feature = "api-22")]
200    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
201    pub const MIDDLE_BTN_SOUTH: Input_PointerStyle = Input_PointerStyle(31);
202    /// Scrolling north
203    ///
204    /// Available since API-level: 22
205    #[cfg(feature = "api-22")]
206    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
207    pub const MIDDLE_BTN_NORTH: Input_PointerStyle = Input_PointerStyle(32);
208    /// Scrolling north and south
209    ///
210    /// Available since API-level: 22
211    #[cfg(feature = "api-22")]
212    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
213    pub const MIDDLE_BTN_NORTH_SOUTH: Input_PointerStyle = Input_PointerStyle(33);
214    /// Scrolling northeast
215    ///
216    /// Available since API-level: 22
217    #[cfg(feature = "api-22")]
218    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
219    pub const MIDDLE_BTN_NORTH_EAST: Input_PointerStyle = Input_PointerStyle(34);
220    /// Scrolling northwest
221    ///
222    /// Available since API-level: 22
223    #[cfg(feature = "api-22")]
224    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
225    pub const MIDDLE_BTN_NORTH_WEST: Input_PointerStyle = Input_PointerStyle(35);
226    /// Scrolling southeast
227    ///
228    /// Available since API-level: 22
229    #[cfg(feature = "api-22")]
230    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
231    pub const MIDDLE_BTN_SOUTH_EAST: Input_PointerStyle = Input_PointerStyle(36);
232    /// Scrolling southwest
233    ///
234    /// Available since API-level: 22
235    #[cfg(feature = "api-22")]
236    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
237    pub const MIDDLE_BTN_SOUTH_WEST: Input_PointerStyle = Input_PointerStyle(37);
238    /// Moving as a cone in four directions
239    ///
240    /// Available since API-level: 22
241    #[cfg(feature = "api-22")]
242    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
243    pub const MIDDLE_BTN_NORTH_SOUTH_WEST_EAST: Input_PointerStyle = Input_PointerStyle(38);
244    /// Horizontal text selection
245    ///
246    /// Available since API-level: 22
247    #[cfg(feature = "api-22")]
248    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
249    pub const HORIZONTAL_TEXT_CURSOR: Input_PointerStyle = Input_PointerStyle(39);
250    /// Precise selection
251    ///
252    /// Available since API-level: 22
253    #[cfg(feature = "api-22")]
254    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
255    pub const CURSOR_CROSS: Input_PointerStyle = Input_PointerStyle(40);
256    /// Cursor with circle style
257    ///
258    /// Available since API-level: 22
259    #[cfg(feature = "api-22")]
260    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
261    pub const CURSOR_CIRCLE: Input_PointerStyle = Input_PointerStyle(41);
262    /// Loading state with dynamic cursor
263    ///
264    /// Available since API-level: 22
265    #[cfg(feature = "api-22")]
266    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
267    pub const LOADING: Input_PointerStyle = Input_PointerStyle(42);
268    /// Running state with dynamic cursor
269    ///
270    /// Available since API-level: 22
271    #[cfg(feature = "api-22")]
272    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
273    pub const RUNNING: Input_PointerStyle = Input_PointerStyle(43);
274    /// Scrolling east and west
275    ///
276    /// Available since API-level: 22
277    #[cfg(feature = "api-22")]
278    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
279    pub const MIDDLE_BTN_EAST_WEST: Input_PointerStyle = Input_PointerStyle(44);
280    /// Left part of running state with dynamic cursor
281    ///
282    /// Available since API-level: 22
283    #[cfg(feature = "api-22")]
284    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
285    pub const RUNNING_LEFT: Input_PointerStyle = Input_PointerStyle(45);
286    /// Right part of running state with dynamic cursor
287    ///
288    /// Available since API-level: 22
289    #[cfg(feature = "api-22")]
290    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
291    pub const RUNNING_RIGHT: Input_PointerStyle = Input_PointerStyle(46);
292    /// Circular cursor
293    ///
294    /// Available since API-level: 22
295    #[cfg(feature = "api-22")]
296    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
297    pub const AECH_DEVELOPER_DEFINED_ICON: Input_PointerStyle = Input_PointerStyle(47);
298    /// Screen Recording
299    ///
300    /// Available since API-level: 22
301    #[cfg(feature = "api-22")]
302    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
303    pub const SCREENRECORDER_CURSOR: Input_PointerStyle = Input_PointerStyle(48);
304    /// Laser
305    ///
306    /// Available since API-level: 22
307    #[cfg(feature = "api-22")]
308    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
309    pub const LASER_CURSOR: Input_PointerStyle = Input_PointerStyle(49);
310    /// Dot laser
311    ///
312    /// Available since API-level: 22
313    #[cfg(feature = "api-22")]
314    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
315    pub const LASER_CURSOR_DOT: Input_PointerStyle = Input_PointerStyle(50);
316    /// Red dot laser
317    ///
318    /// Available since API-level: 22
319    #[cfg(feature = "api-22")]
320    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
321    pub const LASER_CURSOR_DOT_RED: Input_PointerStyle = Input_PointerStyle(51);
322    /// Developer defined
323    ///
324    /// Available since API-level: 22
325    #[cfg(feature = "api-22")]
326    #[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
327    pub const DEVELOPER_DEFINED_ICON: Input_PointerStyle = Input_PointerStyle(-100);
328}
329#[repr(transparent)]
330/// Enumerated values of OpenHarmony pointer style.
331///
332///
333/// Available since API-level: 22
334#[cfg(feature = "api-22")]
335#[cfg_attr(docsrs, doc(cfg(feature = "api-22")))]
336#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
337pub struct Input_PointerStyle(pub ::core::ffi::c_int);