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