Skip to main content

engage/generated/nn/hid/
touchscreenstate4.rs

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