Skip to main content

engage/generated/nn/hid/
touchscreenstate1.rs

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