1#[cfg(feature = "unity_engine-event_systems-pointerinputmodule-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 uibehaviour::{IUIBehaviour, UIBehaviour},
16 },
17 monobehaviour::{IMonoBehaviour, MonoBehaviour},
18 object_2::{IObject_2, Object_2},
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/pointerinputmodule/PointerInputModule_MouseButtonEventData.md"))]
23 #[::unity::class(namespace = "UnityEngine.EventSystems", name = "PointerInputModule.MouseButtonEventData")]
24 #[parent(crate::system::object::Object)]
25 pub struct PointerInputModule_MouseButtonEventData {
26 #[offset(16)]
27 #[rename(name = "buttonState")]
28 pub button_state: crate::unity_engine::event_systems::pointereventdata::PointerEventData_FramePressState,
29 #[offset(24)]
30 #[rename(name = "buttonData")]
31 pub button_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
32 }
33
34 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/pointerinputmodule/PointerInputModule.md"))]
35 #[::unity::class(namespace = "UnityEngine.EventSystems", name = "PointerInputModule")]
36 #[parent(crate::unity_engine::event_systems::baseinputmodule::BaseInputModule)]
37 pub struct PointerInputModule {
38 #[static_field]
39 #[rename(name = "kMouseLeftId")]
40 pub k_mouse_left_id: i32,
41 #[static_field]
42 #[rename(name = "kMouseRightId")]
43 pub k_mouse_right_id: i32,
44 #[static_field]
45 #[rename(name = "kMouseMiddleId")]
46 pub k_mouse_middle_id: i32,
47 #[static_field]
48 #[rename(name = "kFakeTouchesId")]
49 pub k_fake_touches_id: i32,
50 #[offset(72)]
51 #[rename(name = "m_PointerData")]
52 pub m_pointer_data: crate::system::collections::generic::dictionary_2::Dictionary_2<
53 i32,
54 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
55 >,
56 #[offset(80)]
57 #[rename(name = "m_MouseState")]
58 pub m_mouse_state: crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState,
59 }
60
61 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/pointerinputmodule/PointerInputModule_MouseState.md"))]
62 #[::unity::class(namespace = "UnityEngine.EventSystems", name = "PointerInputModule.MouseState")]
63 #[parent(crate::system::object::Object)]
64 pub struct PointerInputModule_MouseState {
65 #[offset(16)]
66 #[rename(name = "m_TrackedButtons")]
67 pub m_tracked_buttons: crate::system::collections::generic::list_1::List_1<
68 crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_ButtonState,
69 >,
70 }
71
72 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/pointerinputmodule/PointerInputModule_ButtonState.md"))]
73 #[::unity::class(namespace = "UnityEngine.EventSystems", name = "PointerInputModule.ButtonState")]
74 #[parent(crate::system::object::Object)]
75 pub struct PointerInputModule_ButtonState {
76 #[offset(16)]
77 #[rename(name = "m_Button")]
78 pub m_button: crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton,
79 #[offset(24)]
80 #[rename(name = "m_EventData")]
81 pub m_event_data: crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData,
82 }
83}
84
85#[cfg(feature = "unity_engine-event_systems-pointerinputmodule-types")]
86pub use __types::*;
87
88#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
89pub trait IPointerInputModule_MouseButtonEventDataMethods: IPointerInputModule_MouseButtonEventData {
90 #[doc = "`PressedThisFrame()` overload"]
91 fn pressed_this_frame(self) -> bool {
92 unsafe {
93 let __receiver = <PointerInputModule_MouseButtonEventData as ::unity::FromIlInstance>::from_il_instance(
94 <Self as ::unity::SystemObject>::as_instance(self),
95 );
96 ::unity::il2cpp_call!((::unity::module_base()+0x3c04d80usize)as*mut u8,bool;
97(PointerInputModule_MouseButtonEventData)__receiver)
98 }
99 }
100 #[doc = "`ReleasedThisFrame()` overload"]
101 fn released_this_frame(self) -> bool {
102 unsafe {
103 let __receiver = <PointerInputModule_MouseButtonEventData as ::unity::FromIlInstance>::from_il_instance(
104 <Self as ::unity::SystemObject>::as_instance(self),
105 );
106 ::unity::il2cpp_call!((::unity::module_base()+0x3c04d90usize)as*mut u8,bool;
107(PointerInputModule_MouseButtonEventData)__receiver)
108 }
109 }
110 #[doc = "`.ctor()` overload"]
111 fn ctor(self) -> () {
112 unsafe {
113 let __receiver = <PointerInputModule_MouseButtonEventData as ::unity::FromIlInstance>::from_il_instance(
114 <Self as ::unity::SystemObject>::as_instance(self),
115 );
116 ::unity::il2cpp_call!((::unity::module_base()+0x3c0e010usize)as*mut u8,();
117(PointerInputModule_MouseButtonEventData)__receiver)
118 }
119 }
120}
121
122#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
123impl<__T: IPointerInputModule_MouseButtonEventData> IPointerInputModule_MouseButtonEventDataMethods for __T {}
124
125#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
126impl PointerInputModule_MouseButtonEventData {
127 pub fn pressed_this_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
129 }
130
131 pub fn released_this_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
133 }
134
135 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
137 }
138}
139
140#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
141impl PointerInputModule_MouseButtonEventData {
142 #[doc = "`.ctor()` — no args"]
143 pub fn new() -> Self {
144 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
145 panic!(
146 "{}
147::{}
148 failed to instantiate",
149 ::core::stringify!(PointerInputModule_MouseButtonEventData),
150 ::core::stringify!(new),
151 )
152 });
153 <Self as IPointerInputModule_MouseButtonEventDataMethods>::ctor(this);
154 this
155 }
156}
157
158#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
159impl PointerInputModule {
160 #[doc = "`ShouldStartDrag(crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2, f32, bool)` overload"]
161 pub fn should_start_drag(
162 press_pos: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
163 current_pos: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
164 threshold: impl ::core::convert::Into<f32>,
165 use_drag_threshold: impl ::core::convert::Into<bool>,
166 ) -> bool {
167 unsafe {
168 ::unity::il2cpp_call!((::unity::module_base()+0x3720d60usize)as*mut u8,bool;
169(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(press_pos),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(current_pos),(f32)::core::convert::Into::into(threshold),(bool)::core::convert::Into::into(use_drag_threshold))
170 }
171 }
172}
173
174#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
175pub trait IPointerInputModuleMethods: IPointerInputModule {
176 #[doc = "`GetPointerData(i32, *mutcrate::unity_engine::event_systems::pointereventdata::PointerEventData, bool)` overload"]
177 fn get_pointer_data(
178 self,
179 id: impl ::core::convert::Into<i32>,
180 create: impl ::core::convert::Into<bool>,
181 ) -> (bool, crate::unity_engine::event_systems::pointereventdata::PointerEventData) {
182 unsafe {
183 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::event_systems::pointereventdata::PointerEventData>::uninit();
185 let __ret = {
186 ::unity::il2cpp_call!((::unity::module_base()+0x3720380usize)as*mut u8,bool;
187(PointerInputModule)__receiver,(i32)::core::convert::Into::into(id),(*mut crate::unity_engine::event_systems::pointereventdata::PointerEventData)__out_0.as_mut_ptr(),(bool)::core::convert::Into::into(create))
188 };
189 (__ret, __out_0.assume_init())
190 }
191 }
192 #[doc = "`RemovePointerData(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
193 fn remove_pointer_data(self, data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
194 unsafe {
195 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 ::unity::il2cpp_call!((::unity::module_base()+0x3720470usize)as*mut u8,();
197(PointerInputModule)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(data))
198 }
199 }
200 #[doc = "`GetTouchPointerEventData(crate::unity_engine::touch::Touch, *mutbool, *mutbool)` overload"]
201 fn get_touch_pointer_event_data(
202 self,
203 input: impl ::core::convert::Into<crate::unity_engine::touch::Touch>,
204 ) -> (crate::unity_engine::event_systems::pointereventdata::PointerEventData, bool, bool) {
205 unsafe {
206 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 let mut __out_0 = ::core::mem::MaybeUninit::<bool>::uninit();
208 let mut __out_1 = ::core::mem::MaybeUninit::<bool>::uninit();
209 let __ret = {
210 ::unity::il2cpp_call!((::unity::module_base()+0x37204d0usize)as*mut u8,crate::unity_engine::event_systems::pointereventdata::PointerEventData;
211(PointerInputModule)__receiver,(crate::unity_engine::touch::Touch)::core::convert::Into::into(input),(*mut bool)__out_0.as_mut_ptr(),(*mut bool)__out_1.as_mut_ptr())
212 };
213 (__ret, __out_0.assume_init(), __out_1.assume_init())
214 }
215 }
216 #[doc = "`CopyFromTo(crate::unity_engine::event_systems::pointereventdata::PointerEventData, crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
217 fn copy_from_to(
218 self,
219 from: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
220 to: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
221 ) -> () {
222 unsafe {
223 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x3720730usize)as*mut u8,();
225(PointerInputModule)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(from),(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(to))
226 }
227 }
228 #[doc = "`StateForMouseButton(i32)` overload"]
229 fn state_for_mouse_button(
230 self,
231 button_id: impl ::core::convert::Into<i32>,
232 ) -> crate::unity_engine::event_systems::pointereventdata::PointerEventData_FramePressState {
233 unsafe {
234 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x37207b0usize)as*mut u8,crate::unity_engine::event_systems::pointereventdata::PointerEventData_FramePressState;
236(PointerInputModule)__receiver,(i32)::core::convert::Into::into(button_id))
237 }
238 }
239 #[doc = "`GetMousePointerEventData()` overload"]
240 fn get_mouse_pointer_event_data(self) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState {
241 unsafe {
242 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243 {
244 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
245 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
246 panic!(
247 "unity: virtual slot {}
248 out of range (vtable len {}
249) on the runtime class behind {}
250 (method `{}
251`)",
252 26usize,
253 __vt.len(),
254 <PointerInputModule as ::unity::ClassIdentity>::NAME,
255 "GetMousePointerEventData",
256 )
257 });
258 let __inner: extern "C" fn(
259 PointerInputModule,
260 ::unity::OptionalMethod,
261 ) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState = ::core::mem::transmute(__vi.method_ptr);
262 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
263 __inner(__receiver, __mi)
264 }
265 }
266 }
267 #[doc = "`GetMousePointerEventData(i32)` overload"]
268 fn get_mouse_pointer_event_data_2(
269 self,
270 id: impl ::core::convert::Into<i32>,
271 ) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState {
272 unsafe {
273 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274 {
275 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
276 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
277 panic!(
278 "unity: virtual slot {}
279 out of range (vtable len {}
280) on the runtime class behind {}
281 (method `{}
282`)",
283 27usize,
284 __vt.len(),
285 <PointerInputModule as ::unity::ClassIdentity>::NAME,
286 "GetMousePointerEventData",
287 )
288 });
289 let __inner: extern "C" fn(
290 PointerInputModule,
291 i32,
292 ::unity::OptionalMethod,
293 ) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState = ::core::mem::transmute(__vi.method_ptr);
294 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
295 __inner(__receiver, ::core::convert::Into::into(id), __mi)
296 }
297 }
298 }
299 #[doc = "`GetLastPointerEventData(i32)` overload"]
300 fn get_last_pointer_event_data(
301 self,
302 id: impl ::core::convert::Into<i32>,
303 ) -> crate::unity_engine::event_systems::pointereventdata::PointerEventData {
304 unsafe {
305 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306 ::unity::il2cpp_call!((::unity::module_base()+0x3720cd0usize)as*mut u8,crate::unity_engine::event_systems::pointereventdata::PointerEventData;
307(PointerInputModule)__receiver,(i32)::core::convert::Into::into(id))
308 }
309 }
310 #[doc = "`ProcessMove(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
311 fn process_move(self, pointer_event: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
312 unsafe {
313 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314 {
315 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
316 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
317 panic!(
318 "unity: virtual slot {}
319 out of range (vtable len {}
320) on the runtime class behind {}
321 (method `{}
322`)",
323 28usize,
324 __vt.len(),
325 <PointerInputModule as ::unity::ClassIdentity>::NAME,
326 "ProcessMove",
327 )
328 });
329 let __inner: extern "C" fn(
330 PointerInputModule,
331 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
332 ::unity::OptionalMethod,
333 ) -> () = ::core::mem::transmute(__vi.method_ptr);
334 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
335 __inner(__receiver, ::core::convert::Into::into(pointer_event), __mi)
336 }
337 }
338 }
339 #[doc = "`ProcessDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
340 fn process_drag(self, pointer_event: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
341 unsafe {
342 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
343 {
344 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
345 let __vi = *__vt.get(29usize).unwrap_or_else(|| {
346 panic!(
347 "unity: virtual slot {}
348 out of range (vtable len {}
349) on the runtime class behind {}
350 (method `{}
351`)",
352 29usize,
353 __vt.len(),
354 <PointerInputModule as ::unity::ClassIdentity>::NAME,
355 "ProcessDrag",
356 )
357 });
358 let __inner: extern "C" fn(
359 PointerInputModule,
360 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
361 ::unity::OptionalMethod,
362 ) -> () = ::core::mem::transmute(__vi.method_ptr);
363 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
364 __inner(__receiver, ::core::convert::Into::into(pointer_event), __mi)
365 }
366 }
367 }
368 #[doc = "`IsPointerOverGameObject(i32)` overload"]
369 fn is_pointer_over_game_object(self, pointer_id: impl ::core::convert::Into<i32>) -> bool {
370 unsafe {
371 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
372 {
373 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
374 let __vi = *__vt.get(20usize).unwrap_or_else(|| {
375 panic!(
376 "unity: virtual slot {}
377 out of range (vtable len {}
378) on the runtime class behind {}
379 (method `{}
380`)",
381 20usize,
382 __vt.len(),
383 <PointerInputModule as ::unity::ClassIdentity>::NAME,
384 "IsPointerOverGameObject",
385 )
386 });
387 let __inner: extern "C" fn(PointerInputModule, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
388 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
389 __inner(__receiver, ::core::convert::Into::into(pointer_id), __mi)
390 }
391 }
392 }
393 #[doc = "`ClearSelection()` overload"]
394 fn clear_selection(self) -> () {
395 unsafe {
396 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
397 ::unity::il2cpp_call!((::unity::module_base()+0x37212a0usize)as*mut u8,();
398(PointerInputModule)__receiver)
399 }
400 }
401 #[doc = "`ToString()` overload"]
402 fn to_string(self) -> ::unity::Il2CppString {
403 unsafe {
404 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
405 {
406 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
407 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
408 panic!(
409 "unity: virtual slot {}
410 out of range (vtable len {}
411) on the runtime class behind {}
412 (method `{}
413`)",
414 3usize,
415 __vt.len(),
416 <PointerInputModule as ::unity::ClassIdentity>::NAME,
417 "ToString",
418 )
419 });
420 let __inner: extern "C" fn(PointerInputModule, ::unity::OptionalMethod) -> ::unity::Il2CppString =
421 ::core::mem::transmute(__vi.method_ptr);
422 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
423 __inner(__receiver, __mi)
424 }
425 }
426 }
427 #[doc = "`DeselectIfSelectionChanged(crate::unity_engine::gameobject::GameObject, crate::unity_engine::event_systems::baseeventdata::BaseEventData)` overload"]
428 fn deselect_if_selection_changed(
429 self,
430 current_over_go: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
431 pointer_event: impl ::core::convert::Into<crate::unity_engine::event_systems::baseeventdata::BaseEventData>,
432 ) -> () {
433 unsafe {
434 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
435 ::unity::il2cpp_call!((::unity::module_base()+0x3721670usize)as*mut u8,();
436(PointerInputModule)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(current_over_go),(crate::unity_engine::event_systems::baseeventdata::BaseEventData)::core::convert::Into::into(pointer_event))
437 }
438 }
439 #[doc = "`.ctor()` overload"]
440 fn ctor(self) -> () {
441 unsafe {
442 let __receiver = <PointerInputModule as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
443 ::unity::il2cpp_call!((::unity::module_base()+0x3721780usize)as*mut u8,();
444(PointerInputModule)__receiver)
445 }
446 }
447}
448
449#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
450impl<__T: IPointerInputModule> IPointerInputModuleMethods for __T {}
451
452#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
453impl PointerInputModule {
454 pub fn get_pointer_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
456 }
457
458 pub fn remove_pointer_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
460 }
461
462 pub fn get_touch_pointer_event_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
464 }
465
466 pub fn copy_from_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
468 }
469
470 pub fn state_for_mouse_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
472 }
473
474 pub fn get_mouse_pointer_event_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
476 }
477
478 pub fn get_mouse_pointer_event_data_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
480 }
481
482 pub fn get_last_pointer_event_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
484 }
485
486 pub fn should_start_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
488 }
489
490 pub fn process_move_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
492 }
493
494 pub fn process_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
496 }
497
498 pub fn is_pointer_over_game_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
500 }
501
502 pub fn clear_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
504 }
505
506 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
508 }
509
510 pub fn deselect_if_selection_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
512 }
513
514 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
516 }
517}
518
519#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
520impl PointerInputModule {
521 #[doc = "Direct (non-virtual) call to `PointerInputModule`'s own `GetMousePointerEventData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
522 pub unsafe fn get_mouse_pointer_event_data(
523 this: impl ::core::convert::Into<::unity::IlInstance>,
524 ) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState {
525 let __mi = Self::get_mouse_pointer_event_data_method_info();
526 let __inner: extern "C" fn(
527 ::unity::IlInstance,
528 ::unity::OptionalMethod,
529 ) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState = ::core::mem::transmute(__mi.method_ptr);
530 __inner(this.into(), ::core::option::Option::None)
531 }
532
533 #[doc = "Direct (non-virtual) call to `PointerInputModule`'s own `GetMousePointerEventData`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
534 pub unsafe fn get_mouse_pointer_event_data_2(
535 this: impl ::core::convert::Into<::unity::IlInstance>,
536 id: i32,
537 ) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState {
538 let __mi = Self::get_mouse_pointer_event_data_2_method_info();
539 let __inner: extern "C" fn(
540 ::unity::IlInstance,
541 i32,
542 ::unity::OptionalMethod,
543 ) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseState = ::core::mem::transmute(__mi.method_ptr);
544 __inner(this.into(), id, ::core::option::Option::None)
545 }
546
547 #[doc = "Direct (non-virtual) call to `PointerInputModule`'s own `ProcessMove`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
548 pub unsafe fn process_move(
549 this: impl ::core::convert::Into<::unity::IlInstance>,
550 pointer_event: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
551 ) -> () {
552 let __mi = Self::process_move_method_info();
553 let __inner: extern "C" fn(
554 ::unity::IlInstance,
555 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
556 ::unity::OptionalMethod,
557 ) -> () = ::core::mem::transmute(__mi.method_ptr);
558 __inner(this.into(), pointer_event, ::core::option::Option::None)
559 }
560
561 #[doc = "Direct (non-virtual) call to `PointerInputModule`'s own `ProcessDrag`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
562 pub unsafe fn process_drag(
563 this: impl ::core::convert::Into<::unity::IlInstance>,
564 pointer_event: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
565 ) -> () {
566 let __mi = Self::process_drag_method_info();
567 let __inner: extern "C" fn(
568 ::unity::IlInstance,
569 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
570 ::unity::OptionalMethod,
571 ) -> () = ::core::mem::transmute(__mi.method_ptr);
572 __inner(this.into(), pointer_event, ::core::option::Option::None)
573 }
574
575 #[doc = "Direct (non-virtual) call to `PointerInputModule`'s own `IsPointerOverGameObject`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
576 pub unsafe fn is_pointer_over_game_object(this: impl ::core::convert::Into<::unity::IlInstance>, pointer_id: i32) -> bool {
577 let __mi = Self::is_pointer_over_game_object_method_info();
578 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
579 __inner(this.into(), pointer_id, ::core::option::Option::None)
580 }
581
582 #[doc = "Direct (non-virtual) call to `PointerInputModule`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
583 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
584 let __mi = Self::to_string_method_info();
585 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
586 __inner(this.into(), ::core::option::Option::None)
587 }
588}
589
590#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
591impl PointerInputModule {
592 #[doc = "`.ctor()` — no args"]
593 pub fn new() -> Self {
594 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
595 panic!(
596 "{}
597::{}
598 failed to instantiate",
599 ::core::stringify!(PointerInputModule),
600 ::core::stringify!(new),
601 )
602 });
603 <Self as IPointerInputModuleMethods>::ctor(this);
604 this
605 }
606}
607
608#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
609pub trait IPointerInputModule_MouseStateMethods: IPointerInputModule_MouseState {
610 #[doc = "`AnyPressesThisFrame()` overload"]
611 fn any_presses_this_frame(self) -> bool {
612 unsafe {
613 let __receiver =
614 <PointerInputModule_MouseState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
615 ::unity::il2cpp_call!((::unity::module_base()+0x3c0e020usize)as*mut u8,bool;
616(PointerInputModule_MouseState)__receiver)
617 }
618 }
619 #[doc = "`AnyReleasesThisFrame()` overload"]
620 fn any_releases_this_frame(self) -> bool {
621 unsafe {
622 let __receiver =
623 <PointerInputModule_MouseState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
624 ::unity::il2cpp_call!((::unity::module_base()+0x3c0e0f0usize)as*mut u8,bool;
625(PointerInputModule_MouseState)__receiver)
626 }
627 }
628 #[doc = "`GetButtonState(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton)` overload"]
629 fn get_button_state(
630 self,
631 button: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton>,
632 ) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_ButtonState {
633 unsafe {
634 let __receiver =
635 <PointerInputModule_MouseState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
636 ::unity::il2cpp_call!((::unity::module_base()+0x3c047f0usize)as*mut u8,crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_ButtonState;
637(PointerInputModule_MouseState)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton)::core::convert::Into::into(button))
638 }
639 }
640 #[doc = "`SetButtonState(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton, crate::unity_engine::event_systems::pointereventdata::PointerEventData_FramePressState, crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
641 fn set_button_state(
642 self,
643 button: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton>,
644 state_for_mouse_button: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData_FramePressState>,
645 data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
646 ) -> () {
647 unsafe {
648 let __receiver =
649 <PointerInputModule_MouseState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
650 ::unity::il2cpp_call!((::unity::module_base()+0x3c0e1c0usize)as*mut u8,();
651(PointerInputModule_MouseState)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton)::core::convert::Into::into(button),(crate::unity_engine::event_systems::pointereventdata::PointerEventData_FramePressState)::core::convert::Into::into(state_for_mouse_button),(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(data))
652 }
653 }
654 #[doc = "`.ctor()` overload"]
655 fn ctor(self) -> () {
656 unsafe {
657 let __receiver =
658 <PointerInputModule_MouseState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
659 ::unity::il2cpp_call!((::unity::module_base()+0x3c0e200usize)as*mut u8,();
660(PointerInputModule_MouseState)__receiver)
661 }
662 }
663}
664
665#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
666impl<__T: IPointerInputModule_MouseState> IPointerInputModule_MouseStateMethods for __T {}
667
668#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
669impl PointerInputModule_MouseState {
670 pub fn any_presses_this_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
671 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
672 }
673
674 pub fn any_releases_this_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
675 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
676 }
677
678 pub fn get_button_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
679 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
680 }
681
682 pub fn set_button_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
683 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
684 }
685
686 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
687 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
688 }
689}
690
691#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
692impl PointerInputModule_MouseState {
693 #[doc = "`.ctor()` — no args"]
694 pub fn new() -> Self {
695 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
696 panic!(
697 "{}
698::{}
699 failed to instantiate",
700 ::core::stringify!(PointerInputModule_MouseState),
701 ::core::stringify!(new),
702 )
703 });
704 <Self as IPointerInputModule_MouseStateMethods>::ctor(this);
705 this
706 }
707}
708
709#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
710pub trait IPointerInputModule_ButtonStateMethods: IPointerInputModule_ButtonState {
711 #[doc = "`get_eventData()` overload"]
712 fn get_event_data(self) -> crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData {
713 unsafe {
714 let __receiver =
715 <PointerInputModule_ButtonState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
716 ::unity::il2cpp_call!((::unity::module_base()+0x3c0dfc0usize)as*mut u8,crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData;
717(PointerInputModule_ButtonState)__receiver)
718 }
719 }
720 #[doc = "`set_eventData(crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData)` overload"]
721 fn set_event_data(
722 self,
723 value: impl ::core::convert::Into<crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData>,
724 ) -> () {
725 unsafe {
726 let __receiver =
727 <PointerInputModule_ButtonState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
728 ::unity::il2cpp_call!((::unity::module_base()+0x3c0dfd0usize)as*mut u8,();
729(PointerInputModule_ButtonState)__receiver,(crate::unity_engine::event_systems::pointerinputmodule::PointerInputModule_MouseButtonEventData)::core::convert::Into::into(value))
730 }
731 }
732 #[doc = "`get_button()` overload"]
733 fn get_button(self) -> crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton {
734 unsafe {
735 let __receiver =
736 <PointerInputModule_ButtonState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
737 ::unity::il2cpp_call!((::unity::module_base()+0x3c0dfe0usize)as*mut u8,crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton;
738(PointerInputModule_ButtonState)__receiver)
739 }
740 }
741 #[doc = "`set_button(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton)` overload"]
742 fn set_button(self, value: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton>) -> () {
743 unsafe {
744 let __receiver =
745 <PointerInputModule_ButtonState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
746 ::unity::il2cpp_call!((::unity::module_base()+0x3c0dff0usize)as*mut u8,();
747(PointerInputModule_ButtonState)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton)::core::convert::Into::into(value))
748 }
749 }
750 #[doc = "`.ctor()` overload"]
751 fn ctor(self) -> () {
752 unsafe {
753 let __receiver =
754 <PointerInputModule_ButtonState as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
755 ::unity::il2cpp_call!((::unity::module_base()+0x3c0e000usize)as*mut u8,();
756(PointerInputModule_ButtonState)__receiver)
757 }
758 }
759}
760
761#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
762impl<__T: IPointerInputModule_ButtonState> IPointerInputModule_ButtonStateMethods for __T {}
763
764#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
765impl PointerInputModule_ButtonState {
766 pub fn get_event_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
767 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
768 }
769
770 pub fn set_event_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
771 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
772 }
773
774 pub fn get_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
775 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
776 }
777
778 pub fn set_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
779 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
780 }
781
782 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
783 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
784 }
785}
786
787#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
788impl PointerInputModule_ButtonState {
789 #[doc = "`.ctor()` — no args"]
790 pub fn new() -> Self {
791 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
792 panic!(
793 "{}
794::{}
795 failed to instantiate",
796 ::core::stringify!(PointerInputModule_ButtonState),
797 ::core::stringify!(new),
798 )
799 });
800 <Self as IPointerInputModule_ButtonStateMethods>::ctor(this);
801 this
802 }
803}
804
805#[cfg(feature = "unity_engine-event_systems-pointerinputmodule")]
806#[doc(hidden)]
807pub mod prelude {
808 pub use super::{
809 IPointerInputModule, IPointerInputModuleMethods, IPointerInputModule_ButtonState, IPointerInputModule_ButtonStateMethods,
810 IPointerInputModule_MouseButtonEventData, IPointerInputModule_MouseButtonEventDataMethods, IPointerInputModule_MouseState,
811 IPointerInputModule_MouseStateMethods, PointerInputModule, PointerInputModule_ButtonState, PointerInputModule_MouseButtonEventData,
812 PointerInputModule_MouseState,
813 };
814 #[cfg(feature = "system-object")]
815 pub use crate::system::object::IObjectMethods;
816 #[cfg(feature = "unity_engine-behaviour")]
817 pub use crate::unity_engine::behaviour::IBehaviourMethods;
818 #[cfg(feature = "unity_engine-component")]
819 pub use crate::unity_engine::component::IComponentMethods;
820 #[cfg(feature = "unity_engine-event_systems-baseinputmodule")]
821 pub use crate::unity_engine::event_systems::baseinputmodule::IBaseInputModuleMethods;
822 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
823 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
824 #[cfg(feature = "unity_engine-monobehaviour")]
825 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
826 #[cfg(feature = "unity_engine-object_2")]
827 pub use crate::unity_engine::object_2::IObject_2Methods;
828 pub use crate::{
829 system::object::IObject,
830 unity_engine::{
831 behaviour::IBehaviour,
832 component::IComponent,
833 event_systems::{baseinputmodule::IBaseInputModule, uibehaviour::IUIBehaviour},
834 monobehaviour::IMonoBehaviour,
835 object_2::IObject_2,
836 },
837 };
838}