Skip to main content

engage/generated/nn/hid/
touchscreenstate6.rs

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