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