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