Skip to main content

engage/generated/nn/hid/
gesturestate.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "nn-hid-gesturestate-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/nn/hid/gesturestate/GestureState_GesturePointArray4.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct GestureState_GesturePointArray4 {
17        pub value0: crate::nn::hid::gesturepoint::GesturePoint,
18        pub value1: crate::nn::hid::gesturepoint::GesturePoint,
19        pub value2: crate::nn::hid::gesturepoint::GesturePoint,
20        pub value3: crate::nn::hid::gesturepoint::GesturePoint,
21    }
22    impl ::unity::ClassIdentity for GestureState_GesturePointArray4 {
23        const NAME: &'static str = "GestureState.GesturePointArray4";
24        const NAMESPACE: &'static str = "nn.hid";
25
26        fn class() -> ::unity::Class {
27            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29        }
30    }
31    impl ::unity::IlType for GestureState_GesturePointArray4 {
32        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34        }
35    }
36    impl GestureState_GesturePointArray4 {
37        #[inline]
38        pub fn length() -> i32 {
39            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
40            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "_Length");
41            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
42        }
43
44        #[inline]
45        pub fn set_length(value: i32) {
46            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
47            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "_Length");
48            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
49        }
50    }
51
52    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/nn/hid/gesturestate/GestureState.md"))]
53    #[repr(C)]
54    #[derive(::core::clone::Clone, ::core::marker::Copy)]
55    pub struct GestureState {}
56    impl ::unity::ClassIdentity for GestureState {
57        const NAME: &'static str = "GestureState";
58        const NAMESPACE: &'static str = "nn.hid";
59
60        fn class() -> ::unity::Class {
61            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
62            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
63        }
64    }
65    impl ::unity::IlType for GestureState {
66        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
67            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
68        }
69    }
70}
71
72#[cfg(feature = "nn-hid-gesturestate-types")]
73pub use __types::*;
74
75#[cfg(feature = "nn-hid-gesturestate")]
76impl GestureState_GesturePointArray4 {
77    #[doc = "`get_Length()` overload"]
78    pub fn get_length(&mut self) -> i32 {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x1e70e20usize)as*mut u8,i32;
81(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4)
82        }
83    }
84
85    #[doc = "`get_Item(i32)` overload"]
86    pub fn get_item(&mut self, index: impl ::core::convert::Into<i32>) -> crate::nn::hid::gesturepoint::GesturePoint {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x1e70e30usize)as*mut u8,crate::nn::hid::gesturepoint::GesturePoint;
89(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(i32)::core::convert::Into::into(index))
90        }
91    }
92
93    #[doc = "`set_Item(i32, crate::nn::hid::gesturepoint::GesturePoint)` overload"]
94    pub fn set_item(
95        &mut self,
96        index: impl ::core::convert::Into<i32>,
97        value: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>,
98    ) -> () {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x1e70ed0usize)as*mut u8,();
101(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(i32)::core::convert::Into::into(index),(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(value))
102        }
103    }
104
105    #[doc = "`get_Count()` overload"]
106    pub fn get_count(&mut self) -> i32 {
107        unsafe {
108            ::unity::il2cpp_call!((::unity::module_base()+0x1e70f70usize)as*mut u8,i32;
109(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4)
110        }
111    }
112
113    #[doc = "`get_IsReadOnly()` overload"]
114    pub fn get_is_read_only(&mut self) -> bool {
115        unsafe {
116            ::unity::il2cpp_call!((::unity::module_base()+0x1e70f80usize)as*mut u8,bool;
117(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4)
118        }
119    }
120
121    #[doc = "`Contains(crate::nn::hid::gesturepoint::GesturePoint)` overload"]
122    pub fn contains(&mut self, item: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>) -> bool {
123        unsafe {
124            ::unity::il2cpp_call!((::unity::module_base()+0x1e70f90usize)as*mut u8,bool;
125(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(item))
126        }
127    }
128
129    #[doc = "`IndexOf(crate::nn::hid::gesturepoint::GesturePoint)` overload"]
130    pub fn index_of(&mut self, item: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>) -> i32 {
131        unsafe {
132            ::unity::il2cpp_call!((::unity::module_base()+0x1e71010usize)as*mut u8,i32;
133(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(item))
134        }
135    }
136
137    #[doc = "`CopyTo(::unity::Array<crate::nn::hid::gesturepoint::GesturePoint>, i32)` overload"]
138    pub fn copy_to(
139        &mut self,
140        array: impl ::core::convert::Into<::unity::Array<crate::nn::hid::gesturepoint::GesturePoint>>,
141        array_index: impl ::core::convert::Into<i32>,
142    ) -> () {
143        unsafe {
144            ::unity::il2cpp_call!((::unity::module_base()+0x1e710c0usize)as*mut u8,();
145(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(::unity::Array<crate::nn::hid::gesturepoint::GesturePoint>)::core::convert::Into::into(array),(i32)::core::convert::Into::into(array_index))
146        }
147    }
148
149    #[doc = "`ToString()` overload"]
150    pub fn to_string(&mut self) -> ::unity::Il2CppString {
151        unsafe {
152            ::unity::il2cpp_call!((::unity::module_base()+0x1e711f0usize)as*mut u8, ::unity::Il2CppString;
153(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4)
154        }
155    }
156
157    #[doc = "`GetEnumerator()` overload"]
158    pub fn get_enumerator(
159        &mut self,
160    ) -> crate::system::collections::generic::ienumerator_1::IEnumerator_1<crate::nn::hid::gesturepoint::GesturePoint> {
161        unsafe {
162            ::unity::il2cpp_call!((::unity::module_base()+0x1e713d0usize)as*mut u8,crate::system::collections::generic::ienumerator_1::IEnumerator_1<crate::nn::hid::gesturepoint::GesturePoint> ;
163(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4)
164        }
165    }
166
167    #[doc = "`System.Collections.IEnumerable.GetEnumerator()` overload"]
168    pub fn system_collections_i_enumerable_get_enumerator(&mut self) -> crate::system::collections::ienumerator::IEnumerator {
169        unsafe {
170            ::unity::il2cpp_call!((::unity::module_base()+0x1e71450usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
171(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4)
172        }
173    }
174
175    #[doc = "`Add(crate::nn::hid::gesturepoint::GesturePoint)` overload"]
176    pub fn add(&mut self, item: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>) -> () {
177        unsafe {
178            ::unity::il2cpp_call!((::unity::module_base()+0x1e714d0usize)as*mut u8,();
179(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(item))
180        }
181    }
182
183    #[doc = "`Clear()` overload"]
184    pub fn clear(&mut self) -> () {
185        unsafe {
186            ::unity::il2cpp_call!((::unity::module_base()+0x1e71510usize)as*mut u8,();
187(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4)
188        }
189    }
190
191    #[doc = "`Insert(i32, crate::nn::hid::gesturepoint::GesturePoint)` overload"]
192    pub fn insert(
193        &mut self,
194        index: impl ::core::convert::Into<i32>,
195        item: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>,
196    ) -> () {
197        unsafe {
198            ::unity::il2cpp_call!((::unity::module_base()+0x1e71550usize)as*mut u8,();
199(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(i32)::core::convert::Into::into(index),(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(item))
200        }
201    }
202
203    #[doc = "`Remove(crate::nn::hid::gesturepoint::GesturePoint)` overload"]
204    pub fn remove(&mut self, item: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>) -> bool {
205        unsafe {
206            ::unity::il2cpp_call!((::unity::module_base()+0x1e71590usize)as*mut u8,bool;
207(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(item))
208        }
209    }
210
211    #[doc = "`RemoveAt(i32)` overload"]
212    pub fn remove_at(&mut self, index: impl ::core::convert::Into<i32>) -> () {
213        unsafe {
214            ::unity::il2cpp_call!((::unity::module_base()+0x1e715d0usize)as*mut u8,();
215(*mut GestureState_GesturePointArray4)self as*mut GestureState_GesturePointArray4,(i32)::core::convert::Into::into(index))
216        }
217    }
218}
219
220#[cfg(feature = "nn-hid-gesturestate")]
221impl GestureState_GesturePointArray4 {
222    pub fn get_length_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
224    }
225
226    pub fn get_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
228    }
229
230    pub fn set_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
232    }
233
234    pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
236    }
237
238    pub fn get_is_read_only_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
240    }
241
242    pub fn contains_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
244    }
245
246    pub fn index_of_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
248    }
249
250    pub fn copy_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
252    }
253
254    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
256    }
257
258    pub fn get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
260    }
261
262    pub fn system_collections_i_enumerable_get_enumerator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
264    }
265
266    pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
268    }
269
270    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
272    }
273
274    pub fn insert_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
276    }
277
278    pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
280    }
281
282    pub fn remove_at_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
284    }
285}
286
287#[cfg(feature = "nn-hid-gesturestate")]
288impl GestureState {
289    #[doc = "`SetDefault()` overload"]
290    pub fn set_default(&mut self) -> () {
291        unsafe {
292            ::unity::il2cpp_call!((::unity::module_base()+0x2521c20usize)as*mut u8,();
293(*mut GestureState)self as*mut GestureState)
294        }
295    }
296
297    #[doc = "`get_type()` overload"]
298    pub fn get_type(&mut self) -> crate::nn::hid::gesturetype::GestureType {
299        unsafe {
300            ::unity::il2cpp_call!((::unity::module_base()+0x2521c30usize)as*mut u8,crate::nn::hid::gesturetype::GestureType;
301(*mut GestureState)self as*mut GestureState)
302        }
303    }
304
305    #[doc = "`get_direction()` overload"]
306    pub fn get_direction(&mut self) -> crate::nn::hid::gesturedirection::GestureDirection {
307        unsafe {
308            ::unity::il2cpp_call!((::unity::module_base()+0x2521c40usize)as*mut u8,crate::nn::hid::gesturedirection::GestureDirection;
309(*mut GestureState)self as*mut GestureState)
310        }
311    }
312
313    #[doc = "`get_isDoubleTap()` overload"]
314    pub fn get_is_double_tap(&mut self) -> bool {
315        unsafe {
316            ::unity::il2cpp_call!((::unity::module_base()+0x2521c50usize)as*mut u8,bool;
317(*mut GestureState)self as*mut GestureState)
318        }
319    }
320
321    #[doc = "`ToString()` overload"]
322    pub fn to_string(&mut self) -> ::unity::Il2CppString {
323        unsafe {
324            ::unity::il2cpp_call!((::unity::module_base()+0x2521c60usize)as*mut u8, ::unity::Il2CppString;
325(*mut GestureState)self as*mut GestureState)
326        }
327    }
328}
329
330#[cfg(feature = "nn-hid-gesturestate")]
331impl GestureState {
332    pub fn set_default_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
334    }
335
336    pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
338    }
339
340    pub fn get_direction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
342    }
343
344    pub fn get_is_double_tap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
346    }
347
348    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
350    }
351}
352
353#[cfg(feature = "nn-hid-gesturestate")]
354#[doc(hidden)]
355pub mod prelude {
356    pub use super::{GestureState, GestureState_GesturePointArray4};
357    #[cfg(feature = "system-object")]
358    pub use crate::system::object::IObjectMethods;
359    #[cfg(feature = "system-valuetype")]
360    pub use crate::system::valuetype::IValueTypeMethods;
361    pub use crate::system::{object::IObject, valuetype::IValueType};
362}