Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-ui-debuguihandlergroup-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/debuguihandlergroup/DebugUIHandlerGroup.md"))]
20    #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerGroup")]
21    #[parent(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)]
22    pub struct DebugUIHandlerGroup {
23        #[offset(88)]
24        #[rename(name = "nameLabel")]
25        pub name_label: crate::unity_engine::ui::text::Text,
26        #[offset(96)]
27        #[rename(name = "header")]
28        pub header: crate::unity_engine::transform::Transform,
29        #[offset(104)]
30        #[rename(name = "m_Field")]
31        pub m_field: crate::unity_engine::rendering::debugui::DebugUI_Container,
32        #[offset(112)]
33        #[rename(name = "m_Container")]
34        pub m_container: crate::unity_engine::rendering::ui::debuguihandlercontainer::DebugUIHandlerContainer,
35    }
36}
37
38#[cfg(feature = "unity_engine-rendering-ui-debuguihandlergroup-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-rendering-ui-debuguihandlergroup")]
42pub trait IDebugUIHandlerGroupMethods: IDebugUIHandlerGroup {
43    #[doc = "`SetWidget(crate::unity_engine::rendering::debugui::DebugUI_Widget)` overload"]
44    fn set_widget(self, widget: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Widget>) -> () {
45        unsafe {
46            let __receiver = <DebugUIHandlerGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            {
48                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
49                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
50                    panic!(
51                        "unity: virtual slot {}
52 out of range (vtable len {}
53) on the runtime class behind {}
54 (method `{}
55`)",
56                        5usize,
57                        __vt.len(),
58                        <DebugUIHandlerGroup as ::unity::ClassIdentity>::NAME,
59                        "SetWidget",
60                    )
61                });
62                let __inner: extern "C" fn(
63                    DebugUIHandlerGroup,
64                    crate::unity_engine::rendering::debugui::DebugUI_Widget,
65                    ::unity::OptionalMethod,
66                ) -> () = ::core::mem::transmute(__vi.method_ptr);
67                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68                __inner(__receiver, ::core::convert::Into::into(widget), __mi)
69            }
70        }
71    }
72    #[doc = "`OnSelection(bool, crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
73    fn on_selection(
74        self,
75        from_next: impl ::core::convert::Into<bool>,
76        previous: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
77    ) -> bool {
78        unsafe {
79            let __receiver = <DebugUIHandlerGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            {
81                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
83                    panic!(
84                        "unity: virtual slot {}
85 out of range (vtable len {}
86) on the runtime class behind {}
87 (method `{}
88`)",
89                        6usize,
90                        __vt.len(),
91                        <DebugUIHandlerGroup as ::unity::ClassIdentity>::NAME,
92                        "OnSelection",
93                    )
94                });
95                let __inner: extern "C" fn(
96                    DebugUIHandlerGroup,
97                    bool,
98                    crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
99                    ::unity::OptionalMethod,
100                ) -> bool = ::core::mem::transmute(__vi.method_ptr);
101                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102                __inner(
103                    __receiver,
104                    ::core::convert::Into::into(from_next),
105                    ::core::convert::Into::into(previous),
106                    __mi,
107                )
108            }
109        }
110    }
111    #[doc = "`Next()` overload"]
112    fn next(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
113        unsafe {
114            let __receiver = <DebugUIHandlerGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115            {
116                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
117                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
118                    panic!(
119                        "unity: virtual slot {}
120 out of range (vtable len {}
121) on the runtime class behind {}
122 (method `{}
123`)",
124                        12usize,
125                        __vt.len(),
126                        <DebugUIHandlerGroup as ::unity::ClassIdentity>::NAME,
127                        "Next",
128                    )
129                });
130                let __inner: extern "C" fn(
131                    DebugUIHandlerGroup,
132                    ::unity::OptionalMethod,
133                ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__vi.method_ptr);
134                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
135                __inner(__receiver, __mi)
136            }
137        }
138    }
139    #[doc = "`.ctor()` overload"]
140    fn ctor(self) -> () {
141        unsafe {
142            let __receiver = <DebugUIHandlerGroup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x30a3bc0usize)as*mut u8,();
144(DebugUIHandlerGroup)__receiver)
145        }
146    }
147}
148
149#[cfg(feature = "unity_engine-rendering-ui-debuguihandlergroup")]
150impl<__T: IDebugUIHandlerGroup> IDebugUIHandlerGroupMethods for __T {}
151
152#[cfg(feature = "unity_engine-rendering-ui-debuguihandlergroup")]
153impl DebugUIHandlerGroup {
154    pub fn set_widget_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156    }
157
158    pub fn on_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160    }
161
162    pub fn next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
164    }
165
166    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
168    }
169}
170
171#[cfg(feature = "unity_engine-rendering-ui-debuguihandlergroup")]
172impl DebugUIHandlerGroup {
173    #[doc = "Direct (non-virtual) call to `DebugUIHandlerGroup`'s own `SetWidget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
174    pub unsafe fn set_widget(
175        this: impl ::core::convert::Into<::unity::IlInstance>,
176        widget: crate::unity_engine::rendering::debugui::DebugUI_Widget,
177    ) -> () {
178        let __mi = Self::set_widget_method_info();
179        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::debugui::DebugUI_Widget, ::unity::OptionalMethod) -> () =
180            ::core::mem::transmute(__mi.method_ptr);
181        __inner(this.into(), widget, ::core::option::Option::None)
182    }
183
184    #[doc = "Direct (non-virtual) call to `DebugUIHandlerGroup`'s own `OnSelection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
185    pub unsafe fn on_selection(
186        this: impl ::core::convert::Into<::unity::IlInstance>,
187        from_next: bool,
188        previous: crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
189    ) -> bool {
190        let __mi = Self::on_selection_method_info();
191        let __inner: extern "C" fn(
192            ::unity::IlInstance,
193            bool,
194            crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
195            ::unity::OptionalMethod,
196        ) -> bool = ::core::mem::transmute(__mi.method_ptr);
197        __inner(this.into(), from_next, previous, ::core::option::Option::None)
198    }
199
200    #[doc = "Direct (non-virtual) call to `DebugUIHandlerGroup`'s own `Next`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
201    pub unsafe fn next(
202        this: impl ::core::convert::Into<::unity::IlInstance>,
203    ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
204        let __mi = Self::next_method_info();
205        let __inner: extern "C" fn(
206            ::unity::IlInstance,
207            ::unity::OptionalMethod,
208        ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__mi.method_ptr);
209        __inner(this.into(), ::core::option::Option::None)
210    }
211}
212
213#[cfg(feature = "unity_engine-rendering-ui-debuguihandlergroup")]
214impl DebugUIHandlerGroup {
215    #[doc = "`.ctor()` — no args"]
216    pub fn new() -> Self {
217        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
218            panic!(
219                "{}
220::{}
221 failed to instantiate",
222                ::core::stringify!(DebugUIHandlerGroup),
223                ::core::stringify!(new),
224            )
225        });
226        <Self as IDebugUIHandlerGroupMethods>::ctor(this);
227        this
228    }
229}
230
231#[cfg(feature = "unity_engine-rendering-ui-debuguihandlergroup")]
232#[doc(hidden)]
233pub mod prelude {
234    pub use super::{DebugUIHandlerGroup, IDebugUIHandlerGroup, IDebugUIHandlerGroupMethods};
235    #[cfg(feature = "system-object")]
236    pub use crate::system::object::IObjectMethods;
237    #[cfg(feature = "unity_engine-behaviour")]
238    pub use crate::unity_engine::behaviour::IBehaviourMethods;
239    #[cfg(feature = "unity_engine-component")]
240    pub use crate::unity_engine::component::IComponentMethods;
241    #[cfg(feature = "unity_engine-monobehaviour")]
242    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
243    #[cfg(feature = "unity_engine-object_2")]
244    pub use crate::unity_engine::object_2::IObject_2Methods;
245    #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
246    pub use crate::unity_engine::rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidgetMethods;
247    pub use crate::{
248        system::object::IObject,
249        unity_engine::{
250            behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2,
251            rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidget,
252        },
253    };
254}