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