Skip to main content

engage/generated/nn/hid/
touchscreenstate14.rs

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