Skip to main content

engage/generated/nn/hid/
touchscreenstate5.rs

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