Skip to main content

engage/generated/unity_engine/event_systems/
pointereventdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-event_systems-pointereventdata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::event_systems::{
15            abstracteventdata::{AbstractEventData, IAbstractEventData},
16            baseeventdata::{BaseEventData, IBaseEventData},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/pointereventdata/PointerEventData_InputButton.md"))]
21    #[repr(C)]
22    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
23    pub struct PointerEventData_InputButton {
24        pub value: i32,
25    }
26    impl ::unity::ClassIdentity for PointerEventData_InputButton {
27        const NAME: &'static str = "PointerEventData.InputButton";
28        const NAMESPACE: &'static str = "UnityEngine.EventSystems";
29
30        fn class() -> ::unity::Class {
31            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33        }
34    }
35    impl ::unity::IlType for PointerEventData_InputButton {
36        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38        }
39    }
40    impl PointerEventData_InputButton {
41        pub fn left() -> Self {
42            Self { value: 0 }
43        }
44
45        pub fn right() -> Self {
46            Self { value: 1 }
47        }
48
49        pub fn middle() -> Self {
50            Self { value: 2 }
51        }
52    }
53
54    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/pointereventdata/PointerEventData.md"))]
55    #[::unity::class(namespace = "UnityEngine.EventSystems", name = "PointerEventData")]
56    #[parent(crate::unity_engine::event_systems::baseeventdata::BaseEventData)]
57    pub struct PointerEventData {
58        #[offset(40)]
59        #[rename(name = "m_PointerPress")]
60        pub m_pointer_press: crate::unity_engine::gameobject::GameObject,
61        #[offset(224)]
62        #[rename(name = "hovered")]
63        pub hovered: crate::system::collections::generic::list_1::List_1<crate::unity_engine::gameobject::GameObject>,
64    }
65
66    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event_systems/pointereventdata/PointerEventData_FramePressState.md"))]
67    #[repr(C)]
68    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
69    pub struct PointerEventData_FramePressState {
70        pub value: i32,
71    }
72    impl ::unity::ClassIdentity for PointerEventData_FramePressState {
73        const NAME: &'static str = "PointerEventData.FramePressState";
74        const NAMESPACE: &'static str = "UnityEngine.EventSystems";
75
76        fn class() -> ::unity::Class {
77            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
78            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
79        }
80    }
81    impl ::unity::IlType for PointerEventData_FramePressState {
82        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
83            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
84        }
85    }
86    impl PointerEventData_FramePressState {
87        pub fn pressed() -> Self {
88            Self { value: 0 }
89        }
90
91        pub fn released() -> Self {
92            Self { value: 1 }
93        }
94
95        pub fn pressed_and_released() -> Self {
96            Self { value: 2 }
97        }
98
99        pub fn not_changed() -> Self {
100            Self { value: 3 }
101        }
102    }
103}
104
105#[cfg(feature = "unity_engine-event_systems-pointereventdata-types")]
106pub use __types::*;
107
108#[cfg(feature = "unity_engine-event_systems-pointereventdata")]
109pub trait IPointerEventDataMethods: IPointerEventData {
110    #[doc = "`get_pointerEnter()` overload"]
111    fn get_pointer_enter(self) -> crate::unity_engine::gameobject::GameObject {
112        unsafe {
113            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x371f020usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
115(PointerEventData)__receiver)
116        }
117    }
118    #[doc = "`set_pointerEnter(crate::unity_engine::gameobject::GameObject)` overload"]
119    fn set_pointer_enter(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
120        unsafe {
121            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122            ::unity::il2cpp_call!((::unity::module_base()+0x371f030usize)as*mut u8,();
123(PointerEventData)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
124        }
125    }
126    #[doc = "`get_lastPress()` overload"]
127    fn get_last_press(self) -> crate::unity_engine::gameobject::GameObject {
128        unsafe {
129            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130            ::unity::il2cpp_call!((::unity::module_base()+0x371f040usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
131(PointerEventData)__receiver)
132        }
133    }
134    #[doc = "`set_lastPress(crate::unity_engine::gameobject::GameObject)` overload"]
135    fn set_last_press(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
136        unsafe {
137            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138            ::unity::il2cpp_call!((::unity::module_base()+0x371f050usize)as*mut u8,();
139(PointerEventData)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
140        }
141    }
142    #[doc = "`get_rawPointerPress()` overload"]
143    fn get_raw_pointer_press(self) -> crate::unity_engine::gameobject::GameObject {
144        unsafe {
145            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            ::unity::il2cpp_call!((::unity::module_base()+0x371f060usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
147(PointerEventData)__receiver)
148        }
149    }
150    #[doc = "`set_rawPointerPress(crate::unity_engine::gameobject::GameObject)` overload"]
151    fn set_raw_pointer_press(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
152        unsafe {
153            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154            ::unity::il2cpp_call!((::unity::module_base()+0x371f070usize)as*mut u8,();
155(PointerEventData)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
156        }
157    }
158    #[doc = "`get_pointerDrag()` overload"]
159    fn get_pointer_drag(self) -> crate::unity_engine::gameobject::GameObject {
160        unsafe {
161            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x371f080usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
163(PointerEventData)__receiver)
164        }
165    }
166    #[doc = "`set_pointerDrag(crate::unity_engine::gameobject::GameObject)` overload"]
167    fn set_pointer_drag(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
168        unsafe {
169            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170            ::unity::il2cpp_call!((::unity::module_base()+0x371f090usize)as*mut u8,();
171(PointerEventData)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
172        }
173    }
174    #[doc = "`get_pointerClick()` overload"]
175    fn get_pointer_click(self) -> crate::unity_engine::gameobject::GameObject {
176        unsafe {
177            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178            ::unity::il2cpp_call!((::unity::module_base()+0x371f0a0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
179(PointerEventData)__receiver)
180        }
181    }
182    #[doc = "`set_pointerClick(crate::unity_engine::gameobject::GameObject)` overload"]
183    fn set_pointer_click(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
184        unsafe {
185            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186            ::unity::il2cpp_call!((::unity::module_base()+0x371f0b0usize)as*mut u8,();
187(PointerEventData)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
188        }
189    }
190    #[doc = "`get_pointerCurrentRaycast()` overload"]
191    fn get_pointer_current_raycast(self) -> crate::unity_engine::event_systems::raycastresult::RaycastResult {
192        unsafe {
193            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194            ::unity::il2cpp_call!((::unity::module_base()+0x371f0c0usize)as*mut u8,crate::unity_engine::event_systems::raycastresult::RaycastResult;
195(PointerEventData)__receiver)
196        }
197    }
198    #[doc = "`set_pointerCurrentRaycast(crate::unity_engine::event_systems::raycastresult::RaycastResult)` overload"]
199    fn set_pointer_current_raycast(self, value: impl ::core::convert::Into<crate::unity_engine::event_systems::raycastresult::RaycastResult>) -> () {
200        unsafe {
201            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x371f0f0usize)as*mut u8,();
203(PointerEventData)__receiver,(crate::unity_engine::event_systems::raycastresult::RaycastResult)::core::convert::Into::into(value))
204        }
205    }
206    #[doc = "`get_pointerPressRaycast()` overload"]
207    fn get_pointer_press_raycast(self) -> crate::unity_engine::event_systems::raycastresult::RaycastResult {
208        unsafe {
209            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
210            ::unity::il2cpp_call!((::unity::module_base()+0x371f120usize)as*mut u8,crate::unity_engine::event_systems::raycastresult::RaycastResult;
211(PointerEventData)__receiver)
212        }
213    }
214    #[doc = "`set_pointerPressRaycast(crate::unity_engine::event_systems::raycastresult::RaycastResult)` overload"]
215    fn set_pointer_press_raycast(self, value: impl ::core::convert::Into<crate::unity_engine::event_systems::raycastresult::RaycastResult>) -> () {
216        unsafe {
217            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x371f150usize)as*mut u8,();
219(PointerEventData)__receiver,(crate::unity_engine::event_systems::raycastresult::RaycastResult)::core::convert::Into::into(value))
220        }
221    }
222    #[doc = "`get_eligibleForClick()` overload"]
223    fn get_eligible_for_click(self) -> bool {
224        unsafe {
225            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            ::unity::il2cpp_call!((::unity::module_base()+0x371f180usize)as*mut u8,bool;
227(PointerEventData)__receiver)
228        }
229    }
230    #[doc = "`set_eligibleForClick(bool)` overload"]
231    fn set_eligible_for_click(self, value: impl ::core::convert::Into<bool>) -> () {
232        unsafe {
233            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x371f190usize)as*mut u8,();
235(PointerEventData)__receiver,(bool)::core::convert::Into::into(value))
236        }
237    }
238    #[doc = "`get_pointerId()` overload"]
239    fn get_pointer_id(self) -> i32 {
240        unsafe {
241            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            ::unity::il2cpp_call!((::unity::module_base()+0x371f1a0usize)as*mut u8,i32;
243(PointerEventData)__receiver)
244        }
245    }
246    #[doc = "`set_pointerId(i32)` overload"]
247    fn set_pointer_id(self, value: impl ::core::convert::Into<i32>) -> () {
248        unsafe {
249            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250            ::unity::il2cpp_call!((::unity::module_base()+0x371f1b0usize)as*mut u8,();
251(PointerEventData)__receiver,(i32)::core::convert::Into::into(value))
252        }
253    }
254    #[doc = "`get_position()` overload"]
255    fn get_position(self) -> crate::unity_engine::vector2::Vector2 {
256        unsafe {
257            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            ::unity::il2cpp_call!((::unity::module_base()+0x371f1c0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
259(PointerEventData)__receiver)
260        }
261    }
262    #[doc = "`set_position(crate::unity_engine::vector2::Vector2)` overload"]
263    fn set_position(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
264        unsafe {
265            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
266            ::unity::il2cpp_call!((::unity::module_base()+0x371f1d0usize)as*mut u8,();
267(PointerEventData)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
268        }
269    }
270    #[doc = "`get_delta()` overload"]
271    fn get_delta(self) -> crate::unity_engine::vector2::Vector2 {
272        unsafe {
273            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            ::unity::il2cpp_call!((::unity::module_base()+0x371f1e0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
275(PointerEventData)__receiver)
276        }
277    }
278    #[doc = "`set_delta(crate::unity_engine::vector2::Vector2)` overload"]
279    fn set_delta(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
280        unsafe {
281            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x371f1f0usize)as*mut u8,();
283(PointerEventData)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
284        }
285    }
286    #[doc = "`get_pressPosition()` overload"]
287    fn get_press_position(self) -> crate::unity_engine::vector2::Vector2 {
288        unsafe {
289            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290            ::unity::il2cpp_call!((::unity::module_base()+0x371f200usize)as*mut u8,crate::unity_engine::vector2::Vector2;
291(PointerEventData)__receiver)
292        }
293    }
294    #[doc = "`set_pressPosition(crate::unity_engine::vector2::Vector2)` overload"]
295    fn set_press_position(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
296        unsafe {
297            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            ::unity::il2cpp_call!((::unity::module_base()+0x371f210usize)as*mut u8,();
299(PointerEventData)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
300        }
301    }
302    #[doc = "`get_worldPosition()` overload"]
303    fn get_world_position(self) -> crate::unity_engine::vector3::Vector3 {
304        unsafe {
305            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306            ::unity::il2cpp_call!((::unity::module_base()+0x371f220usize)as*mut u8,crate::unity_engine::vector3::Vector3;
307(PointerEventData)__receiver)
308        }
309    }
310    #[doc = "`set_worldPosition(crate::unity_engine::vector3::Vector3)` overload"]
311    fn set_world_position(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
312        unsafe {
313            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314            ::unity::il2cpp_call!((::unity::module_base()+0x371f230usize)as*mut u8,();
315(PointerEventData)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
316        }
317    }
318    #[doc = "`get_worldNormal()` overload"]
319    fn get_world_normal(self) -> crate::unity_engine::vector3::Vector3 {
320        unsafe {
321            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
322            ::unity::il2cpp_call!((::unity::module_base()+0x371f240usize)as*mut u8,crate::unity_engine::vector3::Vector3;
323(PointerEventData)__receiver)
324        }
325    }
326    #[doc = "`set_worldNormal(crate::unity_engine::vector3::Vector3)` overload"]
327    fn set_world_normal(self, value: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> () {
328        unsafe {
329            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
330            ::unity::il2cpp_call!((::unity::module_base()+0x371f250usize)as*mut u8,();
331(PointerEventData)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(value))
332        }
333    }
334    #[doc = "`get_clickTime()` overload"]
335    fn get_click_time(self) -> f32 {
336        unsafe {
337            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
338            ::unity::il2cpp_call!((::unity::module_base()+0x371f260usize)as*mut u8,f32;
339(PointerEventData)__receiver)
340        }
341    }
342    #[doc = "`set_clickTime(f32)` overload"]
343    fn set_click_time(self, value: impl ::core::convert::Into<f32>) -> () {
344        unsafe {
345            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
346            ::unity::il2cpp_call!((::unity::module_base()+0x371f270usize)as*mut u8,();
347(PointerEventData)__receiver,(f32)::core::convert::Into::into(value))
348        }
349    }
350    #[doc = "`get_clickCount()` overload"]
351    fn get_click_count(self) -> i32 {
352        unsafe {
353            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
354            ::unity::il2cpp_call!((::unity::module_base()+0x371f280usize)as*mut u8,i32;
355(PointerEventData)__receiver)
356        }
357    }
358    #[doc = "`set_clickCount(i32)` overload"]
359    fn set_click_count(self, value: impl ::core::convert::Into<i32>) -> () {
360        unsafe {
361            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
362            ::unity::il2cpp_call!((::unity::module_base()+0x371f290usize)as*mut u8,();
363(PointerEventData)__receiver,(i32)::core::convert::Into::into(value))
364        }
365    }
366    #[doc = "`get_scrollDelta()` overload"]
367    fn get_scroll_delta(self) -> crate::unity_engine::vector2::Vector2 {
368        unsafe {
369            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
370            ::unity::il2cpp_call!((::unity::module_base()+0x371f2a0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
371(PointerEventData)__receiver)
372        }
373    }
374    #[doc = "`set_scrollDelta(crate::unity_engine::vector2::Vector2)` overload"]
375    fn set_scroll_delta(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
376        unsafe {
377            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
378            ::unity::il2cpp_call!((::unity::module_base()+0x371f2b0usize)as*mut u8,();
379(PointerEventData)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
380        }
381    }
382    #[doc = "`get_useDragThreshold()` overload"]
383    fn get_use_drag_threshold(self) -> bool {
384        unsafe {
385            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
386            ::unity::il2cpp_call!((::unity::module_base()+0x371f2c0usize)as*mut u8,bool;
387(PointerEventData)__receiver)
388        }
389    }
390    #[doc = "`set_useDragThreshold(bool)` overload"]
391    fn set_use_drag_threshold(self, value: impl ::core::convert::Into<bool>) -> () {
392        unsafe {
393            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
394            ::unity::il2cpp_call!((::unity::module_base()+0x371f2d0usize)as*mut u8,();
395(PointerEventData)__receiver,(bool)::core::convert::Into::into(value))
396        }
397    }
398    #[doc = "`get_dragging()` overload"]
399    fn get_dragging(self) -> bool {
400        unsafe {
401            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
402            ::unity::il2cpp_call!((::unity::module_base()+0x371f2e0usize)as*mut u8,bool;
403(PointerEventData)__receiver)
404        }
405    }
406    #[doc = "`set_dragging(bool)` overload"]
407    fn set_dragging(self, value: impl ::core::convert::Into<bool>) -> () {
408        unsafe {
409            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
410            ::unity::il2cpp_call!((::unity::module_base()+0x371f2f0usize)as*mut u8,();
411(PointerEventData)__receiver,(bool)::core::convert::Into::into(value))
412        }
413    }
414    #[doc = "`get_button()` overload"]
415    fn get_button(self) -> crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton {
416        unsafe {
417            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
418            ::unity::il2cpp_call!((::unity::module_base()+0x371f300usize)as*mut u8,crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton;
419(PointerEventData)__receiver)
420        }
421    }
422    #[doc = "`set_button(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton)` overload"]
423    fn set_button(self, value: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton>) -> () {
424        unsafe {
425            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
426            ::unity::il2cpp_call!((::unity::module_base()+0x371f310usize)as*mut u8,();
427(PointerEventData)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData_InputButton)::core::convert::Into::into(value))
428        }
429    }
430    #[doc = "`.ctor(crate::unity_engine::event_systems::eventsystem::EventSystem)` overload"]
431    fn ctor(self, event_system: impl ::core::convert::Into<crate::unity_engine::event_systems::eventsystem::EventSystem>) -> () {
432        unsafe {
433            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
434            ::unity::il2cpp_call!((::unity::module_base()+0x371f320usize)as*mut u8,();
435(PointerEventData)__receiver,(crate::unity_engine::event_systems::eventsystem::EventSystem)::core::convert::Into::into(event_system))
436        }
437    }
438    #[doc = "`IsPointerMoving()` overload"]
439    fn is_pointer_moving(self) -> bool {
440        unsafe {
441            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
442            ::unity::il2cpp_call!((::unity::module_base()+0x371f420usize)as*mut u8,bool;
443(PointerEventData)__receiver)
444        }
445    }
446    #[doc = "`IsScrolling()` overload"]
447    fn is_scrolling(self) -> bool {
448        unsafe {
449            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
450            ::unity::il2cpp_call!((::unity::module_base()+0x371f460usize)as*mut u8,bool;
451(PointerEventData)__receiver)
452        }
453    }
454    #[doc = "`get_enterEventCamera()` overload"]
455    fn get_enter_event_camera(self) -> crate::unity_engine::camera::Camera {
456        unsafe {
457            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
458            ::unity::il2cpp_call!((::unity::module_base()+0x371f4a0usize)as*mut u8,crate::unity_engine::camera::Camera;
459(PointerEventData)__receiver)
460        }
461    }
462    #[doc = "`get_pressEventCamera()` overload"]
463    fn get_press_event_camera(self) -> crate::unity_engine::camera::Camera {
464        unsafe {
465            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466            ::unity::il2cpp_call!((::unity::module_base()+0x371f540usize)as*mut u8,crate::unity_engine::camera::Camera;
467(PointerEventData)__receiver)
468        }
469    }
470    #[doc = "`get_pointerPress()` overload"]
471    fn get_pointer_press(self) -> crate::unity_engine::gameobject::GameObject {
472        unsafe {
473            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
474            ::unity::il2cpp_call!((::unity::module_base()+0x371f5e0usize)as*mut u8,crate::unity_engine::gameobject::GameObject;
475(PointerEventData)__receiver)
476        }
477    }
478    #[doc = "`set_pointerPress(crate::unity_engine::gameobject::GameObject)` overload"]
479    fn set_pointer_press(self, value: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>) -> () {
480        unsafe {
481            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
482            ::unity::il2cpp_call!((::unity::module_base()+0x371f5f0usize)as*mut u8,();
483(PointerEventData)__receiver,(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(value))
484        }
485    }
486    #[doc = "`ToString()` overload"]
487    fn to_string(self) -> ::unity::Il2CppString {
488        unsafe {
489            let __receiver = <PointerEventData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
490            {
491                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
492                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
493                    panic!(
494                        "unity: virtual slot {}
495 out of range (vtable len {}
496) on the runtime class behind {}
497 (method `{}
498`)",
499                        3usize,
500                        __vt.len(),
501                        <PointerEventData as ::unity::ClassIdentity>::NAME,
502                        "ToString",
503                    )
504                });
505                let __inner: extern "C" fn(PointerEventData, ::unity::OptionalMethod) -> ::unity::Il2CppString =
506                    ::core::mem::transmute(__vi.method_ptr);
507                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
508                __inner(__receiver, __mi)
509            }
510        }
511    }
512}
513
514#[cfg(feature = "unity_engine-event_systems-pointereventdata")]
515impl<__T: IPointerEventData> IPointerEventDataMethods for __T {}
516
517#[cfg(feature = "unity_engine-event_systems-pointereventdata")]
518impl PointerEventData {
519    pub fn get_pointer_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
520        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
521    }
522
523    pub fn set_pointer_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
524        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
525    }
526
527    pub fn get_last_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
529    }
530
531    pub fn set_last_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
532        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
533    }
534
535    pub fn get_raw_pointer_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
536        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
537    }
538
539    pub fn set_raw_pointer_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
541    }
542
543    pub fn get_pointer_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
545    }
546
547    pub fn set_pointer_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
548        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
549    }
550
551    pub fn get_pointer_click_method_info() -> &'static ::unity::il2cpp::MethodInfo {
552        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
553    }
554
555    pub fn set_pointer_click_method_info() -> &'static ::unity::il2cpp::MethodInfo {
556        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
557    }
558
559    pub fn get_pointer_current_raycast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
560        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
561    }
562
563    pub fn set_pointer_current_raycast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
564        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
565    }
566
567    pub fn get_pointer_press_raycast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
568        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
569    }
570
571    pub fn set_pointer_press_raycast_method_info() -> &'static ::unity::il2cpp::MethodInfo {
572        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
573    }
574
575    pub fn get_eligible_for_click_method_info() -> &'static ::unity::il2cpp::MethodInfo {
576        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
577    }
578
579    pub fn set_eligible_for_click_method_info() -> &'static ::unity::il2cpp::MethodInfo {
580        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
581    }
582
583    pub fn get_pointer_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
584        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
585    }
586
587    pub fn set_pointer_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
588        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
589    }
590
591    pub fn get_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
592        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
593    }
594
595    pub fn set_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
596        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
597    }
598
599    pub fn get_delta_method_info() -> &'static ::unity::il2cpp::MethodInfo {
600        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
601    }
602
603    pub fn set_delta_method_info() -> &'static ::unity::il2cpp::MethodInfo {
604        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
605    }
606
607    pub fn get_press_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
608        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
609    }
610
611    pub fn set_press_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
612        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
613    }
614
615    pub fn get_world_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
616        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
617    }
618
619    pub fn set_world_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
620        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
621    }
622
623    pub fn get_world_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
624        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
625    }
626
627    pub fn set_world_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
628        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
629    }
630
631    pub fn get_click_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
632        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
633    }
634
635    pub fn set_click_time_method_info() -> &'static ::unity::il2cpp::MethodInfo {
636        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
637    }
638
639    pub fn get_click_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
640        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
641    }
642
643    pub fn set_click_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
644        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
645    }
646
647    pub fn get_scroll_delta_method_info() -> &'static ::unity::il2cpp::MethodInfo {
648        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
649    }
650
651    pub fn set_scroll_delta_method_info() -> &'static ::unity::il2cpp::MethodInfo {
652        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
653    }
654
655    pub fn get_use_drag_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
656        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
657    }
658
659    pub fn set_use_drag_threshold_method_info() -> &'static ::unity::il2cpp::MethodInfo {
660        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
661    }
662
663    pub fn get_dragging_method_info() -> &'static ::unity::il2cpp::MethodInfo {
664        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
665    }
666
667    pub fn set_dragging_method_info() -> &'static ::unity::il2cpp::MethodInfo {
668        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
669    }
670
671    pub fn get_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
672        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
673    }
674
675    pub fn set_button_method_info() -> &'static ::unity::il2cpp::MethodInfo {
676        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
677    }
678
679    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
680        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
681    }
682
683    pub fn is_pointer_moving_method_info() -> &'static ::unity::il2cpp::MethodInfo {
684        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
685    }
686
687    pub fn is_scrolling_method_info() -> &'static ::unity::il2cpp::MethodInfo {
688        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
689    }
690
691    pub fn get_enter_event_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
692        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
693    }
694
695    pub fn get_press_event_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
696        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
697    }
698
699    pub fn get_pointer_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
700        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
701    }
702
703    pub fn set_pointer_press_method_info() -> &'static ::unity::il2cpp::MethodInfo {
704        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
705    }
706
707    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
708        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
709    }
710}
711
712#[cfg(feature = "unity_engine-event_systems-pointereventdata")]
713impl PointerEventData {
714    #[doc = "Direct (non-virtual) call to `PointerEventData`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
715    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
716        let __mi = Self::to_string_method_info();
717        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
718        __inner(this.into(), ::core::option::Option::None)
719    }
720}
721
722#[cfg(feature = "unity_engine-event_systems-pointereventdata")]
723impl PointerEventData {
724    #[doc = "`.ctor(crate::unity_engine::event_systems::eventsystem::EventSystem)` — overload selector"]
725    pub fn new(event_system: crate::unity_engine::event_systems::eventsystem::EventSystem) -> Self {
726        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
727            panic!(
728                "{}
729::{}
730 failed to instantiate",
731                ::core::stringify!(PointerEventData),
732                ::core::stringify!(new),
733            )
734        });
735        <Self as IPointerEventDataMethods>::ctor(this, event_system);
736        this
737    }
738}
739
740#[cfg(feature = "unity_engine-event_systems-pointereventdata")]
741#[doc(hidden)]
742pub mod prelude {
743    pub use super::{IPointerEventData, IPointerEventDataMethods, PointerEventData, PointerEventData_FramePressState, PointerEventData_InputButton};
744    #[cfg(feature = "system-object")]
745    pub use crate::system::object::IObjectMethods;
746    #[cfg(feature = "system-enum")]
747    pub use crate::system::r#enum::IEnumMethods;
748    #[cfg(feature = "system-valuetype")]
749    pub use crate::system::valuetype::IValueTypeMethods;
750    #[cfg(feature = "unity_engine-event_systems-abstracteventdata")]
751    pub use crate::unity_engine::event_systems::abstracteventdata::IAbstractEventDataMethods;
752    #[cfg(feature = "unity_engine-event_systems-baseeventdata")]
753    pub use crate::unity_engine::event_systems::baseeventdata::IBaseEventDataMethods;
754    pub use crate::{
755        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
756        unity_engine::event_systems::{abstracteventdata::IAbstractEventData, baseeventdata::IBaseEventData},
757    };
758}