Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15            rendering::ui::debuguihandlerwidget::{DebugUIHandlerWidget, IDebugUIHandlerWidget},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ui/debuguihandlerfoldout/DebugUIHandlerFoldout.md"))]
20    #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerFoldout")]
21    #[parent(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)]
22    pub struct DebugUIHandlerFoldout {
23        #[offset(88)]
24        #[rename(name = "nameLabel")]
25        pub name_label: crate::unity_engine::ui::text::Text,
26        #[offset(96)]
27        #[rename(name = "valueToggle")]
28        pub value_toggle: crate::unity_engine::rendering::ui::uifoldout::UIFoldout,
29        #[offset(104)]
30        #[rename(name = "m_Field")]
31        pub m_field: crate::unity_engine::rendering::debugui::DebugUI_Foldout,
32        #[offset(112)]
33        #[rename(name = "m_Container")]
34        pub m_container: crate::unity_engine::rendering::ui::debuguihandlercontainer::DebugUIHandlerContainer,
35        #[static_field]
36        #[rename(name = "xDecal")]
37        pub x_decal: f32,
38        #[static_field]
39        #[rename(name = "xDecalInit")]
40        pub x_decal_init: f32,
41    }
42}
43
44#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout-types")]
45pub use __types::*;
46
47#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout")]
48pub trait IDebugUIHandlerFoldoutMethods: IDebugUIHandlerFoldout {
49    #[doc = "`SetWidget(crate::unity_engine::rendering::debugui::DebugUI_Widget)` overload"]
50    fn set_widget(self, widget: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Widget>) -> () {
51        unsafe {
52            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            {
54                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
55                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
56                    panic!(
57                        "unity: virtual slot {}
58 out of range (vtable len {}
59) on the runtime class behind {}
60 (method `{}
61`)",
62                        5usize,
63                        __vt.len(),
64                        <DebugUIHandlerFoldout as ::unity::ClassIdentity>::NAME,
65                        "SetWidget",
66                    )
67                });
68                let __inner: extern "C" fn(
69                    DebugUIHandlerFoldout,
70                    crate::unity_engine::rendering::debugui::DebugUI_Widget,
71                    ::unity::OptionalMethod,
72                ) -> () = ::core::mem::transmute(__vi.method_ptr);
73                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
74                __inner(__receiver, ::core::convert::Into::into(widget), __mi)
75            }
76        }
77    }
78    #[doc = "`OnSelection(bool, crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
79    fn on_selection(
80        self,
81        from_next: impl ::core::convert::Into<bool>,
82        previous: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
83    ) -> bool {
84        unsafe {
85            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            {
87                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
88                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
89                    panic!(
90                        "unity: virtual slot {}
91 out of range (vtable len {}
92) on the runtime class behind {}
93 (method `{}
94`)",
95                        6usize,
96                        __vt.len(),
97                        <DebugUIHandlerFoldout as ::unity::ClassIdentity>::NAME,
98                        "OnSelection",
99                    )
100                });
101                let __inner: extern "C" fn(
102                    DebugUIHandlerFoldout,
103                    bool,
104                    crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
105                    ::unity::OptionalMethod,
106                ) -> bool = ::core::mem::transmute(__vi.method_ptr);
107                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
108                __inner(
109                    __receiver,
110                    ::core::convert::Into::into(from_next),
111                    ::core::convert::Into::into(previous),
112                    __mi,
113                )
114            }
115        }
116    }
117    #[doc = "`OnDeselection()` overload"]
118    fn on_deselection(self) -> () {
119        unsafe {
120            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121            {
122                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
123                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
124                    panic!(
125                        "unity: virtual slot {}
126 out of range (vtable len {}
127) on the runtime class behind {}
128 (method `{}
129`)",
130                        7usize,
131                        __vt.len(),
132                        <DebugUIHandlerFoldout as ::unity::ClassIdentity>::NAME,
133                        "OnDeselection",
134                    )
135                });
136                let __inner: extern "C" fn(DebugUIHandlerFoldout, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
137                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
138                __inner(__receiver, __mi)
139            }
140        }
141    }
142    #[doc = "`OnIncrement(bool)` overload"]
143    fn on_increment(self, fast: impl ::core::convert::Into<bool>) -> () {
144        unsafe {
145            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146            {
147                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
148                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
149                    panic!(
150                        "unity: virtual slot {}
151 out of range (vtable len {}
152) on the runtime class behind {}
153 (method `{}
154`)",
155                        9usize,
156                        __vt.len(),
157                        <DebugUIHandlerFoldout as ::unity::ClassIdentity>::NAME,
158                        "OnIncrement",
159                    )
160                });
161                let __inner: extern "C" fn(DebugUIHandlerFoldout, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
162                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
163                __inner(__receiver, ::core::convert::Into::into(fast), __mi)
164            }
165        }
166    }
167    #[doc = "`OnDecrement(bool)` overload"]
168    fn on_decrement(self, fast: impl ::core::convert::Into<bool>) -> () {
169        unsafe {
170            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            {
172                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
173                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
174                    panic!(
175                        "unity: virtual slot {}
176 out of range (vtable len {}
177) on the runtime class behind {}
178 (method `{}
179`)",
180                        10usize,
181                        __vt.len(),
182                        <DebugUIHandlerFoldout as ::unity::ClassIdentity>::NAME,
183                        "OnDecrement",
184                    )
185                });
186                let __inner: extern "C" fn(DebugUIHandlerFoldout, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
187                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
188                __inner(__receiver, ::core::convert::Into::into(fast), __mi)
189            }
190        }
191    }
192    #[doc = "`OnAction()` overload"]
193    fn on_action(self) -> () {
194        unsafe {
195            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196            {
197                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
198                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
199                    panic!(
200                        "unity: virtual slot {}
201 out of range (vtable len {}
202) on the runtime class behind {}
203 (method `{}
204`)",
205                        8usize,
206                        __vt.len(),
207                        <DebugUIHandlerFoldout as ::unity::ClassIdentity>::NAME,
208                        "OnAction",
209                    )
210                });
211                let __inner: extern "C" fn(DebugUIHandlerFoldout, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
212                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
213                __inner(__receiver, __mi)
214            }
215        }
216    }
217    #[doc = "`UpdateValue()` overload"]
218    fn update_value(self) -> () {
219        unsafe {
220            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x30a3410usize)as*mut u8,();
222(DebugUIHandlerFoldout)__receiver)
223        }
224    }
225    #[doc = "`Next()` overload"]
226    fn next(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
227        unsafe {
228            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            {
230                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
231                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
232                    panic!(
233                        "unity: virtual slot {}
234 out of range (vtable len {}
235) on the runtime class behind {}
236 (method `{}
237`)",
238                        12usize,
239                        __vt.len(),
240                        <DebugUIHandlerFoldout as ::unity::ClassIdentity>::NAME,
241                        "Next",
242                    )
243                });
244                let __inner: extern "C" fn(
245                    DebugUIHandlerFoldout,
246                    ::unity::OptionalMethod,
247                ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__vi.method_ptr);
248                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
249                __inner(__receiver, __mi)
250            }
251        }
252    }
253    #[doc = "`.ctor()` overload"]
254    fn ctor(self) -> () {
255        unsafe {
256            let __receiver = <DebugUIHandlerFoldout as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
257            ::unity::il2cpp_call!((::unity::module_base()+0x30a37b0usize)as*mut u8,();
258(DebugUIHandlerFoldout)__receiver)
259        }
260    }
261}
262
263#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout")]
264impl<__T: IDebugUIHandlerFoldout> IDebugUIHandlerFoldoutMethods for __T {}
265
266#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout")]
267impl DebugUIHandlerFoldout {
268    pub fn set_widget_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
270    }
271
272    pub fn on_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
274    }
275
276    pub fn on_deselection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
278    }
279
280    pub fn on_increment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
282    }
283
284    pub fn on_decrement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
286    }
287
288    pub fn on_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
290    }
291
292    pub fn update_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
294    }
295
296    pub fn next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
298    }
299
300    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
302    }
303}
304
305#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout")]
306impl DebugUIHandlerFoldout {
307    #[doc = "Direct (non-virtual) call to `DebugUIHandlerFoldout`'s own `SetWidget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308    pub unsafe fn set_widget(
309        this: impl ::core::convert::Into<::unity::IlInstance>,
310        widget: crate::unity_engine::rendering::debugui::DebugUI_Widget,
311    ) -> () {
312        let __mi = Self::set_widget_method_info();
313        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::debugui::DebugUI_Widget, ::unity::OptionalMethod) -> () =
314            ::core::mem::transmute(__mi.method_ptr);
315        __inner(this.into(), widget, ::core::option::Option::None)
316    }
317
318    #[doc = "Direct (non-virtual) call to `DebugUIHandlerFoldout`'s own `OnSelection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
319    pub unsafe fn on_selection(
320        this: impl ::core::convert::Into<::unity::IlInstance>,
321        from_next: bool,
322        previous: crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
323    ) -> bool {
324        let __mi = Self::on_selection_method_info();
325        let __inner: extern "C" fn(
326            ::unity::IlInstance,
327            bool,
328            crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
329            ::unity::OptionalMethod,
330        ) -> bool = ::core::mem::transmute(__mi.method_ptr);
331        __inner(this.into(), from_next, previous, ::core::option::Option::None)
332    }
333
334    #[doc = "Direct (non-virtual) call to `DebugUIHandlerFoldout`'s own `OnDeselection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
335    pub unsafe fn on_deselection(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
336        let __mi = Self::on_deselection_method_info();
337        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
338        __inner(this.into(), ::core::option::Option::None)
339    }
340
341    #[doc = "Direct (non-virtual) call to `DebugUIHandlerFoldout`'s own `OnIncrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
342    pub unsafe fn on_increment(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
343        let __mi = Self::on_increment_method_info();
344        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
345        __inner(this.into(), fast, ::core::option::Option::None)
346    }
347
348    #[doc = "Direct (non-virtual) call to `DebugUIHandlerFoldout`'s own `OnDecrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
349    pub unsafe fn on_decrement(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
350        let __mi = Self::on_decrement_method_info();
351        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
352        __inner(this.into(), fast, ::core::option::Option::None)
353    }
354
355    #[doc = "Direct (non-virtual) call to `DebugUIHandlerFoldout`'s own `OnAction`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
356    pub unsafe fn on_action(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
357        let __mi = Self::on_action_method_info();
358        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
359        __inner(this.into(), ::core::option::Option::None)
360    }
361
362    #[doc = "Direct (non-virtual) call to `DebugUIHandlerFoldout`'s own `Next`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
363    pub unsafe fn next(
364        this: impl ::core::convert::Into<::unity::IlInstance>,
365    ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
366        let __mi = Self::next_method_info();
367        let __inner: extern "C" fn(
368            ::unity::IlInstance,
369            ::unity::OptionalMethod,
370        ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__mi.method_ptr);
371        __inner(this.into(), ::core::option::Option::None)
372    }
373}
374
375#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout")]
376impl DebugUIHandlerFoldout {
377    #[doc = "`.ctor()` — no args"]
378    pub fn new() -> Self {
379        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
380            panic!(
381                "{}
382::{}
383 failed to instantiate",
384                ::core::stringify!(DebugUIHandlerFoldout),
385                ::core::stringify!(new),
386            )
387        });
388        <Self as IDebugUIHandlerFoldoutMethods>::ctor(this);
389        this
390    }
391}
392
393#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout")]
394#[doc(hidden)]
395pub mod prelude {
396    pub use super::{DebugUIHandlerFoldout, IDebugUIHandlerFoldout, IDebugUIHandlerFoldoutMethods};
397    #[cfg(feature = "system-object")]
398    pub use crate::system::object::IObjectMethods;
399    #[cfg(feature = "unity_engine-behaviour")]
400    pub use crate::unity_engine::behaviour::IBehaviourMethods;
401    #[cfg(feature = "unity_engine-component")]
402    pub use crate::unity_engine::component::IComponentMethods;
403    #[cfg(feature = "unity_engine-monobehaviour")]
404    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
405    #[cfg(feature = "unity_engine-object_2")]
406    pub use crate::unity_engine::object_2::IObject_2Methods;
407    #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
408    pub use crate::unity_engine::rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidgetMethods;
409    pub use crate::{
410        system::object::IObject,
411        unity_engine::{
412            behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2,
413            rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidget,
414        },
415    };
416}