1#[cfg(feature = "unity_engine-ui-selectable-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::{
15 behaviour::{Behaviour, IBehaviour},
16 component::{Component, IComponent},
17 event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
18 monobehaviour::{IMonoBehaviour, MonoBehaviour},
19 object_2::{IObject_2, Object_2},
20 },
21 };
22
23 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/selectable/Selectable_SelectionState.md"))]
24 #[repr(C)]
25 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
26 pub struct Selectable_SelectionState {
27 pub value: i32,
28 }
29 impl ::unity::ClassIdentity for Selectable_SelectionState {
30 const NAME: &'static str = "Selectable.SelectionState";
31 const NAMESPACE: &'static str = "UnityEngine.UI";
32
33 fn class() -> ::unity::Class {
34 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36 }
37 }
38 impl ::unity::IlType for Selectable_SelectionState {
39 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41 }
42 }
43 impl Selectable_SelectionState {
44 pub fn normal() -> Self {
45 Self { value: 0 }
46 }
47
48 pub fn highlighted() -> Self {
49 Self { value: 1 }
50 }
51
52 pub fn pressed() -> Self {
53 Self { value: 2 }
54 }
55
56 pub fn selected() -> Self {
57 Self { value: 3 }
58 }
59
60 pub fn disabled() -> Self {
61 Self { value: 4 }
62 }
63 }
64
65 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/selectable/Selectable.md"))]
66 #[::unity::class(namespace = "UnityEngine.UI", name = "Selectable")]
67 #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
68 pub struct Selectable {
69 #[static_field]
70 #[rename(name = "s_Selectables")]
71 pub s_selectables: ::unity::Array<crate::unity_engine::ui::selectable::Selectable>,
72 #[static_field]
73 #[rename(name = "s_SelectableCount")]
74 pub s_selectable_count: i32,
75 #[offset(24)]
76 #[rename(name = "m_EnableCalled")]
77 pub m_enable_called: bool,
78 #[offset(32)]
79 #[rename(name = "m_Navigation")]
80 pub m_navigation: crate::unity_engine::ui::navigation::Navigation,
81 #[offset(72)]
82 #[rename(name = "m_Transition")]
83 pub m_transition: crate::unity_engine::ui::selectable::Selectable_Transition,
84 #[offset(76)]
85 #[rename(name = "m_Colors")]
86 pub m_colors: crate::unity_engine::ui::colorblock::ColorBlock,
87 #[offset(168)]
88 #[rename(name = "m_SpriteState")]
89 pub m_sprite_state: crate::unity_engine::ui::spritestate::SpriteState,
90 #[offset(200)]
91 #[rename(name = "m_AnimationTriggers")]
92 pub m_animation_triggers: crate::unity_engine::ui::animationtriggers::AnimationTriggers,
93 #[offset(208)]
94 #[rename(name = "m_Interactable")]
95 pub m_interactable: bool,
96 #[offset(216)]
97 #[rename(name = "m_TargetGraphic")]
98 pub m_target_graphic: crate::unity_engine::ui::graphic::Graphic,
99 #[offset(224)]
100 #[rename(name = "m_GroupsAllowInteraction")]
101 pub m_groups_allow_interaction: bool,
102 #[offset(228)]
103 #[rename(name = "m_CurrentIndex")]
104 pub m_current_index: i32,
105 #[offset(240)]
106 #[rename(name = "m_CanvasGroupCache")]
107 pub m_canvas_group_cache: crate::system::collections::generic::list_1::List_1<crate::unity_engine::canvasgroup::CanvasGroup>,
108 }
109
110 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/selectable/Selectable_Transition.md"))]
111 #[repr(C)]
112 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
113 pub struct Selectable_Transition {
114 pub value: i32,
115 }
116 impl ::unity::ClassIdentity for Selectable_Transition {
117 const NAME: &'static str = "Selectable.Transition";
118 const NAMESPACE: &'static str = "UnityEngine.UI";
119
120 fn class() -> ::unity::Class {
121 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
122 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
123 }
124 }
125 impl ::unity::IlType for Selectable_Transition {
126 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
127 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
128 }
129 }
130 impl Selectable_Transition {
131 pub fn none() -> Self {
132 Self { value: 0 }
133 }
134
135 pub fn color_tint() -> Self {
136 Self { value: 1 }
137 }
138
139 pub fn sprite_swap() -> Self {
140 Self { value: 2 }
141 }
142
143 pub fn animation() -> Self {
144 Self { value: 3 }
145 }
146 }
147}
148
149#[cfg(feature = "unity_engine-ui-selectable-types")]
150pub use __types::*;
151
152#[cfg(feature = "unity_engine-ui-selectable")]
153impl Selectable {
154 #[doc = "`get_allSelectablesArray()` overload"]
155 pub fn get_all_selectables_array() -> ::unity::Array<crate::unity_engine::ui::selectable::Selectable> {
156 unsafe {
157 ::unity::il2cpp_call!((::unity::module_base()+0x372baf0usize)as*mut u8, ::unity::Array<crate::unity_engine::ui::selectable::Selectable> ;
158 )
159 }
160 }
161
162 #[doc = "`get_allSelectableCount()` overload"]
163 pub fn get_all_selectable_count() -> i32 {
164 unsafe {
165 ::unity::il2cpp_call!((::unity::module_base()+0x372bba0usize)as*mut u8,i32;
166 )
167 }
168 }
169
170 #[doc = "`get_allSelectables()` overload"]
171 pub fn get_all_selectables() -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::selectable::Selectable> {
172 unsafe {
173 ::unity::il2cpp_call!((::unity::module_base()+0x372bc10usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::ui::selectable::Selectable> ;
174 )
175 }
176 }
177
178 #[doc = "`AllSelectablesNoAlloc(::unity::Array<crate::unity_engine::ui::selectable::Selectable>)` overload"]
179 pub fn all_selectables_no_alloc(selectables: impl ::core::convert::Into<::unity::Array<crate::unity_engine::ui::selectable::Selectable>>) -> i32 {
180 unsafe {
181 ::unity::il2cpp_call!((::unity::module_base()+0x372bcc0usize)as*mut u8,i32;
182(::unity::Array<crate::unity_engine::ui::selectable::Selectable>)::core::convert::Into::into(selectables))
183 }
184 }
185
186 #[doc = "`GetPointOnRectEdge(crate::unity_engine::recttransform::RectTransform, crate::unity_engine::vector2::Vector2)` overload"]
187 pub fn get_point_on_rect_edge(
188 rect: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>,
189 dir: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
190 ) -> crate::unity_engine::vector3::Vector3 {
191 unsafe {
192 ::unity::il2cpp_call!((::unity::module_base()+0x372d8e0usize)as*mut u8,crate::unity_engine::vector3::Vector3;
193(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(rect),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(dir))
194 }
195 }
196
197 #[doc = "`.cctor()` overload"]
198 pub fn cctor() -> () {
199 unsafe {
200 ::unity::il2cpp_call!((::unity::module_base()+0x372e080usize)as*mut u8,();
201 )
202 }
203 }
204}
205
206#[cfg(feature = "unity_engine-ui-selectable")]
207pub trait ISelectableMethods: ISelectable {
208 #[doc = "`get_navigation()` overload"]
209 fn get_navigation(self) -> crate::unity_engine::ui::navigation::Navigation {
210 unsafe {
211 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 ::unity::il2cpp_call!((::unity::module_base()+0x372bdb0usize)as*mut u8,crate::unity_engine::ui::navigation::Navigation;
213(Selectable)__receiver)
214 }
215 }
216 #[doc = "`set_navigation(crate::unity_engine::ui::navigation::Navigation)` overload"]
217 fn set_navigation(self, value: impl ::core::convert::Into<crate::unity_engine::ui::navigation::Navigation>) -> () {
218 unsafe {
219 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220 ::unity::il2cpp_call!((::unity::module_base()+0x372bdd0usize)as*mut u8,();
221(Selectable)__receiver,(crate::unity_engine::ui::navigation::Navigation)::core::convert::Into::into(value))
222 }
223 }
224 #[doc = "`get_transition()` overload"]
225 fn get_transition(self) -> crate::unity_engine::ui::selectable::Selectable_Transition {
226 unsafe {
227 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 ::unity::il2cpp_call!((::unity::module_base()+0x372bf30usize)as*mut u8,crate::unity_engine::ui::selectable::Selectable_Transition;
229(Selectable)__receiver)
230 }
231 }
232 #[doc = "`set_transition(crate::unity_engine::ui::selectable::Selectable_Transition)` overload"]
233 fn set_transition(self, value: impl ::core::convert::Into<crate::unity_engine::ui::selectable::Selectable_Transition>) -> () {
234 unsafe {
235 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236 ::unity::il2cpp_call!((::unity::module_base()+0x372bf40usize)as*mut u8,();
237(Selectable)__receiver,(crate::unity_engine::ui::selectable::Selectable_Transition)::core::convert::Into::into(value))
238 }
239 }
240 #[doc = "`get_colors()` overload"]
241 fn get_colors(self) -> crate::unity_engine::ui::colorblock::ColorBlock {
242 unsafe {
243 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
244 ::unity::il2cpp_call!((::unity::module_base()+0x372c010usize)as*mut u8,crate::unity_engine::ui::colorblock::ColorBlock;
245(Selectable)__receiver)
246 }
247 }
248 #[doc = "`set_colors(crate::unity_engine::ui::colorblock::ColorBlock)` overload"]
249 fn set_colors(self, value: impl ::core::convert::Into<crate::unity_engine::ui::colorblock::ColorBlock>) -> () {
250 unsafe {
251 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252 ::unity::il2cpp_call!((::unity::module_base()+0x372c060usize)as*mut u8,();
253(Selectable)__receiver,(crate::unity_engine::ui::colorblock::ColorBlock)::core::convert::Into::into(value))
254 }
255 }
256 #[doc = "`get_spriteState()` overload"]
257 fn get_sprite_state(self) -> crate::unity_engine::ui::spritestate::SpriteState {
258 unsafe {
259 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
260 ::unity::il2cpp_call!((::unity::module_base()+0x372c190usize)as*mut u8,crate::unity_engine::ui::spritestate::SpriteState;
261(Selectable)__receiver)
262 }
263 }
264 #[doc = "`set_spriteState(crate::unity_engine::ui::spritestate::SpriteState)` overload"]
265 fn set_sprite_state(self, value: impl ::core::convert::Into<crate::unity_engine::ui::spritestate::SpriteState>) -> () {
266 unsafe {
267 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
268 ::unity::il2cpp_call!((::unity::module_base()+0x372c1b0usize)as*mut u8,();
269(Selectable)__receiver,(crate::unity_engine::ui::spritestate::SpriteState)::core::convert::Into::into(value))
270 }
271 }
272 #[doc = "`get_animationTriggers()` overload"]
273 fn get_animation_triggers(self) -> crate::unity_engine::ui::animationtriggers::AnimationTriggers {
274 unsafe {
275 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
276 ::unity::il2cpp_call!((::unity::module_base()+0x372c290usize)as*mut u8,crate::unity_engine::ui::animationtriggers::AnimationTriggers;
277(Selectable)__receiver)
278 }
279 }
280 #[doc = "`set_animationTriggers(crate::unity_engine::ui::animationtriggers::AnimationTriggers)` overload"]
281 fn set_animation_triggers(self, value: impl ::core::convert::Into<crate::unity_engine::ui::animationtriggers::AnimationTriggers>) -> () {
282 unsafe {
283 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
284 ::unity::il2cpp_call!((::unity::module_base()+0x372c2a0usize)as*mut u8,();
285(Selectable)__receiver,(crate::unity_engine::ui::animationtriggers::AnimationTriggers)::core::convert::Into::into(value))
286 }
287 }
288 #[doc = "`get_targetGraphic()` overload"]
289 fn get_target_graphic(self) -> crate::unity_engine::ui::graphic::Graphic {
290 unsafe {
291 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292 ::unity::il2cpp_call!((::unity::module_base()+0x372c370usize)as*mut u8,crate::unity_engine::ui::graphic::Graphic;
293(Selectable)__receiver)
294 }
295 }
296 #[doc = "`set_targetGraphic(crate::unity_engine::ui::graphic::Graphic)` overload"]
297 fn set_target_graphic(self, value: impl ::core::convert::Into<crate::unity_engine::ui::graphic::Graphic>) -> () {
298 unsafe {
299 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300 ::unity::il2cpp_call!((::unity::module_base()+0x372c380usize)as*mut u8,();
301(Selectable)__receiver,(crate::unity_engine::ui::graphic::Graphic)::core::convert::Into::into(value))
302 }
303 }
304 #[doc = "`get_interactable()` overload"]
305 fn get_interactable(self) -> bool {
306 unsafe {
307 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
308 ::unity::il2cpp_call!((::unity::module_base()+0x372c450usize)as*mut u8,bool;
309(Selectable)__receiver)
310 }
311 }
312 #[doc = "`set_interactable(bool)` overload"]
313 fn set_interactable(self, value: impl ::core::convert::Into<bool>) -> () {
314 unsafe {
315 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
316 ::unity::il2cpp_call!((::unity::module_base()+0x372c460usize)as*mut u8,();
317(Selectable)__receiver,(bool)::core::convert::Into::into(value))
318 }
319 }
320 #[doc = "`get_isPointerInside()` overload"]
321 fn get_is_pointer_inside(self) -> bool {
322 unsafe {
323 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
324 ::unity::il2cpp_call!((::unity::module_base()+0x372c650usize)as*mut u8,bool;
325(Selectable)__receiver)
326 }
327 }
328 #[doc = "`set_isPointerInside(bool)` overload"]
329 fn set_is_pointer_inside(self, value: impl ::core::convert::Into<bool>) -> () {
330 unsafe {
331 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
332 ::unity::il2cpp_call!((::unity::module_base()+0x372c660usize)as*mut u8,();
333(Selectable)__receiver,(bool)::core::convert::Into::into(value))
334 }
335 }
336 #[doc = "`get_isPointerDown()` overload"]
337 fn get_is_pointer_down(self) -> bool {
338 unsafe {
339 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
340 ::unity::il2cpp_call!((::unity::module_base()+0x372c670usize)as*mut u8,bool;
341(Selectable)__receiver)
342 }
343 }
344 #[doc = "`set_isPointerDown(bool)` overload"]
345 fn set_is_pointer_down(self, value: impl ::core::convert::Into<bool>) -> () {
346 unsafe {
347 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
348 ::unity::il2cpp_call!((::unity::module_base()+0x372c680usize)as*mut u8,();
349(Selectable)__receiver,(bool)::core::convert::Into::into(value))
350 }
351 }
352 #[doc = "`get_hasSelection()` overload"]
353 fn get_has_selection(self) -> bool {
354 unsafe {
355 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
356 ::unity::il2cpp_call!((::unity::module_base()+0x372c690usize)as*mut u8,bool;
357(Selectable)__receiver)
358 }
359 }
360 #[doc = "`set_hasSelection(bool)` overload"]
361 fn set_has_selection(self, value: impl ::core::convert::Into<bool>) -> () {
362 unsafe {
363 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
364 ::unity::il2cpp_call!((::unity::module_base()+0x372c6a0usize)as*mut u8,();
365(Selectable)__receiver,(bool)::core::convert::Into::into(value))
366 }
367 }
368 #[doc = "`.ctor()` overload"]
369 fn ctor(self) -> () {
370 unsafe {
371 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
372 ::unity::il2cpp_call!((::unity::module_base()+0x3729770usize)as*mut u8,();
373(Selectable)__receiver)
374 }
375 }
376 #[doc = "`get_image()` overload"]
377 fn get_image(self) -> crate::unity_engine::ui::image::Image {
378 unsafe {
379 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
380 ::unity::il2cpp_call!((::unity::module_base()+0x372c6b0usize)as*mut u8,crate::unity_engine::ui::image::Image;
381(Selectable)__receiver)
382 }
383 }
384 #[doc = "`set_image(crate::unity_engine::ui::image::Image)` overload"]
385 fn set_image(self, value: impl ::core::convert::Into<crate::unity_engine::ui::image::Image>) -> () {
386 unsafe {
387 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
388 ::unity::il2cpp_call!((::unity::module_base()+0x372c740usize)as*mut u8,();
389(Selectable)__receiver,(crate::unity_engine::ui::image::Image)::core::convert::Into::into(value))
390 }
391 }
392 #[doc = "`get_animator()` overload"]
393 fn get_animator(self) -> crate::unity_engine::animator::Animator {
394 unsafe {
395 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
396 ::unity::il2cpp_call!((::unity::module_base()+0x372c750usize)as*mut u8,crate::unity_engine::animator::Animator;
397(Selectable)__receiver)
398 }
399 }
400 #[doc = "`Awake()` overload"]
401 fn awake(self) -> () {
402 unsafe {
403 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
404 {
405 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
406 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
407 panic!(
408 "unity: virtual slot {}
409 out of range (vtable len {}
410) on the runtime class behind {}
411 (method `{}
412`)",
413 4usize,
414 __vt.len(),
415 <Selectable as ::unity::ClassIdentity>::NAME,
416 "Awake",
417 )
418 });
419 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
420 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
421 __inner(__receiver, __mi)
422 }
423 }
424 }
425 #[doc = "`OnCanvasGroupChanged()` overload"]
426 fn on_canvas_group_changed(self) -> () {
427 unsafe {
428 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
429 {
430 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
431 let __vi = *__vt.get(14usize).unwrap_or_else(|| {
432 panic!(
433 "unity: virtual slot {}
434 out of range (vtable len {}
435) on the runtime class behind {}
436 (method `{}
437`)",
438 14usize,
439 __vt.len(),
440 <Selectable as ::unity::ClassIdentity>::NAME,
441 "OnCanvasGroupChanged",
442 )
443 });
444 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
445 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
446 __inner(__receiver, __mi)
447 }
448 }
449 }
450 #[doc = "`IsInteractable()` overload"]
451 fn is_interactable(self) -> bool {
452 unsafe {
453 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
454 {
455 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
456 let __vi = *__vt.get(24usize).unwrap_or_else(|| {
457 panic!(
458 "unity: virtual slot {}
459 out of range (vtable len {}
460) on the runtime class behind {}
461 (method `{}
462`)",
463 24usize,
464 __vt.len(),
465 <Selectable as ::unity::ClassIdentity>::NAME,
466 "IsInteractable",
467 )
468 });
469 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
470 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
471 __inner(__receiver, __mi)
472 }
473 }
474 }
475 #[doc = "`OnDidApplyAnimationProperties()` overload"]
476 fn on_did_apply_animation_properties(self) -> () {
477 unsafe {
478 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
479 {
480 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
481 let __vi = *__vt.get(13usize).unwrap_or_else(|| {
482 panic!(
483 "unity: virtual slot {}
484 out of range (vtable len {}
485) on the runtime class behind {}
486 (method `{}
487`)",
488 13usize,
489 __vt.len(),
490 <Selectable as ::unity::ClassIdentity>::NAME,
491 "OnDidApplyAnimationProperties",
492 )
493 });
494 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
495 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
496 __inner(__receiver, __mi)
497 }
498 }
499 }
500 #[doc = "`OnEnable()` overload"]
501 fn on_enable(self) -> () {
502 unsafe {
503 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
504 {
505 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
506 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
507 panic!(
508 "unity: virtual slot {}
509 out of range (vtable len {}
510) on the runtime class behind {}
511 (method `{}
512`)",
513 5usize,
514 __vt.len(),
515 <Selectable as ::unity::ClassIdentity>::NAME,
516 "OnEnable",
517 )
518 });
519 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
520 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
521 __inner(__receiver, __mi)
522 }
523 }
524 }
525 #[doc = "`OnTransformParentChanged()` overload"]
526 fn on_transform_parent_changed(self) -> () {
527 unsafe {
528 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
529 {
530 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
531 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
532 panic!(
533 "unity: virtual slot {}
534 out of range (vtable len {}
535) on the runtime class behind {}
536 (method `{}
537`)",
538 12usize,
539 __vt.len(),
540 <Selectable as ::unity::ClassIdentity>::NAME,
541 "OnTransformParentChanged",
542 )
543 });
544 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
545 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
546 __inner(__receiver, __mi)
547 }
548 }
549 }
550 #[doc = "`OnSetProperty()` overload"]
551 fn on_set_property(self) -> () {
552 unsafe {
553 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
554 ::unity::il2cpp_call!((::unity::module_base()+0x372bec0usize)as*mut u8,();
555(Selectable)__receiver)
556 }
557 }
558 #[doc = "`OnDisable()` overload"]
559 fn on_disable(self) -> () {
560 unsafe {
561 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
562 {
563 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
564 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
565 panic!(
566 "unity: virtual slot {}
567 out of range (vtable len {}
568) on the runtime class behind {}
569 (method `{}
570`)",
571 7usize,
572 __vt.len(),
573 <Selectable as ::unity::ClassIdentity>::NAME,
574 "OnDisable",
575 )
576 });
577 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
578 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
579 __inner(__receiver, __mi)
580 }
581 }
582 }
583 #[doc = "`get_currentSelectionState()` overload"]
584 fn get_current_selection_state(self) -> crate::unity_engine::ui::selectable::Selectable_SelectionState {
585 unsafe {
586 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
587 ::unity::il2cpp_call!((::unity::module_base()+0x372cb20usize)as*mut u8,crate::unity_engine::ui::selectable::Selectable_SelectionState;
588(Selectable)__receiver)
589 }
590 }
591 #[doc = "`InstantClearState()` overload"]
592 fn instant_clear_state(self) -> () {
593 unsafe {
594 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
595 {
596 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
597 let __vi = *__vt.get(25usize).unwrap_or_else(|| {
598 panic!(
599 "unity: virtual slot {}
600 out of range (vtable len {}
601) on the runtime class behind {}
602 (method `{}
603`)",
604 25usize,
605 __vt.len(),
606 <Selectable as ::unity::ClassIdentity>::NAME,
607 "InstantClearState",
608 )
609 });
610 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
611 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
612 __inner(__receiver, __mi)
613 }
614 }
615 }
616 #[doc = "`DoStateTransition(crate::unity_engine::ui::selectable::Selectable_SelectionState, bool)` overload"]
617 fn do_state_transition(
618 self,
619 state: impl ::core::convert::Into<crate::unity_engine::ui::selectable::Selectable_SelectionState>,
620 instant: impl ::core::convert::Into<bool>,
621 ) -> () {
622 unsafe {
623 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
624 {
625 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
626 let __vi = *__vt.get(26usize).unwrap_or_else(|| {
627 panic!(
628 "unity: virtual slot {}
629 out of range (vtable len {}
630) on the runtime class behind {}
631 (method `{}
632`)",
633 26usize,
634 __vt.len(),
635 <Selectable as ::unity::ClassIdentity>::NAME,
636 "DoStateTransition",
637 )
638 });
639 let __inner: extern "C" fn(
640 Selectable,
641 crate::unity_engine::ui::selectable::Selectable_SelectionState,
642 bool,
643 ::unity::OptionalMethod,
644 ) -> () = ::core::mem::transmute(__vi.method_ptr);
645 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
646 __inner(__receiver, ::core::convert::Into::into(state), ::core::convert::Into::into(instant), __mi)
647 }
648 }
649 }
650 #[doc = "`FindSelectable(crate::unity_engine::vector3::Vector3)` overload"]
651 fn find_selectable(
652 self,
653 dir: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
654 ) -> crate::unity_engine::ui::selectable::Selectable {
655 unsafe {
656 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
657 ::unity::il2cpp_call!((::unity::module_base()+0x372d4b0usize)as*mut u8,crate::unity_engine::ui::selectable::Selectable;
658(Selectable)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(dir))
659 }
660 }
661 #[doc = "`Navigate(crate::unity_engine::event_systems::axiseventdata::AxisEventData, crate::unity_engine::ui::selectable::Selectable)` overload"]
662 fn navigate(
663 self,
664 event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::axiseventdata::AxisEventData>,
665 sel: impl ::core::convert::Into<crate::unity_engine::ui::selectable::Selectable>,
666 ) -> () {
667 unsafe {
668 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
669 ::unity::il2cpp_call!((::unity::module_base()+0x372da40usize)as*mut u8,();
670(Selectable)__receiver,(crate::unity_engine::event_systems::axiseventdata::AxisEventData)::core::convert::Into::into(event_data),(crate::unity_engine::ui::selectable::Selectable)::core::convert::Into::into(sel))
671 }
672 }
673 #[doc = "`FindSelectableOnLeft()` overload"]
674 fn find_selectable_on_left(self) -> crate::unity_engine::ui::selectable::Selectable {
675 unsafe {
676 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
677 {
678 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
679 let __vi = *__vt.get(27usize).unwrap_or_else(|| {
680 panic!(
681 "unity: virtual slot {}
682 out of range (vtable len {}
683) on the runtime class behind {}
684 (method `{}
685`)",
686 27usize,
687 __vt.len(),
688 <Selectable as ::unity::ClassIdentity>::NAME,
689 "FindSelectableOnLeft",
690 )
691 });
692 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
693 ::core::mem::transmute(__vi.method_ptr);
694 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
695 __inner(__receiver, __mi)
696 }
697 }
698 }
699 #[doc = "`FindSelectableOnRight()` overload"]
700 fn find_selectable_on_right(self) -> crate::unity_engine::ui::selectable::Selectable {
701 unsafe {
702 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
703 {
704 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
705 let __vi = *__vt.get(28usize).unwrap_or_else(|| {
706 panic!(
707 "unity: virtual slot {}
708 out of range (vtable len {}
709) on the runtime class behind {}
710 (method `{}
711`)",
712 28usize,
713 __vt.len(),
714 <Selectable as ::unity::ClassIdentity>::NAME,
715 "FindSelectableOnRight",
716 )
717 });
718 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
719 ::core::mem::transmute(__vi.method_ptr);
720 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
721 __inner(__receiver, __mi)
722 }
723 }
724 }
725 #[doc = "`FindSelectableOnUp()` overload"]
726 fn find_selectable_on_up(self) -> crate::unity_engine::ui::selectable::Selectable {
727 unsafe {
728 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
729 {
730 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
731 let __vi = *__vt.get(29usize).unwrap_or_else(|| {
732 panic!(
733 "unity: virtual slot {}
734 out of range (vtable len {}
735) on the runtime class behind {}
736 (method `{}
737`)",
738 29usize,
739 __vt.len(),
740 <Selectable as ::unity::ClassIdentity>::NAME,
741 "FindSelectableOnUp",
742 )
743 });
744 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
745 ::core::mem::transmute(__vi.method_ptr);
746 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
747 __inner(__receiver, __mi)
748 }
749 }
750 }
751 #[doc = "`FindSelectableOnDown()` overload"]
752 fn find_selectable_on_down(self) -> crate::unity_engine::ui::selectable::Selectable {
753 unsafe {
754 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
755 {
756 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
757 let __vi = *__vt.get(30usize).unwrap_or_else(|| {
758 panic!(
759 "unity: virtual slot {}
760 out of range (vtable len {}
761) on the runtime class behind {}
762 (method `{}
763`)",
764 30usize,
765 __vt.len(),
766 <Selectable as ::unity::ClassIdentity>::NAME,
767 "FindSelectableOnDown",
768 )
769 });
770 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
771 ::core::mem::transmute(__vi.method_ptr);
772 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
773 __inner(__receiver, __mi)
774 }
775 }
776 }
777 #[doc = "`OnMove(crate::unity_engine::event_systems::axiseventdata::AxisEventData)` overload"]
778 fn on_move(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::axiseventdata::AxisEventData>) -> () {
779 unsafe {
780 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
781 {
782 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
783 let __vi = *__vt.get(31usize).unwrap_or_else(|| {
784 panic!(
785 "unity: virtual slot {}
786 out of range (vtable len {}
787) on the runtime class behind {}
788 (method `{}
789`)",
790 31usize,
791 __vt.len(),
792 <Selectable as ::unity::ClassIdentity>::NAME,
793 "OnMove",
794 )
795 });
796 let __inner: extern "C" fn(
797 Selectable,
798 crate::unity_engine::event_systems::axiseventdata::AxisEventData,
799 ::unity::OptionalMethod,
800 ) -> () = ::core::mem::transmute(__vi.method_ptr);
801 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
802 __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
803 }
804 }
805 }
806 #[doc = "`StartColorTween(crate::unity_engine::color::Color, bool)` overload"]
807 fn start_color_tween(
808 self,
809 target_color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
810 instant: impl ::core::convert::Into<bool>,
811 ) -> () {
812 unsafe {
813 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
814 ::unity::il2cpp_call!((::unity::module_base()+0x372cd30usize)as*mut u8,();
815(Selectable)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(target_color),(bool)::core::convert::Into::into(instant))
816 }
817 }
818 #[doc = "`DoSpriteSwap(crate::unity_engine::sprite::Sprite)` overload"]
819 fn do_sprite_swap(self, new_sprite: impl ::core::convert::Into<crate::unity_engine::sprite::Sprite>) -> () {
820 unsafe {
821 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
822 ::unity::il2cpp_call!((::unity::module_base()+0x372ce20usize)as*mut u8,();
823(Selectable)__receiver,(crate::unity_engine::sprite::Sprite)::core::convert::Into::into(new_sprite))
824 }
825 }
826 #[doc = "`TriggerAnimation(::unity::Il2CppString)` overload"]
827 fn trigger_animation(self, triggername: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
828 unsafe {
829 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
830 ::unity::il2cpp_call!((::unity::module_base()+0x372cf90usize)as*mut u8,();
831(Selectable)__receiver,(::unity::Il2CppString)::core::convert::Into::into(triggername))
832 }
833 }
834 #[doc = "`IsHighlighted()` overload"]
835 fn is_highlighted(self) -> bool {
836 unsafe {
837 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
838 ::unity::il2cpp_call!((::unity::module_base()+0x372db00usize)as*mut u8,bool;
839(Selectable)__receiver)
840 }
841 }
842 #[doc = "`IsPressed()` overload"]
843 fn is_pressed(self) -> bool {
844 unsafe {
845 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
846 ::unity::il2cpp_call!((::unity::module_base()+0x372db70usize)as*mut u8,bool;
847(Selectable)__receiver)
848 }
849 }
850 #[doc = "`EvaluateAndTransitionToSelectionState()` overload"]
851 fn evaluate_and_transition_to_selection_state(self) -> () {
852 unsafe {
853 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
854 ::unity::il2cpp_call!((::unity::module_base()+0x372dbd0usize)as*mut u8,();
855(Selectable)__receiver)
856 }
857 }
858 #[doc = "`OnPointerDown(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
859 fn on_pointer_down(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
860 unsafe {
861 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
862 {
863 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
864 let __vi = *__vt.get(32usize).unwrap_or_else(|| {
865 panic!(
866 "unity: virtual slot {}
867 out of range (vtable len {}
868) on the runtime class behind {}
869 (method `{}
870`)",
871 32usize,
872 __vt.len(),
873 <Selectable as ::unity::ClassIdentity>::NAME,
874 "OnPointerDown",
875 )
876 });
877 let __inner: extern "C" fn(
878 Selectable,
879 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
880 ::unity::OptionalMethod,
881 ) -> () = ::core::mem::transmute(__vi.method_ptr);
882 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
883 __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
884 }
885 }
886 }
887 #[doc = "`OnPointerUp(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
888 fn on_pointer_up(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
889 unsafe {
890 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
891 {
892 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
893 let __vi = *__vt.get(33usize).unwrap_or_else(|| {
894 panic!(
895 "unity: virtual slot {}
896 out of range (vtable len {}
897) on the runtime class behind {}
898 (method `{}
899`)",
900 33usize,
901 __vt.len(),
902 <Selectable as ::unity::ClassIdentity>::NAME,
903 "OnPointerUp",
904 )
905 });
906 let __inner: extern "C" fn(
907 Selectable,
908 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
909 ::unity::OptionalMethod,
910 ) -> () = ::core::mem::transmute(__vi.method_ptr);
911 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
912 __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
913 }
914 }
915 }
916 #[doc = "`OnPointerEnter(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
917 fn on_pointer_enter(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
918 unsafe {
919 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
920 {
921 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
922 let __vi = *__vt.get(34usize).unwrap_or_else(|| {
923 panic!(
924 "unity: virtual slot {}
925 out of range (vtable len {}
926) on the runtime class behind {}
927 (method `{}
928`)",
929 34usize,
930 __vt.len(),
931 <Selectable as ::unity::ClassIdentity>::NAME,
932 "OnPointerEnter",
933 )
934 });
935 let __inner: extern "C" fn(
936 Selectable,
937 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
938 ::unity::OptionalMethod,
939 ) -> () = ::core::mem::transmute(__vi.method_ptr);
940 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
941 __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
942 }
943 }
944 }
945 #[doc = "`OnPointerExit(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
946 fn on_pointer_exit(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
947 unsafe {
948 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
949 {
950 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
951 let __vi = *__vt.get(35usize).unwrap_or_else(|| {
952 panic!(
953 "unity: virtual slot {}
954 out of range (vtable len {}
955) on the runtime class behind {}
956 (method `{}
957`)",
958 35usize,
959 __vt.len(),
960 <Selectable as ::unity::ClassIdentity>::NAME,
961 "OnPointerExit",
962 )
963 });
964 let __inner: extern "C" fn(
965 Selectable,
966 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
967 ::unity::OptionalMethod,
968 ) -> () = ::core::mem::transmute(__vi.method_ptr);
969 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
970 __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
971 }
972 }
973 }
974 #[doc = "`OnSelect(crate::unity_engine::event_systems::baseeventdata::BaseEventData)` overload"]
975 fn on_select(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::baseeventdata::BaseEventData>) -> () {
976 unsafe {
977 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
978 {
979 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
980 let __vi = *__vt.get(36usize).unwrap_or_else(|| {
981 panic!(
982 "unity: virtual slot {}
983 out of range (vtable len {}
984) on the runtime class behind {}
985 (method `{}
986`)",
987 36usize,
988 __vt.len(),
989 <Selectable as ::unity::ClassIdentity>::NAME,
990 "OnSelect",
991 )
992 });
993 let __inner: extern "C" fn(
994 Selectable,
995 crate::unity_engine::event_systems::baseeventdata::BaseEventData,
996 ::unity::OptionalMethod,
997 ) -> () = ::core::mem::transmute(__vi.method_ptr);
998 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
999 __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
1000 }
1001 }
1002 }
1003 #[doc = "`OnDeselect(crate::unity_engine::event_systems::baseeventdata::BaseEventData)` overload"]
1004 fn on_deselect(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::baseeventdata::BaseEventData>) -> () {
1005 unsafe {
1006 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1007 {
1008 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1009 let __vi = *__vt.get(37usize).unwrap_or_else(|| {
1010 panic!(
1011 "unity: virtual slot {}
1012 out of range (vtable len {}
1013) on the runtime class behind {}
1014 (method `{}
1015`)",
1016 37usize,
1017 __vt.len(),
1018 <Selectable as ::unity::ClassIdentity>::NAME,
1019 "OnDeselect",
1020 )
1021 });
1022 let __inner: extern "C" fn(
1023 Selectable,
1024 crate::unity_engine::event_systems::baseeventdata::BaseEventData,
1025 ::unity::OptionalMethod,
1026 ) -> () = ::core::mem::transmute(__vi.method_ptr);
1027 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1028 __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
1029 }
1030 }
1031 }
1032 #[doc = "`Select()` overload"]
1033 fn select(self) -> () {
1034 unsafe {
1035 let __receiver = <Selectable as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
1036 {
1037 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
1038 let __vi = *__vt.get(38usize).unwrap_or_else(|| {
1039 panic!(
1040 "unity: virtual slot {}
1041 out of range (vtable len {}
1042) on the runtime class behind {}
1043 (method `{}
1044`)",
1045 38usize,
1046 __vt.len(),
1047 <Selectable as ::unity::ClassIdentity>::NAME,
1048 "Select",
1049 )
1050 });
1051 let __inner: extern "C" fn(Selectable, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
1052 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
1053 __inner(__receiver, __mi)
1054 }
1055 }
1056 }
1057}
1058
1059#[cfg(feature = "unity_engine-ui-selectable")]
1060impl<__T: ISelectable> ISelectableMethods for __T {}
1061
1062#[cfg(feature = "unity_engine-ui-selectable")]
1063impl Selectable {
1064 pub fn get_all_selectables_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1065 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
1066 }
1067
1068 pub fn get_all_selectable_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1069 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
1070 }
1071
1072 pub fn get_all_selectables_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1073 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
1074 }
1075
1076 pub fn all_selectables_no_alloc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1077 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
1078 }
1079
1080 pub fn get_navigation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1081 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
1082 }
1083
1084 pub fn set_navigation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1085 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
1086 }
1087
1088 pub fn get_transition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1089 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
1090 }
1091
1092 pub fn set_transition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1093 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
1094 }
1095
1096 pub fn get_colors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1097 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
1098 }
1099
1100 pub fn set_colors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1101 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
1102 }
1103
1104 pub fn get_sprite_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1105 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
1106 }
1107
1108 pub fn set_sprite_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
1110 }
1111
1112 pub fn get_animation_triggers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
1114 }
1115
1116 pub fn set_animation_triggers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1117 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
1118 }
1119
1120 pub fn get_target_graphic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
1122 }
1123
1124 pub fn set_target_graphic_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1125 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
1126 }
1127
1128 pub fn get_interactable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
1130 }
1131
1132 pub fn set_interactable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1133 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
1134 }
1135
1136 pub fn get_is_pointer_inside_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1137 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
1138 }
1139
1140 pub fn set_is_pointer_inside_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1141 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
1142 }
1143
1144 pub fn get_is_pointer_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1146 }
1147
1148 pub fn set_is_pointer_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1150 }
1151
1152 pub fn get_has_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1154 }
1155
1156 pub fn set_has_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1158 }
1159
1160 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
1162 }
1163
1164 pub fn get_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1165 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1166 }
1167
1168 pub fn set_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1169 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1170 }
1171
1172 pub fn get_animator_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
1174 }
1175
1176 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
1178 }
1179
1180 pub fn on_canvas_group_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1182 }
1183
1184 pub fn is_interactable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1186 }
1187
1188 pub fn on_did_apply_animation_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1190 }
1191
1192 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1194 }
1195
1196 pub fn on_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1198 }
1199
1200 pub fn on_set_property_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1202 }
1203
1204 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
1206 }
1207
1208 pub fn get_current_selection_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
1210 }
1211
1212 pub fn instant_clear_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1213 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
1214 }
1215
1216 pub fn do_state_transition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1217 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
1218 }
1219
1220 pub fn find_selectable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1221 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
1222 }
1223
1224 pub fn get_point_on_rect_edge_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1225 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
1226 }
1227
1228 pub fn navigate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1229 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
1230 }
1231
1232 pub fn find_selectable_on_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1233 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
1234 }
1235
1236 pub fn find_selectable_on_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
1238 }
1239
1240 pub fn find_selectable_on_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
1242 }
1243
1244 pub fn find_selectable_on_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
1246 }
1247
1248 pub fn on_move_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
1250 }
1251
1252 pub fn start_color_tween_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
1254 }
1255
1256 pub fn do_sprite_swap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
1258 }
1259
1260 pub fn trigger_animation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
1262 }
1263
1264 pub fn is_highlighted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
1266 }
1267
1268 pub fn is_pressed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
1270 }
1271
1272 pub fn evaluate_and_transition_to_selection_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
1274 }
1275
1276 pub fn on_pointer_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
1278 }
1279
1280 pub fn on_pointer_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
1282 }
1283
1284 pub fn on_pointer_enter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
1286 }
1287
1288 pub fn on_pointer_exit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
1290 }
1291
1292 pub fn on_select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
1294 }
1295
1296 pub fn on_deselect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
1298 }
1299
1300 pub fn select_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
1302 }
1303
1304 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[60]
1306 }
1307}
1308
1309#[cfg(feature = "unity_engine-ui-selectable")]
1310impl Selectable {
1311 #[doc = "Direct (non-virtual) call to `Selectable`'s own `Awake`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1312 pub unsafe fn awake(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1313 let __mi = Self::awake_method_info();
1314 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1315 __inner(this.into(), ::core::option::Option::None)
1316 }
1317
1318 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnCanvasGroupChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1319 pub unsafe fn on_canvas_group_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1320 let __mi = Self::on_canvas_group_changed_method_info();
1321 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1322 __inner(this.into(), ::core::option::Option::None)
1323 }
1324
1325 #[doc = "Direct (non-virtual) call to `Selectable`'s own `IsInteractable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1326 pub unsafe fn is_interactable(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
1327 let __mi = Self::is_interactable_method_info();
1328 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
1329 __inner(this.into(), ::core::option::Option::None)
1330 }
1331
1332 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnDidApplyAnimationProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1333 pub unsafe fn on_did_apply_animation_properties(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1334 let __mi = Self::on_did_apply_animation_properties_method_info();
1335 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1336 __inner(this.into(), ::core::option::Option::None)
1337 }
1338
1339 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1340 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1341 let __mi = Self::on_enable_method_info();
1342 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1343 __inner(this.into(), ::core::option::Option::None)
1344 }
1345
1346 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1347 pub unsafe fn on_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1348 let __mi = Self::on_transform_parent_changed_method_info();
1349 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1350 __inner(this.into(), ::core::option::Option::None)
1351 }
1352
1353 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1354 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1355 let __mi = Self::on_disable_method_info();
1356 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1357 __inner(this.into(), ::core::option::Option::None)
1358 }
1359
1360 #[doc = "Direct (non-virtual) call to `Selectable`'s own `InstantClearState`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1361 pub unsafe fn instant_clear_state(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1362 let __mi = Self::instant_clear_state_method_info();
1363 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1364 __inner(this.into(), ::core::option::Option::None)
1365 }
1366
1367 #[doc = "Direct (non-virtual) call to `Selectable`'s own `DoStateTransition`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1368 pub unsafe fn do_state_transition(
1369 this: impl ::core::convert::Into<::unity::IlInstance>,
1370 state: crate::unity_engine::ui::selectable::Selectable_SelectionState,
1371 instant: bool,
1372 ) -> () {
1373 let __mi = Self::do_state_transition_method_info();
1374 let __inner: extern "C" fn(
1375 ::unity::IlInstance,
1376 crate::unity_engine::ui::selectable::Selectable_SelectionState,
1377 bool,
1378 ::unity::OptionalMethod,
1379 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1380 __inner(this.into(), state, instant, ::core::option::Option::None)
1381 }
1382
1383 #[doc = "Direct (non-virtual) call to `Selectable`'s own `FindSelectableOnLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1384 pub unsafe fn find_selectable_on_left(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::ui::selectable::Selectable {
1385 let __mi = Self::find_selectable_on_left_method_info();
1386 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
1387 ::core::mem::transmute(__mi.method_ptr);
1388 __inner(this.into(), ::core::option::Option::None)
1389 }
1390
1391 #[doc = "Direct (non-virtual) call to `Selectable`'s own `FindSelectableOnRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1392 pub unsafe fn find_selectable_on_right(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::ui::selectable::Selectable {
1393 let __mi = Self::find_selectable_on_right_method_info();
1394 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
1395 ::core::mem::transmute(__mi.method_ptr);
1396 __inner(this.into(), ::core::option::Option::None)
1397 }
1398
1399 #[doc = "Direct (non-virtual) call to `Selectable`'s own `FindSelectableOnUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1400 pub unsafe fn find_selectable_on_up(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::ui::selectable::Selectable {
1401 let __mi = Self::find_selectable_on_up_method_info();
1402 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
1403 ::core::mem::transmute(__mi.method_ptr);
1404 __inner(this.into(), ::core::option::Option::None)
1405 }
1406
1407 #[doc = "Direct (non-virtual) call to `Selectable`'s own `FindSelectableOnDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1408 pub unsafe fn find_selectable_on_down(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::ui::selectable::Selectable {
1409 let __mi = Self::find_selectable_on_down_method_info();
1410 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
1411 ::core::mem::transmute(__mi.method_ptr);
1412 __inner(this.into(), ::core::option::Option::None)
1413 }
1414
1415 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnMove`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1416 pub unsafe fn on_move(
1417 this: impl ::core::convert::Into<::unity::IlInstance>,
1418 event_data: crate::unity_engine::event_systems::axiseventdata::AxisEventData,
1419 ) -> () {
1420 let __mi = Self::on_move_method_info();
1421 let __inner: extern "C" fn(
1422 ::unity::IlInstance,
1423 crate::unity_engine::event_systems::axiseventdata::AxisEventData,
1424 ::unity::OptionalMethod,
1425 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1426 __inner(this.into(), event_data, ::core::option::Option::None)
1427 }
1428
1429 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnPointerDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1430 pub unsafe fn on_pointer_down(
1431 this: impl ::core::convert::Into<::unity::IlInstance>,
1432 event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1433 ) -> () {
1434 let __mi = Self::on_pointer_down_method_info();
1435 let __inner: extern "C" fn(
1436 ::unity::IlInstance,
1437 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1438 ::unity::OptionalMethod,
1439 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1440 __inner(this.into(), event_data, ::core::option::Option::None)
1441 }
1442
1443 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnPointerUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1444 pub unsafe fn on_pointer_up(
1445 this: impl ::core::convert::Into<::unity::IlInstance>,
1446 event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1447 ) -> () {
1448 let __mi = Self::on_pointer_up_method_info();
1449 let __inner: extern "C" fn(
1450 ::unity::IlInstance,
1451 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1452 ::unity::OptionalMethod,
1453 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1454 __inner(this.into(), event_data, ::core::option::Option::None)
1455 }
1456
1457 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnPointerEnter`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1458 pub unsafe fn on_pointer_enter(
1459 this: impl ::core::convert::Into<::unity::IlInstance>,
1460 event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1461 ) -> () {
1462 let __mi = Self::on_pointer_enter_method_info();
1463 let __inner: extern "C" fn(
1464 ::unity::IlInstance,
1465 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1466 ::unity::OptionalMethod,
1467 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1468 __inner(this.into(), event_data, ::core::option::Option::None)
1469 }
1470
1471 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnPointerExit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1472 pub unsafe fn on_pointer_exit(
1473 this: impl ::core::convert::Into<::unity::IlInstance>,
1474 event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1475 ) -> () {
1476 let __mi = Self::on_pointer_exit_method_info();
1477 let __inner: extern "C" fn(
1478 ::unity::IlInstance,
1479 crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1480 ::unity::OptionalMethod,
1481 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1482 __inner(this.into(), event_data, ::core::option::Option::None)
1483 }
1484
1485 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnSelect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1486 pub unsafe fn on_select(
1487 this: impl ::core::convert::Into<::unity::IlInstance>,
1488 event_data: crate::unity_engine::event_systems::baseeventdata::BaseEventData,
1489 ) -> () {
1490 let __mi = Self::on_select_method_info();
1491 let __inner: extern "C" fn(
1492 ::unity::IlInstance,
1493 crate::unity_engine::event_systems::baseeventdata::BaseEventData,
1494 ::unity::OptionalMethod,
1495 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1496 __inner(this.into(), event_data, ::core::option::Option::None)
1497 }
1498
1499 #[doc = "Direct (non-virtual) call to `Selectable`'s own `OnDeselect`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1500 pub unsafe fn on_deselect(
1501 this: impl ::core::convert::Into<::unity::IlInstance>,
1502 event_data: crate::unity_engine::event_systems::baseeventdata::BaseEventData,
1503 ) -> () {
1504 let __mi = Self::on_deselect_method_info();
1505 let __inner: extern "C" fn(
1506 ::unity::IlInstance,
1507 crate::unity_engine::event_systems::baseeventdata::BaseEventData,
1508 ::unity::OptionalMethod,
1509 ) -> () = ::core::mem::transmute(__mi.method_ptr);
1510 __inner(this.into(), event_data, ::core::option::Option::None)
1511 }
1512
1513 #[doc = "Direct (non-virtual) call to `Selectable`'s own `Select`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1514 pub unsafe fn select(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1515 let __mi = Self::select_method_info();
1516 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1517 __inner(this.into(), ::core::option::Option::None)
1518 }
1519}
1520
1521#[cfg(feature = "unity_engine-ui-selectable")]
1522impl Selectable {
1523 #[doc = "`.ctor()` — no args"]
1524 pub fn new() -> Self {
1525 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1526 panic!(
1527 "{}
1528::{}
1529 failed to instantiate",
1530 ::core::stringify!(Selectable),
1531 ::core::stringify!(new),
1532 )
1533 });
1534 <Self as ISelectableMethods>::ctor(this);
1535 this
1536 }
1537}
1538
1539#[cfg(feature = "unity_engine-ui-selectable")]
1540#[doc(hidden)]
1541pub mod prelude {
1542 pub use super::{ISelectable, ISelectableMethods, Selectable, Selectable_SelectionState, Selectable_Transition};
1543 #[cfg(feature = "system-object")]
1544 pub use crate::system::object::IObjectMethods;
1545 #[cfg(feature = "system-enum")]
1546 pub use crate::system::r#enum::IEnumMethods;
1547 #[cfg(feature = "system-valuetype")]
1548 pub use crate::system::valuetype::IValueTypeMethods;
1549 #[cfg(feature = "unity_engine-behaviour")]
1550 pub use crate::unity_engine::behaviour::IBehaviourMethods;
1551 #[cfg(feature = "unity_engine-component")]
1552 pub use crate::unity_engine::component::IComponentMethods;
1553 #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
1554 pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
1555 #[cfg(feature = "unity_engine-monobehaviour")]
1556 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
1557 #[cfg(feature = "unity_engine-object_2")]
1558 pub use crate::unity_engine::object_2::IObject_2Methods;
1559 pub use crate::{
1560 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
1561 unity_engine::{
1562 behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
1563 object_2::IObject_2,
1564 },
1565 };
1566}