Skip to main content

engage/generated/unity_engine/ui/
aspectratiofitter.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui-aspectratiofitter-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/aspectratiofitter/AspectRatioFitter.md"))]
24    #[::unity::class(namespace = "UnityEngine.UI", name = "AspectRatioFitter")]
25    #[parent(crate::unity_engine::event_systems::uibehaviour::UIBehaviour)]
26    pub struct AspectRatioFitter {
27        #[offset(24)]
28        #[rename(name = "m_AspectMode")]
29        pub m_aspect_mode: crate::unity_engine::ui::aspectratiofitter::AspectRatioFitter_AspectMode,
30        #[offset(28)]
31        #[rename(name = "m_AspectRatio")]
32        pub m_aspect_ratio: f32,
33        #[offset(32)]
34        #[rename(name = "m_Rect")]
35        pub m_rect: crate::unity_engine::recttransform::RectTransform,
36        #[offset(40)]
37        #[rename(name = "m_DelayedSetDirty")]
38        pub m_delayed_set_dirty: bool,
39        #[offset(41)]
40        #[rename(name = "m_DoesParentExist")]
41        pub m_does_parent_exist: bool,
42        #[offset(42)]
43        #[rename(name = "m_Tracker")]
44        pub m_tracker: crate::unity_engine::drivenrecttransformtracker::DrivenRectTransformTracker,
45    }
46
47    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/aspectratiofitter/AspectRatioFitter_AspectMode.md"))]
48    #[repr(C)]
49    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
50    pub struct AspectRatioFitter_AspectMode {
51        pub value: i32,
52    }
53    impl ::unity::ClassIdentity for AspectRatioFitter_AspectMode {
54        const NAME: &'static str = "AspectRatioFitter.AspectMode";
55        const NAMESPACE: &'static str = "UnityEngine.UI";
56
57        fn class() -> ::unity::Class {
58            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
59            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
60        }
61    }
62    impl ::unity::IlType for AspectRatioFitter_AspectMode {
63        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
64            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
65        }
66    }
67    impl AspectRatioFitter_AspectMode {
68        pub fn none() -> Self {
69            Self { value: 0 }
70        }
71
72        pub fn width_controls_height() -> Self {
73            Self { value: 1 }
74        }
75
76        pub fn height_controls_width() -> Self {
77            Self { value: 2 }
78        }
79
80        pub fn fit_in_parent() -> Self {
81            Self { value: 3 }
82        }
83
84        pub fn envelope_parent() -> Self {
85            Self { value: 4 }
86        }
87    }
88}
89
90#[cfg(feature = "unity_engine-ui-aspectratiofitter-types")]
91pub use __types::*;
92
93#[cfg(feature = "unity_engine-ui-aspectratiofitter")]
94pub trait IAspectRatioFitterMethods: IAspectRatioFitter {
95    #[doc = "`get_aspectMode()` overload"]
96    fn get_aspect_mode(self) -> crate::unity_engine::ui::aspectratiofitter::AspectRatioFitter_AspectMode {
97        unsafe {
98            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x31795b0usize)as*mut u8,crate::unity_engine::ui::aspectratiofitter::AspectRatioFitter_AspectMode;
100(AspectRatioFitter)__receiver)
101        }
102    }
103    #[doc = "`set_aspectMode(crate::unity_engine::ui::aspectratiofitter::AspectRatioFitter_AspectMode)` overload"]
104    fn set_aspect_mode(self, value: impl ::core::convert::Into<crate::unity_engine::ui::aspectratiofitter::AspectRatioFitter_AspectMode>) -> () {
105        unsafe {
106            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107            ::unity::il2cpp_call!((::unity::module_base()+0x31795c0usize)as*mut u8,();
108(AspectRatioFitter)__receiver,(crate::unity_engine::ui::aspectratiofitter::AspectRatioFitter_AspectMode)::core::convert::Into::into(value))
109        }
110    }
111    #[doc = "`get_aspectRatio()` overload"]
112    fn get_aspect_ratio(self) -> f32 {
113        unsafe {
114            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            ::unity::il2cpp_call!((::unity::module_base()+0x3179650usize)as*mut u8,f32;
116(AspectRatioFitter)__receiver)
117        }
118    }
119    #[doc = "`set_aspectRatio(f32)` overload"]
120    fn set_aspect_ratio(self, value: impl ::core::convert::Into<f32>) -> () {
121        unsafe {
122            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            ::unity::il2cpp_call!((::unity::module_base()+0x3179660usize)as*mut u8,();
124(AspectRatioFitter)__receiver,(f32)::core::convert::Into::into(value))
125        }
126    }
127    #[doc = "`get_rectTransform()` overload"]
128    fn get_rect_transform(self) -> crate::unity_engine::recttransform::RectTransform {
129        unsafe {
130            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
131            ::unity::il2cpp_call!((::unity::module_base()+0x31796f0usize)as*mut u8,crate::unity_engine::recttransform::RectTransform;
132(AspectRatioFitter)__receiver)
133        }
134    }
135    #[doc = "`.ctor()` overload"]
136    fn ctor(self) -> () {
137        unsafe {
138            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!((::unity::module_base()+0x31797b0usize)as*mut u8,();
140(AspectRatioFitter)__receiver)
141        }
142    }
143    #[doc = "`OnEnable()` overload"]
144    fn on_enable(self) -> () {
145        unsafe {
146            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            {
148                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
149                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
150                    panic!(
151                        "unity: virtual slot {}
152 out of range (vtable len {}
153) on the runtime class behind {}
154 (method `{}
155`)",
156                        5usize,
157                        __vt.len(),
158                        <AspectRatioFitter as ::unity::ClassIdentity>::NAME,
159                        "OnEnable",
160                    )
161                });
162                let __inner: extern "C" fn(AspectRatioFitter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
163                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
164                __inner(__receiver, __mi)
165            }
166        }
167    }
168    #[doc = "`Start()` overload"]
169    fn start(self) -> () {
170        unsafe {
171            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            {
173                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
174                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
175                    panic!(
176                        "unity: virtual slot {}
177 out of range (vtable len {}
178) on the runtime class behind {}
179 (method `{}
180`)",
181                        6usize,
182                        __vt.len(),
183                        <AspectRatioFitter as ::unity::ClassIdentity>::NAME,
184                        "Start",
185                    )
186                });
187                let __inner: extern "C" fn(AspectRatioFitter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
188                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
189                __inner(__receiver, __mi)
190            }
191        }
192    }
193    #[doc = "`OnDisable()` overload"]
194    fn on_disable(self) -> () {
195        unsafe {
196            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            {
198                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
199                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
200                    panic!(
201                        "unity: virtual slot {}
202 out of range (vtable len {}
203) on the runtime class behind {}
204 (method `{}
205`)",
206                        7usize,
207                        __vt.len(),
208                        <AspectRatioFitter as ::unity::ClassIdentity>::NAME,
209                        "OnDisable",
210                    )
211                });
212                let __inner: extern "C" fn(AspectRatioFitter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
213                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
214                __inner(__receiver, __mi)
215            }
216        }
217    }
218    #[doc = "`OnTransformParentChanged()` overload"]
219    fn on_transform_parent_changed(self) -> () {
220        unsafe {
221            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222            {
223                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
224                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
225                    panic!(
226                        "unity: virtual slot {}
227 out of range (vtable len {}
228) on the runtime class behind {}
229 (method `{}
230`)",
231                        12usize,
232                        __vt.len(),
233                        <AspectRatioFitter as ::unity::ClassIdentity>::NAME,
234                        "OnTransformParentChanged",
235                    )
236                });
237                let __inner: extern "C" fn(AspectRatioFitter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
238                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
239                __inner(__receiver, __mi)
240            }
241        }
242    }
243    #[doc = "`Update()` overload"]
244    fn update(self) -> () {
245        unsafe {
246            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247            {
248                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
249                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
250                    panic!(
251                        "unity: virtual slot {}
252 out of range (vtable len {}
253) on the runtime class behind {}
254 (method `{}
255`)",
256                        19usize,
257                        __vt.len(),
258                        <AspectRatioFitter as ::unity::ClassIdentity>::NAME,
259                        "Update",
260                    )
261                });
262                let __inner: extern "C" fn(AspectRatioFitter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
263                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
264                __inner(__receiver, __mi)
265            }
266        }
267    }
268    #[doc = "`OnRectTransformDimensionsChange()` overload"]
269    fn on_rect_transform_dimensions_change(self) -> () {
270        unsafe {
271            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
272            {
273                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
274                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
275                    panic!(
276                        "unity: virtual slot {}
277 out of range (vtable len {}
278) on the runtime class behind {}
279 (method `{}
280`)",
281                        10usize,
282                        __vt.len(),
283                        <AspectRatioFitter as ::unity::ClassIdentity>::NAME,
284                        "OnRectTransformDimensionsChange",
285                    )
286                });
287                let __inner: extern "C" fn(AspectRatioFitter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
288                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
289                __inner(__receiver, __mi)
290            }
291        }
292    }
293    #[doc = "`UpdateRect()` overload"]
294    fn update_rect(self) -> () {
295        unsafe {
296            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297            ::unity::il2cpp_call!((::unity::module_base()+0x3179b40usize)as*mut u8,();
298(AspectRatioFitter)__receiver)
299        }
300    }
301    #[doc = "`GetSizeDeltaToProduceSize(f32, i32)` overload"]
302    fn get_size_delta_to_produce_size(self, size: impl ::core::convert::Into<f32>, axis: impl ::core::convert::Into<i32>) -> f32 {
303        unsafe {
304            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305            ::unity::il2cpp_call!((::unity::module_base()+0x3179f80usize)as*mut u8,f32;
306(AspectRatioFitter)__receiver,(f32)::core::convert::Into::into(size),(i32)::core::convert::Into::into(axis))
307        }
308    }
309    #[doc = "`GetParentSize()` overload"]
310    fn get_parent_size(self) -> crate::unity_engine::vector2::Vector2 {
311        unsafe {
312            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313            ::unity::il2cpp_call!((::unity::module_base()+0x3179e70usize)as*mut u8,crate::unity_engine::vector2::Vector2;
314(AspectRatioFitter)__receiver)
315        }
316    }
317    #[doc = "`SetLayoutHorizontal()` overload"]
318    fn set_layout_horizontal(self) -> () {
319        unsafe {
320            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
321            {
322                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
323                let __vi = *__vt.get(20usize).unwrap_or_else(|| {
324                    panic!(
325                        "unity: virtual slot {}
326 out of range (vtable len {}
327) on the runtime class behind {}
328 (method `{}
329`)",
330                        20usize,
331                        __vt.len(),
332                        <AspectRatioFitter as ::unity::ClassIdentity>::NAME,
333                        "SetLayoutHorizontal",
334                    )
335                });
336                let __inner: extern "C" fn(AspectRatioFitter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
337                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
338                __inner(__receiver, __mi)
339            }
340        }
341    }
342    #[doc = "`SetLayoutVertical()` overload"]
343    fn set_layout_vertical(self) -> () {
344        unsafe {
345            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
346            {
347                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
348                let __vi = *__vt.get(21usize).unwrap_or_else(|| {
349                    panic!(
350                        "unity: virtual slot {}
351 out of range (vtable len {}
352) on the runtime class behind {}
353 (method `{}
354`)",
355                        21usize,
356                        __vt.len(),
357                        <AspectRatioFitter as ::unity::ClassIdentity>::NAME,
358                        "SetLayoutVertical",
359                    )
360                });
361                let __inner: extern "C" fn(AspectRatioFitter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
362                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
363                __inner(__receiver, __mi)
364            }
365        }
366    }
367    #[doc = "`SetDirty()` overload"]
368    fn set_dirty(self) -> () {
369        unsafe {
370            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
371            ::unity::il2cpp_call!((::unity::module_base()+0x3179640usize)as*mut u8,();
372(AspectRatioFitter)__receiver)
373        }
374    }
375    #[doc = "`IsComponentValidOnObject()` overload"]
376    fn is_component_valid_on_object(self) -> bool {
377        unsafe {
378            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379            ::unity::il2cpp_call!((::unity::module_base()+0x31798c0usize)as*mut u8,bool;
380(AspectRatioFitter)__receiver)
381        }
382    }
383    #[doc = "`IsAspectModeValid()` overload"]
384    fn is_aspect_mode_valid(self) -> bool {
385        unsafe {
386            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
387            ::unity::il2cpp_call!((::unity::module_base()+0x31799b0usize)as*mut u8,bool;
388(AspectRatioFitter)__receiver)
389        }
390    }
391    #[doc = "`DoesParentExists()` overload"]
392    fn does_parent_exists(self) -> bool {
393        unsafe {
394            let __receiver = <AspectRatioFitter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395            ::unity::il2cpp_call!((::unity::module_base()+0x317a050usize)as*mut u8,bool;
396(AspectRatioFitter)__receiver)
397        }
398    }
399}
400
401#[cfg(feature = "unity_engine-ui-aspectratiofitter")]
402impl<__T: IAspectRatioFitter> IAspectRatioFitterMethods for __T {}
403
404#[cfg(feature = "unity_engine-ui-aspectratiofitter")]
405impl AspectRatioFitter {
406    pub fn get_aspect_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
408    }
409
410    pub fn set_aspect_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
412    }
413
414    pub fn get_aspect_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
416    }
417
418    pub fn set_aspect_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
420    }
421
422    pub fn get_rect_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
424    }
425
426    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
428    }
429
430    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
431        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
432    }
433
434    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
436    }
437
438    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
440    }
441
442    pub fn on_transform_parent_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
444    }
445
446    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
448    }
449
450    pub fn on_rect_transform_dimensions_change_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
452    }
453
454    pub fn update_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
456    }
457
458    pub fn get_size_delta_to_produce_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
460    }
461
462    pub fn get_parent_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
464    }
465
466    pub fn set_layout_horizontal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
468    }
469
470    pub fn set_layout_vertical_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
472    }
473
474    pub fn set_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
476    }
477
478    pub fn is_component_valid_on_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
480    }
481
482    pub fn is_aspect_mode_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
484    }
485
486    pub fn does_parent_exists_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
488    }
489}
490
491#[cfg(feature = "unity_engine-ui-aspectratiofitter")]
492impl AspectRatioFitter {
493    #[doc = "Direct (non-virtual) call to `AspectRatioFitter`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
494    pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
495        let __mi = Self::on_enable_method_info();
496        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
497        __inner(this.into(), ::core::option::Option::None)
498    }
499
500    #[doc = "Direct (non-virtual) call to `AspectRatioFitter`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
501    pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
502        let __mi = Self::start_method_info();
503        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
504        __inner(this.into(), ::core::option::Option::None)
505    }
506
507    #[doc = "Direct (non-virtual) call to `AspectRatioFitter`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
508    pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
509        let __mi = Self::on_disable_method_info();
510        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
511        __inner(this.into(), ::core::option::Option::None)
512    }
513
514    #[doc = "Direct (non-virtual) call to `AspectRatioFitter`'s own `OnTransformParentChanged`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
515    pub unsafe fn on_transform_parent_changed(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
516        let __mi = Self::on_transform_parent_changed_method_info();
517        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
518        __inner(this.into(), ::core::option::Option::None)
519    }
520
521    #[doc = "Direct (non-virtual) call to `AspectRatioFitter`'s own `Update`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
522    pub unsafe fn update(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
523        let __mi = Self::update_method_info();
524        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
525        __inner(this.into(), ::core::option::Option::None)
526    }
527
528    #[doc = "Direct (non-virtual) call to `AspectRatioFitter`'s own `OnRectTransformDimensionsChange`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
529    pub unsafe fn on_rect_transform_dimensions_change(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
530        let __mi = Self::on_rect_transform_dimensions_change_method_info();
531        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
532        __inner(this.into(), ::core::option::Option::None)
533    }
534
535    #[doc = "Direct (non-virtual) call to `AspectRatioFitter`'s own `SetLayoutHorizontal`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
536    pub unsafe fn set_layout_horizontal(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
537        let __mi = Self::set_layout_horizontal_method_info();
538        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
539        __inner(this.into(), ::core::option::Option::None)
540    }
541
542    #[doc = "Direct (non-virtual) call to `AspectRatioFitter`'s own `SetLayoutVertical`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
543    pub unsafe fn set_layout_vertical(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
544        let __mi = Self::set_layout_vertical_method_info();
545        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
546        __inner(this.into(), ::core::option::Option::None)
547    }
548}
549
550#[cfg(feature = "unity_engine-ui-aspectratiofitter")]
551impl AspectRatioFitter {
552    #[doc = "`.ctor()` — no args"]
553    pub fn new() -> Self {
554        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
555            panic!(
556                "{}
557::{}
558 failed to instantiate",
559                ::core::stringify!(AspectRatioFitter),
560                ::core::stringify!(new),
561            )
562        });
563        <Self as IAspectRatioFitterMethods>::ctor(this);
564        this
565    }
566}
567
568#[cfg(feature = "unity_engine-ui-aspectratiofitter")]
569#[doc(hidden)]
570pub mod prelude {
571    pub use super::{AspectRatioFitter, AspectRatioFitter_AspectMode, IAspectRatioFitter, IAspectRatioFitterMethods};
572    #[cfg(feature = "system-object")]
573    pub use crate::system::object::IObjectMethods;
574    #[cfg(feature = "system-enum")]
575    pub use crate::system::r#enum::IEnumMethods;
576    #[cfg(feature = "system-valuetype")]
577    pub use crate::system::valuetype::IValueTypeMethods;
578    #[cfg(feature = "unity_engine-behaviour")]
579    pub use crate::unity_engine::behaviour::IBehaviourMethods;
580    #[cfg(feature = "unity_engine-component")]
581    pub use crate::unity_engine::component::IComponentMethods;
582    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
583    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
584    #[cfg(feature = "unity_engine-monobehaviour")]
585    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
586    #[cfg(feature = "unity_engine-object_2")]
587    pub use crate::unity_engine::object_2::IObject_2Methods;
588    pub use crate::{
589        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
590        unity_engine::{
591            behaviour::IBehaviour, component::IComponent, event_systems::uibehaviour::IUIBehaviour, monobehaviour::IMonoBehaviour,
592            object_2::IObject_2,
593        },
594    };
595}