Skip to main content

engage/generated/unity_engine/ui/
scrollbar.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui-scrollbar-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            events::{
19                unityevent_1::{IUnityEvent_1, UnityEvent_1},
20                unityeventbase::{IUnityEventBase, UnityEventBase},
21            },
22            monobehaviour::{IMonoBehaviour, MonoBehaviour},
23            object_2::{IObject_2, Object_2},
24            ui::selectable::{ISelectable, Selectable},
25        },
26    };
27
28    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/scrollbar/Scrollbar_Direction.md"))]
29    #[repr(C)]
30    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
31    pub struct Scrollbar_Direction {
32        pub value: i32,
33    }
34    impl ::unity::ClassIdentity for Scrollbar_Direction {
35        const NAME: &'static str = "Scrollbar.Direction";
36        const NAMESPACE: &'static str = "UnityEngine.UI";
37
38        fn class() -> ::unity::Class {
39            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
40            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
41        }
42    }
43    impl ::unity::IlType for Scrollbar_Direction {
44        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
45            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
46        }
47    }
48    impl Scrollbar_Direction {
49        pub fn left_to_right() -> Self {
50            Self { value: 0 }
51        }
52
53        pub fn right_to_left() -> Self {
54            Self { value: 1 }
55        }
56
57        pub fn bottom_to_top() -> Self {
58            Self { value: 2 }
59        }
60
61        pub fn top_to_bottom() -> Self {
62            Self { value: 3 }
63        }
64    }
65
66    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/scrollbar/Scrollbar_ScrollEvent.md"))]
67    #[::unity::class(namespace = "UnityEngine.UI", name = "Scrollbar.ScrollEvent")]
68    #[parent(crate::unity_engine::events::unityevent_1::UnityEvent_1<f32>)]
69    pub struct Scrollbar_ScrollEvent {}
70
71    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/scrollbar/Scrollbar_Axis.md"))]
72    #[repr(C)]
73    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
74    pub struct Scrollbar_Axis {
75        pub value: i32,
76    }
77    impl ::unity::ClassIdentity for Scrollbar_Axis {
78        const NAME: &'static str = "Scrollbar.Axis";
79        const NAMESPACE: &'static str = "UnityEngine.UI";
80
81        fn class() -> ::unity::Class {
82            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
83            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
84        }
85    }
86    impl ::unity::IlType for Scrollbar_Axis {
87        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
88            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
89        }
90    }
91    impl Scrollbar_Axis {
92        pub fn horizontal() -> Self {
93            Self { value: 0 }
94        }
95
96        pub fn vertical() -> Self {
97            Self { value: 1 }
98        }
99    }
100
101    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/scrollbar/Scrollbar.md"))]
102    #[::unity::class(namespace = "UnityEngine.UI", name = "Scrollbar")]
103    #[parent(crate::unity_engine::ui::selectable::Selectable)]
104    pub struct Scrollbar {
105        #[offset(248)]
106        #[rename(name = "m_HandleRect")]
107        pub m_handle_rect: crate::unity_engine::recttransform::RectTransform,
108        #[offset(256)]
109        #[rename(name = "m_Direction")]
110        pub m_direction: crate::unity_engine::ui::scrollbar::Scrollbar_Direction,
111        #[offset(260)]
112        #[rename(name = "m_Value")]
113        pub m_value: f32,
114        #[offset(264)]
115        #[rename(name = "m_Size")]
116        pub m_size: f32,
117        #[offset(268)]
118        #[rename(name = "m_NumberOfSteps")]
119        pub m_number_of_steps: i32,
120        #[offset(272)]
121        #[rename(name = "m_OnValueChanged")]
122        pub m_on_value_changed: crate::unity_engine::ui::scrollbar::Scrollbar_ScrollEvent,
123        #[offset(280)]
124        #[rename(name = "m_ContainerRect")]
125        pub m_container_rect: crate::unity_engine::recttransform::RectTransform,
126        #[offset(288)]
127        #[rename(name = "m_Offset")]
128        pub m_offset: crate::unity_engine::vector2::Vector2,
129        #[offset(296)]
130        #[rename(name = "m_Tracker")]
131        pub m_tracker: crate::unity_engine::drivenrecttransformtracker::DrivenRectTransformTracker,
132        #[offset(304)]
133        #[rename(name = "m_PointerDownRepeat")]
134        pub m_pointer_down_repeat: crate::unity_engine::coroutine::Coroutine,
135        #[offset(312)]
136        #[rename(name = "isPointerDownAndNotDragging")]
137        pub is_pointer_down_and_not_dragging: bool,
138        #[offset(313)]
139        #[rename(name = "m_DelayedUpdateVisuals")]
140        pub m_delayed_update_visuals: bool,
141    }
142}
143
144#[cfg(feature = "unity_engine-ui-scrollbar-types")]
145pub use __types::*;
146
147#[cfg(feature = "unity_engine-ui-scrollbar")]
148pub trait IScrollbar_ScrollEventMethods: IScrollbar_ScrollEvent {
149    #[doc = "`.ctor()` overload"]
150    fn ctor(self) -> () {
151        unsafe {
152            let __receiver = <Scrollbar_ScrollEvent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x3c10120usize)as*mut u8,();
154(Scrollbar_ScrollEvent)__receiver)
155        }
156    }
157}
158
159#[cfg(feature = "unity_engine-ui-scrollbar")]
160impl<__T: IScrollbar_ScrollEvent> IScrollbar_ScrollEventMethods for __T {}
161
162#[cfg(feature = "unity_engine-ui-scrollbar")]
163impl Scrollbar_ScrollEvent {
164    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
166    }
167}
168
169#[cfg(feature = "unity_engine-ui-scrollbar")]
170impl Scrollbar_ScrollEvent {
171    #[doc = "`.ctor()` — no args"]
172    pub fn new() -> Self {
173        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
174            panic!(
175                "{}
176::{}
177 failed to instantiate",
178                ::core::stringify!(Scrollbar_ScrollEvent),
179                ::core::stringify!(new),
180            )
181        });
182        <Self as IScrollbar_ScrollEventMethods>::ctor(this);
183        this
184    }
185}
186
187#[cfg(feature = "unity_engine-ui-scrollbar")]
188pub trait IScrollbarMethods: IScrollbar {
189    #[doc = "`get_handleRect()` overload"]
190    fn get_handle_rect(self) -> crate::unity_engine::recttransform::RectTransform {
191        unsafe {
192            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            ::unity::il2cpp_call!((::unity::module_base()+0x3729240usize)as*mut u8,crate::unity_engine::recttransform::RectTransform;
194(Scrollbar)__receiver)
195        }
196    }
197    #[doc = "`set_handleRect(crate::unity_engine::recttransform::RectTransform)` overload"]
198    fn set_handle_rect(self, value: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>) -> () {
199        unsafe {
200            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
201            ::unity::il2cpp_call!((::unity::module_base()+0x3729250usize)as*mut u8,();
202(Scrollbar)__receiver,(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(value))
203        }
204    }
205    #[doc = "`get_direction()` overload"]
206    fn get_direction(self) -> crate::unity_engine::ui::scrollbar::Scrollbar_Direction {
207        unsafe {
208            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
209            ::unity::il2cpp_call!((::unity::module_base()+0x3729620usize)as*mut u8,crate::unity_engine::ui::scrollbar::Scrollbar_Direction;
210(Scrollbar)__receiver)
211        }
212    }
213    #[doc = "`set_direction(crate::unity_engine::ui::scrollbar::Scrollbar_Direction)` overload"]
214    fn set_direction(self, value: impl ::core::convert::Into<crate::unity_engine::ui::scrollbar::Scrollbar_Direction>) -> () {
215        unsafe {
216            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217            ::unity::il2cpp_call!((::unity::module_base()+0x3729630usize)as*mut u8,();
218(Scrollbar)__receiver,(crate::unity_engine::ui::scrollbar::Scrollbar_Direction)::core::convert::Into::into(value))
219        }
220    }
221    #[doc = "`.ctor()` overload"]
222    fn ctor(self) -> () {
223        unsafe {
224            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225            ::unity::il2cpp_call!((::unity::module_base()+0x37296b0usize)as*mut u8,();
226(Scrollbar)__receiver)
227        }
228    }
229    #[doc = "`get_value()` overload"]
230    fn get_value(self) -> f32 {
231        unsafe {
232            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
233            ::unity::il2cpp_call!((::unity::module_base()+0x37298c0usize)as*mut u8,f32;
234(Scrollbar)__receiver)
235        }
236    }
237    #[doc = "`set_value(f32)` overload"]
238    fn set_value(self, value: impl ::core::convert::Into<f32>) -> () {
239        unsafe {
240            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
241            ::unity::il2cpp_call!((::unity::module_base()+0x3727b90usize)as*mut u8,();
242(Scrollbar)__receiver,(f32)::core::convert::Into::into(value))
243        }
244    }
245    #[doc = "`SetValueWithoutNotify(f32)` overload"]
246    fn set_value_without_notify(self, input: impl ::core::convert::Into<f32>) -> () {
247        unsafe {
248            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
249            {
250                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
251                let __vi = *__vt.get(47usize).unwrap_or_else(|| {
252                    panic!(
253                        "unity: virtual slot {}
254 out of range (vtable len {}
255) on the runtime class behind {}
256 (method `{}
257`)",
258                        47usize,
259                        __vt.len(),
260                        <Scrollbar as ::unity::ClassIdentity>::NAME,
261                        "SetValueWithoutNotify",
262                    )
263                });
264                let __inner: extern "C" fn(Scrollbar, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
265                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
266                __inner(__receiver, ::core::convert::Into::into(input), __mi)
267            }
268        }
269    }
270    #[doc = "`get_size()` overload"]
271    fn get_size(self) -> f32 {
272        unsafe {
273            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
274            ::unity::il2cpp_call!((::unity::module_base()+0x3729ba0usize)as*mut u8,f32;
275(Scrollbar)__receiver)
276        }
277    }
278    #[doc = "`set_size(f32)` overload"]
279    fn set_size(self, value: impl ::core::convert::Into<f32>) -> () {
280        unsafe {
281            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282            ::unity::il2cpp_call!((::unity::module_base()+0x37279f0usize)as*mut u8,();
283(Scrollbar)__receiver,(f32)::core::convert::Into::into(value))
284        }
285    }
286    #[doc = "`get_numberOfSteps()` overload"]
287    fn get_number_of_steps(self) -> i32 {
288        unsafe {
289            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
290            ::unity::il2cpp_call!((::unity::module_base()+0x3729bb0usize)as*mut u8,i32;
291(Scrollbar)__receiver)
292        }
293    }
294    #[doc = "`set_numberOfSteps(i32)` overload"]
295    fn set_number_of_steps(self, value: impl ::core::convert::Into<i32>) -> () {
296        unsafe {
297            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
298            ::unity::il2cpp_call!((::unity::module_base()+0x3729bc0usize)as*mut u8,();
299(Scrollbar)__receiver,(i32)::core::convert::Into::into(value))
300        }
301    }
302    #[doc = "`get_onValueChanged()` overload"]
303    fn get_on_value_changed(self) -> crate::unity_engine::ui::scrollbar::Scrollbar_ScrollEvent {
304        unsafe {
305            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
306            ::unity::il2cpp_call!((::unity::module_base()+0x3729c50usize)as*mut u8,crate::unity_engine::ui::scrollbar::Scrollbar_ScrollEvent;
307(Scrollbar)__receiver)
308        }
309    }
310    #[doc = "`set_onValueChanged(crate::unity_engine::ui::scrollbar::Scrollbar_ScrollEvent)` overload"]
311    fn set_on_value_changed(self, value: impl ::core::convert::Into<crate::unity_engine::ui::scrollbar::Scrollbar_ScrollEvent>) -> () {
312        unsafe {
313            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
314            ::unity::il2cpp_call!((::unity::module_base()+0x3729c60usize)as*mut u8,();
315(Scrollbar)__receiver,(crate::unity_engine::ui::scrollbar::Scrollbar_ScrollEvent)::core::convert::Into::into(value))
316        }
317    }
318    #[doc = "`get_stepSize()` overload"]
319    fn get_step_size(self) -> f32 {
320        unsafe {
321            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
322            ::unity::il2cpp_call!((::unity::module_base()+0x3729c70usize)as*mut u8,f32;
323(Scrollbar)__receiver)
324        }
325    }
326    #[doc = "`Rebuild(crate::unity_engine::ui::canvasupdate::CanvasUpdate)` overload"]
327    fn rebuild(self, executing: impl ::core::convert::Into<crate::unity_engine::ui::canvasupdate::CanvasUpdate>) -> () {
328        unsafe {
329            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
330            {
331                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
332                let __vi = *__vt.get(48usize).unwrap_or_else(|| {
333                    panic!(
334                        "unity: virtual slot {}
335 out of range (vtable len {}
336) on the runtime class behind {}
337 (method `{}
338`)",
339                        48usize,
340                        __vt.len(),
341                        <Scrollbar as ::unity::ClassIdentity>::NAME,
342                        "Rebuild",
343                    )
344                });
345                let __inner: extern "C" fn(Scrollbar, crate::unity_engine::ui::canvasupdate::CanvasUpdate, ::unity::OptionalMethod) -> () =
346                    ::core::mem::transmute(__vi.method_ptr);
347                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
348                __inner(__receiver, ::core::convert::Into::into(executing), __mi)
349            }
350        }
351    }
352    #[doc = "`LayoutComplete()` overload"]
353    fn layout_complete(self) -> () {
354        unsafe {
355            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
356            {
357                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
358                let __vi = *__vt.get(49usize).unwrap_or_else(|| {
359                    panic!(
360                        "unity: virtual slot {}
361 out of range (vtable len {}
362) on the runtime class behind {}
363 (method `{}
364`)",
365                        49usize,
366                        __vt.len(),
367                        <Scrollbar as ::unity::ClassIdentity>::NAME,
368                        "LayoutComplete",
369                    )
370                });
371                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
372                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
373                __inner(__receiver, __mi)
374            }
375        }
376    }
377    #[doc = "`GraphicUpdateComplete()` overload"]
378    fn graphic_update_complete(self) -> () {
379        unsafe {
380            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
381            {
382                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
383                let __vi = *__vt.get(50usize).unwrap_or_else(|| {
384                    panic!(
385                        "unity: virtual slot {}
386 out of range (vtable len {}
387) on the runtime class behind {}
388 (method `{}
389`)",
390                        50usize,
391                        __vt.len(),
392                        <Scrollbar as ::unity::ClassIdentity>::NAME,
393                        "GraphicUpdateComplete",
394                    )
395                });
396                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
397                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
398                __inner(__receiver, __mi)
399            }
400        }
401    }
402    #[doc = "`OnEnable()` overload"]
403    fn on_enable(self) -> () {
404        unsafe {
405            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
406            {
407                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
408                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
409                    panic!(
410                        "unity: virtual slot {}
411 out of range (vtable len {}
412) on the runtime class behind {}
413 (method `{}
414`)",
415                        5usize,
416                        __vt.len(),
417                        <Scrollbar as ::unity::ClassIdentity>::NAME,
418                        "OnEnable",
419                    )
420                });
421                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
422                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
423                __inner(__receiver, __mi)
424            }
425        }
426    }
427    #[doc = "`OnDisable()` overload"]
428    fn on_disable(self) -> () {
429        unsafe {
430            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
431            {
432                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
433                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
434                    panic!(
435                        "unity: virtual slot {}
436 out of range (vtable len {}
437) on the runtime class behind {}
438 (method `{}
439`)",
440                        7usize,
441                        __vt.len(),
442                        <Scrollbar as ::unity::ClassIdentity>::NAME,
443                        "OnDisable",
444                    )
445                });
446                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
447                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
448                __inner(__receiver, __mi)
449            }
450        }
451    }
452    #[doc = "`Update()` overload"]
453    fn update(self) -> () {
454        unsafe {
455            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
456            {
457                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
458                let __vi = *__vt.get(51usize).unwrap_or_else(|| {
459                    panic!(
460                        "unity: virtual slot {}
461 out of range (vtable len {}
462) on the runtime class behind {}
463 (method `{}
464`)",
465                        51usize,
466                        __vt.len(),
467                        <Scrollbar as ::unity::ClassIdentity>::NAME,
468                        "Update",
469                    )
470                });
471                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
472                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
473                __inner(__receiver, __mi)
474            }
475        }
476    }
477    #[doc = "`UpdateCachedReferences()` overload"]
478    fn update_cached_references(self) -> () {
479        unsafe {
480            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
481            ::unity::il2cpp_call!((::unity::module_base()+0x37292d0usize)as*mut u8,();
482(Scrollbar)__receiver)
483        }
484    }
485    #[doc = "`Set(f32, bool)` overload"]
486    fn set(self, input: impl ::core::convert::Into<f32>, send_callback: impl ::core::convert::Into<bool>) -> () {
487        unsafe {
488            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
489            ::unity::il2cpp_call!((::unity::module_base()+0x3729990usize)as*mut u8,();
490(Scrollbar)__receiver,(f32)::core::convert::Into::into(input),(bool)::core::convert::Into::into(send_callback))
491        }
492    }
493    #[doc = "`OnRectTransformDimensionsChange()` overload"]
494    fn on_rect_transform_dimensions_change(self) -> () {
495        unsafe {
496            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
497            {
498                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
499                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
500                    panic!(
501                        "unity: virtual slot {}
502 out of range (vtable len {}
503) on the runtime class behind {}
504 (method `{}
505`)",
506                        10usize,
507                        __vt.len(),
508                        <Scrollbar as ::unity::ClassIdentity>::NAME,
509                        "OnRectTransformDimensionsChange",
510                    )
511                });
512                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
513                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
514                __inner(__receiver, __mi)
515            }
516        }
517    }
518    #[doc = "`get_axis()` overload"]
519    fn get_axis(self) -> crate::unity_engine::ui::scrollbar::Scrollbar_Axis {
520        unsafe {
521            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
522            ::unity::il2cpp_call!((::unity::module_base()+0x372a210usize)as*mut u8,crate::unity_engine::ui::scrollbar::Scrollbar_Axis;
523(Scrollbar)__receiver)
524        }
525    }
526    #[doc = "`get_reverseValue()` overload"]
527    fn get_reverse_value(self) -> bool {
528        unsafe {
529            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
530            ::unity::il2cpp_call!((::unity::module_base()+0x372a220usize)as*mut u8,bool;
531(Scrollbar)__receiver)
532        }
533    }
534    #[doc = "`UpdateVisuals()` overload"]
535    fn update_visuals(self) -> () {
536        unsafe {
537            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
538            ::unity::il2cpp_call!((::unity::module_base()+0x37293f0usize)as*mut u8,();
539(Scrollbar)__receiver)
540        }
541    }
542    #[doc = "`UpdateDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
543    fn update_drag(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
544        unsafe {
545            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
546            ::unity::il2cpp_call!((::unity::module_base()+0x372a240usize)as*mut u8,();
547(Scrollbar)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(event_data))
548        }
549    }
550    #[doc = "`DoUpdateDrag(crate::unity_engine::vector2::Vector2, f32)` overload"]
551    fn do_update_drag(
552        self,
553        handle_corner: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
554        remaining_size: impl ::core::convert::Into<f32>,
555    ) -> () {
556        unsafe {
557            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
558            ::unity::il2cpp_call!((::unity::module_base()+0x372a580usize)as*mut u8,();
559(Scrollbar)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(handle_corner),(f32)::core::convert::Into::into(remaining_size))
560        }
561    }
562    #[doc = "`MayDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
563    fn may_drag(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> bool {
564        unsafe {
565            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
566            ::unity::il2cpp_call!((::unity::module_base()+0x372a600usize)as*mut u8,bool;
567(Scrollbar)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(event_data))
568        }
569    }
570    #[doc = "`OnBeginDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
571    fn on_begin_drag(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
572        unsafe {
573            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
574            {
575                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
576                let __vi = *__vt.get(52usize).unwrap_or_else(|| {
577                    panic!(
578                        "unity: virtual slot {}
579 out of range (vtable len {}
580) on the runtime class behind {}
581 (method `{}
582`)",
583                        52usize,
584                        __vt.len(),
585                        <Scrollbar as ::unity::ClassIdentity>::NAME,
586                        "OnBeginDrag",
587                    )
588                });
589                let __inner: extern "C" fn(
590                    Scrollbar,
591                    crate::unity_engine::event_systems::pointereventdata::PointerEventData,
592                    ::unity::OptionalMethod,
593                ) -> () = ::core::mem::transmute(__vi.method_ptr);
594                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
595                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
596            }
597        }
598    }
599    #[doc = "`OnDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
600    fn on_drag(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
601        unsafe {
602            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
603            {
604                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
605                let __vi = *__vt.get(53usize).unwrap_or_else(|| {
606                    panic!(
607                        "unity: virtual slot {}
608 out of range (vtable len {}
609) on the runtime class behind {}
610 (method `{}
611`)",
612                        53usize,
613                        __vt.len(),
614                        <Scrollbar as ::unity::ClassIdentity>::NAME,
615                        "OnDrag",
616                    )
617                });
618                let __inner: extern "C" fn(
619                    Scrollbar,
620                    crate::unity_engine::event_systems::pointereventdata::PointerEventData,
621                    ::unity::OptionalMethod,
622                ) -> () = ::core::mem::transmute(__vi.method_ptr);
623                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
624                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
625            }
626        }
627    }
628    #[doc = "`OnPointerDown(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
629    fn on_pointer_down(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
630        unsafe {
631            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
632            {
633                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
634                let __vi = *__vt.get(32usize).unwrap_or_else(|| {
635                    panic!(
636                        "unity: virtual slot {}
637 out of range (vtable len {}
638) on the runtime class behind {}
639 (method `{}
640`)",
641                        32usize,
642                        __vt.len(),
643                        <Scrollbar as ::unity::ClassIdentity>::NAME,
644                        "OnPointerDown",
645                    )
646                });
647                let __inner: extern "C" fn(
648                    Scrollbar,
649                    crate::unity_engine::event_systems::pointereventdata::PointerEventData,
650                    ::unity::OptionalMethod,
651                ) -> () = ::core::mem::transmute(__vi.method_ptr);
652                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
653                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
654            }
655        }
656    }
657    #[doc = "`ClickRepeat(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
658    fn click_repeat(
659        self,
660        event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
661    ) -> crate::system::collections::ienumerator::IEnumerator {
662        unsafe {
663            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
664            ::unity::il2cpp_call!((::unity::module_base()+0x372add0usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
665(Scrollbar)__receiver,(crate::unity_engine::event_systems::pointereventdata::PointerEventData)::core::convert::Into::into(event_data))
666        }
667    }
668    #[doc = "`ClickRepeat(crate::unity_engine::vector2::Vector2, crate::unity_engine::camera::Camera)` overload"]
669    fn click_repeat_2(
670        self,
671        screen_position: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
672        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
673    ) -> crate::system::collections::ienumerator::IEnumerator {
674        unsafe {
675            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
676            ::unity::il2cpp_call!((::unity::module_base()+0x372ad20usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
677(Scrollbar)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(screen_position),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
678        }
679    }
680    #[doc = "`OnPointerUp(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
681    fn on_pointer_up(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>) -> () {
682        unsafe {
683            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
684            {
685                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
686                let __vi = *__vt.get(33usize).unwrap_or_else(|| {
687                    panic!(
688                        "unity: virtual slot {}
689 out of range (vtable len {}
690) on the runtime class behind {}
691 (method `{}
692`)",
693                        33usize,
694                        __vt.len(),
695                        <Scrollbar as ::unity::ClassIdentity>::NAME,
696                        "OnPointerUp",
697                    )
698                });
699                let __inner: extern "C" fn(
700                    Scrollbar,
701                    crate::unity_engine::event_systems::pointereventdata::PointerEventData,
702                    ::unity::OptionalMethod,
703                ) -> () = ::core::mem::transmute(__vi.method_ptr);
704                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
705                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
706            }
707        }
708    }
709    #[doc = "`OnMove(crate::unity_engine::event_systems::axiseventdata::AxisEventData)` overload"]
710    fn on_move(self, event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::axiseventdata::AxisEventData>) -> () {
711        unsafe {
712            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
713            {
714                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
715                let __vi = *__vt.get(31usize).unwrap_or_else(|| {
716                    panic!(
717                        "unity: virtual slot {}
718 out of range (vtable len {}
719) on the runtime class behind {}
720 (method `{}
721`)",
722                        31usize,
723                        __vt.len(),
724                        <Scrollbar as ::unity::ClassIdentity>::NAME,
725                        "OnMove",
726                    )
727                });
728                let __inner: extern "C" fn(
729                    Scrollbar,
730                    crate::unity_engine::event_systems::axiseventdata::AxisEventData,
731                    ::unity::OptionalMethod,
732                ) -> () = ::core::mem::transmute(__vi.method_ptr);
733                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
734                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
735            }
736        }
737    }
738    #[doc = "`FindSelectableOnLeft()` overload"]
739    fn find_selectable_on_left(self) -> crate::unity_engine::ui::selectable::Selectable {
740        unsafe {
741            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
742            {
743                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
744                let __vi = *__vt.get(27usize).unwrap_or_else(|| {
745                    panic!(
746                        "unity: virtual slot {}
747 out of range (vtable len {}
748) on the runtime class behind {}
749 (method `{}
750`)",
751                        27usize,
752                        __vt.len(),
753                        <Scrollbar as ::unity::ClassIdentity>::NAME,
754                        "FindSelectableOnLeft",
755                    )
756                });
757                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
758                    ::core::mem::transmute(__vi.method_ptr);
759                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
760                __inner(__receiver, __mi)
761            }
762        }
763    }
764    #[doc = "`FindSelectableOnRight()` overload"]
765    fn find_selectable_on_right(self) -> crate::unity_engine::ui::selectable::Selectable {
766        unsafe {
767            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
768            {
769                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
770                let __vi = *__vt.get(28usize).unwrap_or_else(|| {
771                    panic!(
772                        "unity: virtual slot {}
773 out of range (vtable len {}
774) on the runtime class behind {}
775 (method `{}
776`)",
777                        28usize,
778                        __vt.len(),
779                        <Scrollbar as ::unity::ClassIdentity>::NAME,
780                        "FindSelectableOnRight",
781                    )
782                });
783                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
784                    ::core::mem::transmute(__vi.method_ptr);
785                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
786                __inner(__receiver, __mi)
787            }
788        }
789    }
790    #[doc = "`FindSelectableOnUp()` overload"]
791    fn find_selectable_on_up(self) -> crate::unity_engine::ui::selectable::Selectable {
792        unsafe {
793            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
794            {
795                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
796                let __vi = *__vt.get(29usize).unwrap_or_else(|| {
797                    panic!(
798                        "unity: virtual slot {}
799 out of range (vtable len {}
800) on the runtime class behind {}
801 (method `{}
802`)",
803                        29usize,
804                        __vt.len(),
805                        <Scrollbar as ::unity::ClassIdentity>::NAME,
806                        "FindSelectableOnUp",
807                    )
808                });
809                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
810                    ::core::mem::transmute(__vi.method_ptr);
811                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
812                __inner(__receiver, __mi)
813            }
814        }
815    }
816    #[doc = "`FindSelectableOnDown()` overload"]
817    fn find_selectable_on_down(self) -> crate::unity_engine::ui::selectable::Selectable {
818        unsafe {
819            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
820            {
821                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
822                let __vi = *__vt.get(30usize).unwrap_or_else(|| {
823                    panic!(
824                        "unity: virtual slot {}
825 out of range (vtable len {}
826) on the runtime class behind {}
827 (method `{}
828`)",
829                        30usize,
830                        __vt.len(),
831                        <Scrollbar as ::unity::ClassIdentity>::NAME,
832                        "FindSelectableOnDown",
833                    )
834                });
835                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
836                    ::core::mem::transmute(__vi.method_ptr);
837                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
838                __inner(__receiver, __mi)
839            }
840        }
841    }
842    #[doc = "`OnInitializePotentialDrag(crate::unity_engine::event_systems::pointereventdata::PointerEventData)` overload"]
843    fn on_initialize_potential_drag(
844        self,
845        event_data: impl ::core::convert::Into<crate::unity_engine::event_systems::pointereventdata::PointerEventData>,
846    ) -> () {
847        unsafe {
848            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
849            {
850                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
851                let __vi = *__vt.get(54usize).unwrap_or_else(|| {
852                    panic!(
853                        "unity: virtual slot {}
854 out of range (vtable len {}
855) on the runtime class behind {}
856 (method `{}
857`)",
858                        54usize,
859                        __vt.len(),
860                        <Scrollbar as ::unity::ClassIdentity>::NAME,
861                        "OnInitializePotentialDrag",
862                    )
863                });
864                let __inner: extern "C" fn(
865                    Scrollbar,
866                    crate::unity_engine::event_systems::pointereventdata::PointerEventData,
867                    ::unity::OptionalMethod,
868                ) -> () = ::core::mem::transmute(__vi.method_ptr);
869                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
870                __inner(__receiver, ::core::convert::Into::into(event_data), __mi)
871            }
872        }
873    }
874    #[doc = "`SetDirection(crate::unity_engine::ui::scrollbar::Scrollbar_Direction, bool)` overload"]
875    fn set_direction_2(
876        self,
877        direction: impl ::core::convert::Into<crate::unity_engine::ui::scrollbar::Scrollbar_Direction>,
878        include_rect_layouts: impl ::core::convert::Into<bool>,
879    ) -> () {
880        unsafe {
881            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
882            ::unity::il2cpp_call!((::unity::module_base()+0x372b8f0usize)as*mut u8,();
883(Scrollbar)__receiver,(crate::unity_engine::ui::scrollbar::Scrollbar_Direction)::core::convert::Into::into(direction),(bool)::core::convert::Into::into(include_rect_layouts))
884        }
885    }
886    #[doc = "`UnityEngine.UI.ICanvasElement.get_transform()` overload"]
887    fn unity_engine_ui_i_canvas_element_get_transform(self) -> crate::unity_engine::transform::Transform {
888        unsafe {
889            let __receiver = <Scrollbar as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
890            {
891                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
892                let __vi = *__vt.get(43usize).unwrap_or_else(|| {
893                    panic!(
894                        "unity: virtual slot {}
895 out of range (vtable len {}
896) on the runtime class behind {}
897 (method `{}
898`)",
899                        43usize,
900                        __vt.len(),
901                        <Scrollbar as ::unity::ClassIdentity>::NAME,
902                        "UnityEngine.UI.ICanvasElement.get_transform",
903                    )
904                });
905                let __inner: extern "C" fn(Scrollbar, ::unity::OptionalMethod) -> crate::unity_engine::transform::Transform =
906                    ::core::mem::transmute(__vi.method_ptr);
907                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
908                __inner(__receiver, __mi)
909            }
910        }
911    }
912}
913
914#[cfg(feature = "unity_engine-ui-scrollbar")]
915impl<__T: IScrollbar> IScrollbarMethods for __T {}
916
917#[cfg(feature = "unity_engine-ui-scrollbar")]
918impl Scrollbar {
919    pub fn get_handle_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
920        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
921    }
922
923    pub fn set_handle_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
924        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
925    }
926
927    pub fn get_direction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
928        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
929    }
930
931    pub fn set_direction_method_info() -> &'static ::unity::il2cpp::MethodInfo {
932        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
933    }
934
935    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
936        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
937    }
938
939    pub fn get_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
940        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
941    }
942
943    pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
944        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
945    }
946
947    pub fn set_value_without_notify_method_info() -> &'static ::unity::il2cpp::MethodInfo {
948        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
949    }
950
951    pub fn get_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
952        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
953    }
954
955    pub fn set_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
956        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
957    }
958
959    pub fn get_number_of_steps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
960        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
961    }
962
963    pub fn set_number_of_steps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
964        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
965    }
966
967    pub fn get_on_value_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
968        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
969    }
970
971    pub fn set_on_value_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
972        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
973    }
974
975    pub fn get_step_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
976        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
977    }
978
979    pub fn rebuild_method_info() -> &'static ::unity::il2cpp::MethodInfo {
980        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
981    }
982
983    pub fn layout_complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
984        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
985    }
986
987    pub fn graphic_update_complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
988        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
989    }
990
991    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
992        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
993    }
994
995    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
996        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
997    }
998
999    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1000        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
1001    }
1002
1003    pub fn update_cached_references_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1004        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
1005    }
1006
1007    pub fn set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1008        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
1009    }
1010
1011    pub fn on_rect_transform_dimensions_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1012        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
1013    }
1014
1015    pub fn get_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1016        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
1017    }
1018
1019    pub fn get_reverse_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1020        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
1021    }
1022
1023    pub fn update_visuals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1024        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
1025    }
1026
1027    pub fn update_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1028        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
1029    }
1030
1031    pub fn do_update_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1032        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
1033    }
1034
1035    pub fn may_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1036        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
1037    }
1038
1039    pub fn on_begin_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1040        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
1041    }
1042
1043    pub fn on_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1044        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
1045    }
1046
1047    pub fn on_pointer_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1048        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
1049    }
1050
1051    pub fn click_repeat_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1052        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
1053    }
1054
1055    pub fn click_repeat_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1056        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
1057    }
1058
1059    pub fn on_pointer_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1060        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
1061    }
1062
1063    pub fn on_move_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1064        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
1065    }
1066
1067    pub fn find_selectable_on_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1068        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
1069    }
1070
1071    pub fn find_selectable_on_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1072        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
1073    }
1074
1075    pub fn find_selectable_on_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1076        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
1077    }
1078
1079    pub fn find_selectable_on_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1080        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
1081    }
1082
1083    pub fn on_initialize_potential_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1084        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
1085    }
1086
1087    pub fn set_direction_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1088        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
1089    }
1090
1091    pub fn unity_engine_ui_i_canvas_element_get_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1092        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
1093    }
1094}
1095
1096#[cfg(feature = "unity_engine-ui-scrollbar")]
1097impl Scrollbar {
1098    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `SetValueWithoutNotify`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1099    pub unsafe fn set_value_without_notify(this: impl ::core::convert::Into<::unity::IlInstance>, input: f32) -> () {
1100        let __mi = Self::set_value_without_notify_method_info();
1101        let __inner: extern "C" fn(::unity::IlInstance, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1102        __inner(this.into(), input, ::core::option::Option::None)
1103    }
1104
1105    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `Rebuild`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1106    pub unsafe fn rebuild(
1107        this: impl ::core::convert::Into<::unity::IlInstance>,
1108        executing: crate::unity_engine::ui::canvasupdate::CanvasUpdate,
1109    ) -> () {
1110        let __mi = Self::rebuild_method_info();
1111        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::ui::canvasupdate::CanvasUpdate, ::unity::OptionalMethod) -> () =
1112            ::core::mem::transmute(__mi.method_ptr);
1113        __inner(this.into(), executing, ::core::option::Option::None)
1114    }
1115
1116    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `LayoutComplete`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1117    pub unsafe fn layout_complete(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1118        let __mi = Self::layout_complete_method_info();
1119        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1120        __inner(this.into(), ::core::option::Option::None)
1121    }
1122
1123    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `GraphicUpdateComplete`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1124    pub unsafe fn graphic_update_complete(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1125        let __mi = Self::graphic_update_complete_method_info();
1126        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1127        __inner(this.into(), ::core::option::Option::None)
1128    }
1129
1130    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1131    pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1132        let __mi = Self::on_enable_method_info();
1133        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1134        __inner(this.into(), ::core::option::Option::None)
1135    }
1136
1137    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1138    pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1139        let __mi = Self::on_disable_method_info();
1140        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1141        __inner(this.into(), ::core::option::Option::None)
1142    }
1143
1144    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `Update`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1145    pub unsafe fn update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1146        let __mi = Self::update_method_info();
1147        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1148        __inner(this.into(), ::core::option::Option::None)
1149    }
1150
1151    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnRectTransformDimensionsChange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1152    pub unsafe fn on_rect_transform_dimensions_change(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1153        let __mi = Self::on_rect_transform_dimensions_change_method_info();
1154        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1155        __inner(this.into(), ::core::option::Option::None)
1156    }
1157
1158    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnBeginDrag`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1159    pub unsafe fn on_begin_drag(
1160        this: impl ::core::convert::Into<::unity::IlInstance>,
1161        event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1162    ) -> () {
1163        let __mi = Self::on_begin_drag_method_info();
1164        let __inner: extern "C" fn(
1165            ::unity::IlInstance,
1166            crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1167            ::unity::OptionalMethod,
1168        ) -> () = ::core::mem::transmute(__mi.method_ptr);
1169        __inner(this.into(), event_data, ::core::option::Option::None)
1170    }
1171
1172    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnDrag`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1173    pub unsafe fn on_drag(
1174        this: impl ::core::convert::Into<::unity::IlInstance>,
1175        event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1176    ) -> () {
1177        let __mi = Self::on_drag_method_info();
1178        let __inner: extern "C" fn(
1179            ::unity::IlInstance,
1180            crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1181            ::unity::OptionalMethod,
1182        ) -> () = ::core::mem::transmute(__mi.method_ptr);
1183        __inner(this.into(), event_data, ::core::option::Option::None)
1184    }
1185
1186    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnPointerDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1187    pub unsafe fn on_pointer_down(
1188        this: impl ::core::convert::Into<::unity::IlInstance>,
1189        event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1190    ) -> () {
1191        let __mi = Self::on_pointer_down_method_info();
1192        let __inner: extern "C" fn(
1193            ::unity::IlInstance,
1194            crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1195            ::unity::OptionalMethod,
1196        ) -> () = ::core::mem::transmute(__mi.method_ptr);
1197        __inner(this.into(), event_data, ::core::option::Option::None)
1198    }
1199
1200    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnPointerUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1201    pub unsafe fn on_pointer_up(
1202        this: impl ::core::convert::Into<::unity::IlInstance>,
1203        event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1204    ) -> () {
1205        let __mi = Self::on_pointer_up_method_info();
1206        let __inner: extern "C" fn(
1207            ::unity::IlInstance,
1208            crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1209            ::unity::OptionalMethod,
1210        ) -> () = ::core::mem::transmute(__mi.method_ptr);
1211        __inner(this.into(), event_data, ::core::option::Option::None)
1212    }
1213
1214    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnMove`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1215    pub unsafe fn on_move(
1216        this: impl ::core::convert::Into<::unity::IlInstance>,
1217        event_data: crate::unity_engine::event_systems::axiseventdata::AxisEventData,
1218    ) -> () {
1219        let __mi = Self::on_move_method_info();
1220        let __inner: extern "C" fn(
1221            ::unity::IlInstance,
1222            crate::unity_engine::event_systems::axiseventdata::AxisEventData,
1223            ::unity::OptionalMethod,
1224        ) -> () = ::core::mem::transmute(__mi.method_ptr);
1225        __inner(this.into(), event_data, ::core::option::Option::None)
1226    }
1227
1228    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `FindSelectableOnLeft`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1229    pub unsafe fn find_selectable_on_left(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::ui::selectable::Selectable {
1230        let __mi = Self::find_selectable_on_left_method_info();
1231        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
1232            ::core::mem::transmute(__mi.method_ptr);
1233        __inner(this.into(), ::core::option::Option::None)
1234    }
1235
1236    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `FindSelectableOnRight`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1237    pub unsafe fn find_selectable_on_right(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::ui::selectable::Selectable {
1238        let __mi = Self::find_selectable_on_right_method_info();
1239        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
1240            ::core::mem::transmute(__mi.method_ptr);
1241        __inner(this.into(), ::core::option::Option::None)
1242    }
1243
1244    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `FindSelectableOnUp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1245    pub unsafe fn find_selectable_on_up(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::ui::selectable::Selectable {
1246        let __mi = Self::find_selectable_on_up_method_info();
1247        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
1248            ::core::mem::transmute(__mi.method_ptr);
1249        __inner(this.into(), ::core::option::Option::None)
1250    }
1251
1252    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `FindSelectableOnDown`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1253    pub unsafe fn find_selectable_on_down(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::ui::selectable::Selectable {
1254        let __mi = Self::find_selectable_on_down_method_info();
1255        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::ui::selectable::Selectable =
1256            ::core::mem::transmute(__mi.method_ptr);
1257        __inner(this.into(), ::core::option::Option::None)
1258    }
1259
1260    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `OnInitializePotentialDrag`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1261    pub unsafe fn on_initialize_potential_drag(
1262        this: impl ::core::convert::Into<::unity::IlInstance>,
1263        event_data: crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1264    ) -> () {
1265        let __mi = Self::on_initialize_potential_drag_method_info();
1266        let __inner: extern "C" fn(
1267            ::unity::IlInstance,
1268            crate::unity_engine::event_systems::pointereventdata::PointerEventData,
1269            ::unity::OptionalMethod,
1270        ) -> () = ::core::mem::transmute(__mi.method_ptr);
1271        __inner(this.into(), event_data, ::core::option::Option::None)
1272    }
1273
1274    #[doc = "Direct (non-virtual) call to `Scrollbar`'s own `UnityEngine.UI.ICanvasElement.get_transform`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1275    pub unsafe fn unity_engine_ui_i_canvas_element_get_transform(
1276        this: impl ::core::convert::Into<::unity::IlInstance>,
1277    ) -> crate::unity_engine::transform::Transform {
1278        let __mi = Self::unity_engine_ui_i_canvas_element_get_transform_method_info();
1279        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::transform::Transform =
1280            ::core::mem::transmute(__mi.method_ptr);
1281        __inner(this.into(), ::core::option::Option::None)
1282    }
1283}
1284
1285#[cfg(feature = "unity_engine-ui-scrollbar")]
1286impl Scrollbar {
1287    #[doc = "`.ctor()` — no args"]
1288    pub fn new() -> Self {
1289        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1290            panic!(
1291                "{}
1292::{}
1293 failed to instantiate",
1294                ::core::stringify!(Scrollbar),
1295                ::core::stringify!(new),
1296            )
1297        });
1298        <Self as IScrollbarMethods>::ctor(this);
1299        this
1300    }
1301}
1302
1303#[cfg(feature = "unity_engine-ui-scrollbar")]
1304#[doc(hidden)]
1305pub mod prelude {
1306    pub use super::{
1307        IScrollbar, IScrollbarMethods, IScrollbar_ScrollEvent, IScrollbar_ScrollEventMethods, Scrollbar, Scrollbar_Axis, Scrollbar_Direction,
1308        Scrollbar_ScrollEvent,
1309    };
1310    #[cfg(feature = "system-object")]
1311    pub use crate::system::object::IObjectMethods;
1312    #[cfg(feature = "system-enum")]
1313    pub use crate::system::r#enum::IEnumMethods;
1314    #[cfg(feature = "system-valuetype")]
1315    pub use crate::system::valuetype::IValueTypeMethods;
1316    #[cfg(feature = "unity_engine-behaviour")]
1317    pub use crate::unity_engine::behaviour::IBehaviourMethods;
1318    #[cfg(feature = "unity_engine-component")]
1319    pub use crate::unity_engine::component::IComponentMethods;
1320    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
1321    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
1322    #[cfg(feature = "unity_engine-events-unityevent_1")]
1323    pub use crate::unity_engine::events::unityevent_1::IUnityEvent_1Methods;
1324    #[cfg(feature = "unity_engine-events-unityeventbase")]
1325    pub use crate::unity_engine::events::unityeventbase::IUnityEventBaseMethods;
1326    #[cfg(feature = "unity_engine-monobehaviour")]
1327    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
1328    #[cfg(feature = "unity_engine-object_2")]
1329    pub use crate::unity_engine::object_2::IObject_2Methods;
1330    #[cfg(feature = "unity_engine-ui-selectable")]
1331    pub use crate::unity_engine::ui::selectable::ISelectableMethods;
1332    pub use crate::{
1333        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
1334        unity_engine::{
1335            behaviour::IBehaviour,
1336            component::IComponent,
1337            event_systems::uibehaviour::IUIBehaviour,
1338            events::{unityevent_1::IUnityEvent_1, unityeventbase::IUnityEventBase},
1339            monobehaviour::IMonoBehaviour,
1340            object_2::IObject_2,
1341            ui::selectable::ISelectable,
1342        },
1343    };
1344}