Skip to main content

engage/generated/unity_engine/rendering/ui/
uifoldout.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-ui-uifoldout-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16            ui::{
17                selectable::{ISelectable, Selectable},
18                toggle::{IToggle, Toggle},
19            },
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ui/uifoldout/UIFoldout.md"))]
24    #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "UIFoldout")]
25    #[parent(crate::unity_engine::ui::toggle::Toggle)]
26    pub struct UIFoldout {
27        #[offset(288)]
28        #[rename(name = "content")]
29        pub content: crate::unity_engine::gameobject::GameObject,
30        #[offset(296)]
31        #[rename(name = "arrowOpened")]
32        pub arrow_opened: crate::unity_engine::gameobject::GameObject,
33        #[offset(304)]
34        #[rename(name = "arrowClosed")]
35        pub arrow_closed: crate::unity_engine::gameobject::GameObject,
36    }
37}
38
39#[cfg(feature = "unity_engine-rendering-ui-uifoldout-types")]
40pub use __types::*;
41
42#[cfg(feature = "unity_engine-rendering-ui-uifoldout")]
43pub trait IUIFoldoutMethods: IUIFoldout {
44    #[doc = "`Start()` overload"]
45    fn start(self) -> () {
46        unsafe {
47            let __receiver = <UIFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            {
49                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
51                    panic!(
52                        "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57                        6usize,
58                        __vt.len(),
59                        <UIFoldout as ::unity::ClassIdentity>::NAME,
60                        "Start",
61                    )
62                });
63                let __inner: extern "C" fn(UIFoldout, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
64                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65                __inner(__receiver, __mi)
66            }
67        }
68    }
69    #[doc = "`OnValidate()` overload"]
70    fn on_validate(self) -> () {
71        unsafe {
72            let __receiver = <UIFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73            ::unity::il2cpp_call!((::unity::module_base()+0x33e4570usize)as*mut u8,();
74(UIFoldout)__receiver)
75        }
76    }
77    #[doc = "`SetState(bool)` overload"]
78    fn set_state(self, state: impl ::core::convert::Into<bool>) -> () {
79        unsafe {
80            let __receiver = <UIFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x33e4560usize)as*mut u8,();
82(UIFoldout)__receiver,(bool)::core::convert::Into::into(state))
83        }
84    }
85    #[doc = "`SetState(bool, bool)` overload"]
86    fn set_state_2(self, state: impl ::core::convert::Into<bool>, rebuild_layout: impl ::core::convert::Into<bool>) -> () {
87        unsafe {
88            let __receiver = <UIFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x33e4580usize)as*mut u8,();
90(UIFoldout)__receiver,(bool)::core::convert::Into::into(state),(bool)::core::convert::Into::into(rebuild_layout))
91        }
92    }
93    #[doc = "`.ctor()` overload"]
94    fn ctor(self) -> () {
95        unsafe {
96            let __receiver = <UIFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x33e4770usize)as*mut u8,();
98(UIFoldout)__receiver)
99        }
100    }
101}
102
103#[cfg(feature = "unity_engine-rendering-ui-uifoldout")]
104impl<__T: IUIFoldout> IUIFoldoutMethods for __T {}
105
106#[cfg(feature = "unity_engine-rendering-ui-uifoldout")]
107impl UIFoldout {
108    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110    }
111
112    pub fn on_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114    }
115
116    pub fn set_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
118    }
119
120    pub fn set_state_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
122    }
123
124    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
126    }
127}
128
129#[cfg(feature = "unity_engine-rendering-ui-uifoldout")]
130impl UIFoldout {
131    #[doc = "Direct (non-virtual) call to `UIFoldout`'s own `Start`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
132    pub unsafe fn start(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
133        let __mi = Self::start_method_info();
134        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
135        __inner(this.into(), ::core::option::Option::None)
136    }
137}
138
139#[cfg(feature = "unity_engine-rendering-ui-uifoldout")]
140impl UIFoldout {
141    #[doc = "`.ctor()` — no args"]
142    pub fn new() -> Self {
143        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
144            panic!(
145                "{}
146::{}
147 failed to instantiate",
148                ::core::stringify!(UIFoldout),
149                ::core::stringify!(new),
150            )
151        });
152        <Self as IUIFoldoutMethods>::ctor(this);
153        this
154    }
155}
156
157#[cfg(feature = "unity_engine-rendering-ui-uifoldout")]
158#[doc(hidden)]
159pub mod prelude {
160    pub use super::{IUIFoldout, IUIFoldoutMethods, UIFoldout};
161    #[cfg(feature = "system-object")]
162    pub use crate::system::object::IObjectMethods;
163    #[cfg(feature = "unity_engine-behaviour")]
164    pub use crate::unity_engine::behaviour::IBehaviourMethods;
165    #[cfg(feature = "unity_engine-component")]
166    pub use crate::unity_engine::component::IComponentMethods;
167    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
168    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
169    #[cfg(feature = "unity_engine-monobehaviour")]
170    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
171    #[cfg(feature = "unity_engine-object_2")]
172    pub use crate::unity_engine::object_2::IObject_2Methods;
173    #[cfg(feature = "unity_engine-ui-selectable")]
174    pub use crate::unity_engine::ui::selectable::ISelectableMethods;
175    #[cfg(feature = "unity_engine-ui-toggle")]
176    pub use crate::unity_engine::ui::toggle::IToggleMethods;
177    pub use crate::{
178        system::object::IObject,
179        unity_engine::{
180            behaviour::IBehaviour,
181            component::IComponent,
182            event_systems::uibehaviour::IUIBehaviour,
183            monobehaviour::IMonoBehaviour,
184            object_2::IObject_2,
185            ui::{selectable::ISelectable, toggle::IToggle},
186        },
187    };
188}