engage/generated/unity_engine/event_systems/
touchinputmodule.rs1#[cfg(feature = "unity_engine-event_systems-touchinputmodule-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 event_systems::{
14 baseinputmodule::{BaseInputModule, IBaseInputModule},
15 pointerinputmodule::{IPointerInputModule, PointerInputModule},
16 uibehaviour::{IUIBehaviour, UIBehaviour},
17 },
18 monobehaviour::{IMonoBehaviour, MonoBehaviour},
19 object_2::{IObject_2, Object_2},
20 },
21 };
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/touchinputmodule/TouchInputModule.md"))]
24 #[::unity::class(namespace = "UnityEngine.EventSystems", name = "TouchInputModule")]
25 #[parent(crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule)]
26 pub struct TouchInputModule {
27 #[offset(88)]
28 #[rename(name = "m_LastMousePosition")]
29 pub m_last_mouse_position: crate::unity_engine::vector2::Vector2,
30 #[offset(96)]
31 #[rename(name = "m_MousePosition")]
32 pub m_mouse_position: crate::unity_engine::vector2::Vector2,
33 #[offset(104)]
34 #[rename(name = "m_InputPointerEvent")]
35 pub m_input_pointer_event: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
36 #[offset(112)]
37 #[rename(name = "m_ForceModuleActive")]
38 pub m_force_module_active: bool,
39 }
40}
41
42#[cfg(feature = "unity_engine-event_systems-touchinputmodule-types")]
43pub use __types::*;
44
45#[cfg(feature = "unity_engine-event_systems-touchinputmodule")]
46pub trait ITouchInputModuleMethods: ITouchInputModule {
47 #[doc = "`.ctor()` overload"]
48 fn ctor(self) -> () {
49 unsafe {
50 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51 ::unity::il2cpp_call!((::unity::module_base()+0x3c09620usize)as*mut u8,();
52(TouchInputModule)__receiver)
53 }
54 }
55 #[doc = "`get_allowActivationOnStandalone()` overload"]
56 fn get_allow_activation_on_standalone(self) -> bool {
57 unsafe {
58 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 ::unity::il2cpp_call!((::unity::module_base()+0x3c09630usize)as*mut u8,bool;
60(TouchInputModule)__receiver)
61 }
62 }
63 #[doc = "`set_allowActivationOnStandalone(bool)` overload"]
64 fn set_allow_activation_on_standalone(self, value: impl ::core::convert::Into<bool>) -> () {
65 unsafe {
66 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x3c09640usize)as*mut u8,();
68(TouchInputModule)__receiver,(bool)::core::convert::Into::into(value))
69 }
70 }
71 #[doc = "`get_forceModuleActive()` overload"]
72 fn get_force_module_active(self) -> bool {
73 unsafe {
74 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x3c09650usize)as*mut u8,bool;
76(TouchInputModule)__receiver)
77 }
78 }
79 #[doc = "`set_forceModuleActive(bool)` overload"]
80 fn set_force_module_active(self, value: impl ::core::convert::Into<bool>) -> () {
81 unsafe {
82 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83 ::unity::il2cpp_call!((::unity::module_base()+0x3c09660usize)as*mut u8,();
84(TouchInputModule)__receiver,(bool)::core::convert::Into::into(value))
85 }
86 }
87 #[doc = "`UpdateModule()` overload"]
88 fn update_module(self) -> () {
89 unsafe {
90 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
91 {
92 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
93 let __vi = *__vt.get(24usize).unwrap_or_else(|| {
94 panic!(
95 "unity: virtual slot {}
96 out of range (vtable len {}
97) on the runtime class behind {}
98 (method `{}
99`)",
100 24usize,
101 __vt.len(),
102 <TouchInputModule as ::unity::ClassIdentity>::NAME,
103 "UpdateModule",
104 )
105 });
106 let __inner: extern "C" fn(TouchInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
107 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
108 __inner(__receiver, __mi)
109 }
110 }
111 }
112 #[doc = "`IsModuleSupported()` overload"]
113 fn is_module_supported(self) -> bool {
114 unsafe {
115 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 {
117 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
118 let __vi = *__vt.get(25usize).unwrap_or_else(|| {
119 panic!(
120 "unity: virtual slot {}
121 out of range (vtable len {}
122) on the runtime class behind {}
123 (method `{}
124`)",
125 25usize,
126 __vt.len(),
127 <TouchInputModule as ::unity::ClassIdentity>::NAME,
128 "IsModuleSupported",
129 )
130 });
131 let __inner: extern "C" fn(TouchInputModule, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
132 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133 __inner(__receiver, __mi)
134 }
135 }
136 }
137 #[doc = "`ShouldActivateModule()` overload"]
138 fn should_activate_module(self) -> bool {
139 unsafe {
140 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 {
142 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
143 let __vi = *__vt.get(21usize).unwrap_or_else(|| {
144 panic!(
145 "unity: virtual slot {}
146 out of range (vtable len {}
147) on the runtime class behind {}
148 (method `{}
149`)",
150 21usize,
151 __vt.len(),
152 <TouchInputModule as ::unity::ClassIdentity>::NAME,
153 "ShouldActivateModule",
154 )
155 });
156 let __inner: extern "C" fn(TouchInputModule, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
157 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
158 __inner(__receiver, __mi)
159 }
160 }
161 }
162 #[doc = "`UseFakeInput()` overload"]
163 fn use_fake_input(self) -> bool {
164 unsafe {
165 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x3c09910usize)as*mut u8,bool;
167(TouchInputModule)__receiver)
168 }
169 }
170 #[doc = "`Process()` overload"]
171 fn process(self) -> () {
172 unsafe {
173 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 {
175 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
176 let __vi = *__vt.get(17usize).unwrap_or_else(|| {
177 panic!(
178 "unity: virtual slot {}
179 out of range (vtable len {}
180) on the runtime class behind {}
181 (method `{}
182`)",
183 17usize,
184 __vt.len(),
185 <TouchInputModule as ::unity::ClassIdentity>::NAME,
186 "Process",
187 )
188 });
189 let __inner: extern "C" fn(TouchInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
190 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
191 __inner(__receiver, __mi)
192 }
193 }
194 }
195 #[doc = "`FakeTouches()` overload"]
196 fn fake_touches(self) -> () {
197 unsafe {
198 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
199 ::unity::il2cpp_call!((::unity::module_base()+0x3c09990usize)as*mut u8,();
200(TouchInputModule)__receiver)
201 }
202 }
203 #[doc = "`ProcessTouchEvents()` overload"]
204 fn process_touch_events(self) -> () {
205 unsafe {
206 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x3c09a80usize)as*mut u8,();
208(TouchInputModule)__receiver)
209 }
210 }
211 #[doc = "`ProcessTouchPress(crate::unity_engine::event_systems::pointereventdata::PointerEventData, bool, bool)` overload"]
212 fn process_touch_press(
213 self,
214 pointer_event: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
215 pressed: impl ::core::convert::Into<bool>,
216 released: impl ::core::convert::Into<bool>,
217 ) -> () {
218 unsafe {
219 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220 ::unity::il2cpp_call!((::unity::module_base()+0x3c09c20usize)as*mut u8,();
221(TouchInputModule)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(pointer_event),(bool)::core::convert::Into::into(pressed),(bool)::core::convert::Into::into(released))
222 }
223 }
224 #[doc = "`DeactivateModule()` overload"]
225 fn deactivate_module(self) -> () {
226 unsafe {
227 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 {
229 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
230 let __vi = *__vt.get(22usize).unwrap_or_else(|| {
231 panic!(
232 "unity: virtual slot {}
233 out of range (vtable len {}
234) on the runtime class behind {}
235 (method `{}
236`)",
237 22usize,
238 __vt.len(),
239 <TouchInputModule as ::unity::ClassIdentity>::NAME,
240 "DeactivateModule",
241 )
242 });
243 let __inner: extern "C" fn(TouchInputModule, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
244 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
245 __inner(__receiver, __mi)
246 }
247 }
248 }
249 #[doc = "`ToString()` overload"]
250 fn to_string(self) -> ::unity::Il2CppString {
251 unsafe {
252 let __receiver = <TouchInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 {
254 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
255 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
256 panic!(
257 "unity: virtual slot {}
258 out of range (vtable len {}
259) on the runtime class behind {}
260 (method `{}
261`)",
262 3usize,
263 __vt.len(),
264 <TouchInputModule as ::unity::ClassIdentity>::NAME,
265 "ToString",
266 )
267 });
268 let __inner: extern "C" fn(TouchInputModule, ::unity::OptionalMethod) -> ::unity::Il2CppString =
269 ::core::mem::transmute(__vi.method_ptr);
270 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
271 __inner(__receiver, __mi)
272 }
273 }
274 }
275}
276
277#[cfg(feature = "unity_engine-event_systems-touchinputmodule")]
278impl<__T: ITouchInputModule> ITouchInputModuleMethods for __T {}
279
280#[cfg(feature = "unity_engine-event_systems-touchinputmodule")]
281impl TouchInputModule {
282 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
284 }
285
286 pub fn get_allow_activation_on_standalone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
288 }
289
290 pub fn set_allow_activation_on_standalone_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
292 }
293
294 pub fn get_force_module_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
296 }
297
298 pub fn set_force_module_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
300 }
301
302 pub fn update_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
304 }
305
306 pub fn is_module_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
308 }
309
310 pub fn should_activate_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
312 }
313
314 pub fn use_fake_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
316 }
317
318 pub fn process_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
320 }
321
322 pub fn fake_touches_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
324 }
325
326 pub fn process_touch_events_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
328 }
329
330 pub fn process_touch_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
332 }
333
334 pub fn deactivate_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
336 }
337
338 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
340 }
341}
342
343#[cfg(feature = "unity_engine-event_systems-touchinputmodule")]
344impl TouchInputModule {
345 #[doc = "Direct (non-virtual) call to `TouchInputModule`'s own `UpdateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
346 pub unsafe fn update_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
347 let __mi = Self::update_module_method_info();
348 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
349 __inner(this.into(), ::core::option::Option::None)
350 }
351
352 #[doc = "Direct (non-virtual) call to `TouchInputModule`'s own `IsModuleSupported`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
353 pub unsafe fn is_module_supported(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
354 let __mi = Self::is_module_supported_method_info();
355 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
356 __inner(this.into(), ::core::option::Option::None)
357 }
358
359 #[doc = "Direct (non-virtual) call to `TouchInputModule`'s own `ShouldActivateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
360 pub unsafe fn should_activate_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
361 let __mi = Self::should_activate_module_method_info();
362 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
363 __inner(this.into(), ::core::option::Option::None)
364 }
365
366 #[doc = "Direct (non-virtual) call to `TouchInputModule`'s own `Process`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
367 pub unsafe fn process(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
368 let __mi = Self::process_method_info();
369 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
370 __inner(this.into(), ::core::option::Option::None)
371 }
372
373 #[doc = "Direct (non-virtual) call to `TouchInputModule`'s own `DeactivateModule`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
374 pub unsafe fn deactivate_module(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
375 let __mi = Self::deactivate_module_method_info();
376 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
377 __inner(this.into(), ::core::option::Option::None)
378 }
379
380 #[doc = "Direct (non-virtual) call to `TouchInputModule`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
381 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
382 let __mi = Self::to_string_method_info();
383 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
384 __inner(this.into(), ::core::option::Option::None)
385 }
386}
387
388#[cfg(feature = "unity_engine-event_systems-touchinputmodule")]
389impl TouchInputModule {
390 #[doc = "`.ctor()` — no args"]
391 pub fn new() -> Self {
392 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
393 panic!(
394 "{}
395::{}
396 failed to instantiate",
397 ::core::stringify!(TouchInputModule),
398 ::core::stringify!(new),
399 )
400 });
401 <Self as ITouchInputModuleMethods>::ctor(this);
402 this
403 }
404}
405
406#[cfg(feature = "unity_engine-event_systems-touchinputmodule")]
407#[doc(hidden)]
408pub mod prelude {
409 pub use super::{ITouchInputModule, ITouchInputModuleMethods, TouchInputModule};
410 #[cfg(feature = "system-object")]
411 pub use crate::system::object::IObjectMethods;
412 #[cfg(feature = "unity_engine-behaviour")]
413 pub use crate::unity_engine::behaviour::IBehaviourMethods;
414 #[cfg(feature = "unity_engine-component")]
415 pub use crate::unity_engine::component::IComponentMethods;
416 #[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
417 pub use crate::unity_engine::event_systems::baseinputmodule::IBaseInputModuleMethods;
418 #[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
419 pub use crate::unity_engine::event_systems::pointerinputmodule::IPointerInputModuleMethods;
420 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
421 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
422 #[cfg(feature = "unity_engine-monobehaviour")]
423 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
424 #[cfg(feature = "unity_engine-object_2")]
425 pub use crate::unity_engine::object_2::IObject_2Methods;
426 pub use crate::{
427 system::object::IObject,
428 unity_engine::{
429 behaviour::IBehaviour,
430 component::IComponent,
431 event_systems::{baseinputmodule::IBaseInputModule, pointerinputmodule::IPointerInputModule, uibehaviour::IUIBehaviour},
432 monobehaviour::IMonoBehaviour,
433 object_2::IObject_2,
434 },
435 };
436}