Skip to main content

engage/generated/tm_pro/
tmp_scrollbareventhandler.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_scrollbareventhandler-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            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_scrollbareventhandler/TMP_ScrollbarEventHandler.md"))]
19    #[::unity::class(namespace = "TMPro", name = "TMP_ScrollbarEventHandler")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct TMP_ScrollbarEventHandler {
22        #[offset(24)]
23        #[rename(name = "isSelected")]
24        pub is_selected: bool,
25    }
26}
27
28#[cfg(feature = "tm_pro-tmp_scrollbareventhandler-types")]
29pub use __types::*;
30
31#[cfg(feature = "tm_pro-tmp_scrollbareventhandler")]
32pub trait ITMP_ScrollbarEventHandlerMethods: ITMP_ScrollbarEventHandler {
33    #[doc = "`OnPointerClick(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
34    fn on_pointer_click(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
35        unsafe {
36            let __receiver =
37                <TMP_ScrollbarEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            {
39                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
41                    panic!(
42                        "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47                        4usize,
48                        __vt.len(),
49                        <TMP_ScrollbarEventHandler as ::unity::ClassIdentity>::NAME,
50                        "OnPointerClick",
51                    )
52                });
53                let __inner: extern "C" fn(
54                    TMP_ScrollbarEventHandler,
55                    crate::unity_engine::event_systems::pointereventdata::PointerEventData,
56                    ::unity::OptionalMethod,
57                ) -> () = ::core::mem::transmute(__vi.method_ptr);
58                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
59                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
60            }
61        }
62    }
63    #[doc = "`OnSelect(crate::unity_engine::event_systems::baseeventdata::BaseEventData)` overload"]
64    fn on_select(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::baseeventdata::BaseEventData>) -> () {
65        unsafe {
66            let __receiver =
67                <TMP_ScrollbarEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            {
69                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
70                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
71                    panic!(
72                        "unity: virtual slot {}
73 out of range (vtable len {}
74) on the runtime class behind {}
75 (method `{}
76`)",
77                        5usize,
78                        __vt.len(),
79                        <TMP_ScrollbarEventHandler as ::unity::ClassIdentity>::NAME,
80                        "OnSelect",
81                    )
82                });
83                let __inner: extern "C" fn(
84                    TMP_ScrollbarEventHandler,
85                    crate::unity_engine::event_systems::baseeventdata::BaseEventData,
86                    ::unity::OptionalMethod,
87                ) -> () = ::core::mem::transmute(__vi.method_ptr);
88                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
90            }
91        }
92    }
93    #[doc = "`OnDeselect(crate::unity_engine::event_systems::baseeventdata::BaseEventData)` overload"]
94    fn on_deselect(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::baseeventdata::BaseEventData>) -> () {
95        unsafe {
96            let __receiver =
97                <TMP_ScrollbarEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            {
99                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
101                    panic!(
102                        "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107                        6usize,
108                        __vt.len(),
109                        <TMP_ScrollbarEventHandler as ::unity::ClassIdentity>::NAME,
110                        "OnDeselect",
111                    )
112                });
113                let __inner: extern "C" fn(
114                    TMP_ScrollbarEventHandler,
115                    crate::unity_engine::event_systems::baseeventdata::BaseEventData,
116                    ::unity::OptionalMethod,
117                ) -> () = ::core::mem::transmute(__vi.method_ptr);
118                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
120            }
121        }
122    }
123    #[doc = "`.ctor()` overload"]
124    fn ctor(self) -> () {
125        unsafe {
126            let __receiver =
127                <TMP_ScrollbarEventHandler as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            ::unity::il2cpp_call!((::unity::module_base()+0x282a7e0usize)as*mut u8,();
129(TMP_ScrollbarEventHandler)__receiver)
130        }
131    }
132}
133
134#[cfg(feature = "tm_pro-tmp_scrollbareventhandler")]
135impl<__T: ITMP_ScrollbarEventHandler> ITMP_ScrollbarEventHandlerMethods for __T {}
136
137#[cfg(feature = "tm_pro-tmp_scrollbareventhandler")]
138impl TMP_ScrollbarEventHandler {
139    pub fn on_pointer_click_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141    }
142
143    pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145    }
146
147    pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
149    }
150
151    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
153    }
154}
155
156#[cfg(feature = "tm_pro-tmp_scrollbareventhandler")]
157impl TMP_ScrollbarEventHandler {
158    #[doc = "Direct (non-virtual) call to `TMP_ScrollbarEventHandler`'s own `OnPointerClick`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
159    pub unsafe fn on_pointer_click(
160        this: impl ::core::convert::Into<::unity::IlInstance>,
161        event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
162    ) -> () {
163        let __mi = Self::on_pointer_click_method_info();
164        let __inner: extern "C" fn(
165            ::unity::IlInstance,
166            crate::unity_engine::event_systems::pointereventdata::PointerEventData,
167            ::unity::OptionalMethod,
168        ) -> () = ::core::mem::transmute(__mi.method_ptr);
169        __inner(this.into(), event_data, ::core::option::Option::None)
170    }
171
172    #[doc = "Direct (non-virtual) call to `TMP_ScrollbarEventHandler`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
173    pub unsafe fn on_select(
174        this: impl ::core::convert::Into<::unity::IlInstance>,
175        event_data: crate::unity_engine::event_systems::baseeventdata::BaseEventData,
176    ) -> () {
177        let __mi = Self::on_select_method_info();
178        let __inner: extern "C" fn(
179            ::unity::IlInstance,
180            crate::unity_engine::event_systems::baseeventdata::BaseEventData,
181            ::unity::OptionalMethod,
182        ) -> () = ::core::mem::transmute(__mi.method_ptr);
183        __inner(this.into(), event_data, ::core::option::Option::None)
184    }
185
186    #[doc = "Direct (non-virtual) call to `TMP_ScrollbarEventHandler`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
187    pub unsafe fn on_deselect(
188        this: impl ::core::convert::Into<::unity::IlInstance>,
189        event_data: crate::unity_engine::event_systems::baseeventdata::BaseEventData,
190    ) -> () {
191        let __mi = Self::on_deselect_method_info();
192        let __inner: extern "C" fn(
193            ::unity::IlInstance,
194            crate::unity_engine::event_systems::baseeventdata::BaseEventData,
195            ::unity::OptionalMethod,
196        ) -> () = ::core::mem::transmute(__mi.method_ptr);
197        __inner(this.into(), event_data, ::core::option::Option::None)
198    }
199}
200
201#[cfg(feature = "tm_pro-tmp_scrollbareventhandler")]
202impl TMP_ScrollbarEventHandler {
203    #[doc = "`.ctor()` — no args"]
204    pub fn new() -> Self {
205        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
206            panic!(
207                "{}
208::{}
209 failed to instantiate",
210                ::core::stringify!(TMP_ScrollbarEventHandler),
211                ::core::stringify!(new),
212            )
213        });
214        <Self as ITMP_ScrollbarEventHandlerMethods>::ctor(this);
215        this
216    }
217}
218
219#[cfg(feature = "tm_pro-tmp_scrollbareventhandler")]
220#[doc(hidden)]
221pub mod prelude {
222    pub use super::{ITMP_ScrollbarEventHandler, ITMP_ScrollbarEventHandlerMethods, TMP_ScrollbarEventHandler};
223    #[cfg(feature = "system-object")]
224    pub use crate::system::object::IObjectMethods;
225    #[cfg(feature = "unity_engine-behaviour")]
226    pub use crate::unity_engine::behaviour::IBehaviourMethods;
227    #[cfg(feature = "unity_engine-component")]
228    pub use crate::unity_engine::component::IComponentMethods;
229    #[cfg(feature = "unity_engine-monobehaviour")]
230    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
231    #[cfg(feature = "unity_engine-object_2")]
232    pub use crate::unity_engine::object_2::IObject_2Methods;
233    pub use crate::{
234        system::object::IObject,
235        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
236    };
237}