1#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget-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 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ui/debuguihandlerwidget/DebugUIHandlerWidget.md"))]
19 #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerWidget")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct DebugUIHandlerWidget {
22 #[offset(24)]
23 #[rename(name = "colorDefault")]
24 pub color_default: crate::unity_engine::color::Color,
25 #[offset(40)]
26 #[rename(name = "colorSelected")]
27 pub color_selected: crate::unity_engine::color::Color,
28 #[offset(80)]
29 #[rename(name = "m_Widget")]
30 pub m_widget: crate::unity_engine::rendering::debugui::DebugUI_Widget,
31 }
32}
33
34#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget-types")]
35pub use __types::*;
36
37#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
38pub trait IDebugUIHandlerWidgetMethods: IDebugUIHandlerWidget {
39 #[doc = "`get_parentUIHandler()` overload"]
40 fn get_parent_ui_handler(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
41 unsafe {
42 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 ::unity::il2cpp_call!((::unity::module_base()+0x30a8e20usize)as*mut u8,crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget;
44(DebugUIHandlerWidget)__receiver)
45 }
46 }
47 #[doc = "`set_parentUIHandler(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
48 fn set_parent_ui_handler(
49 self,
50 value: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
51 ) -> () {
52 unsafe {
53 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x30a8e30usize)as*mut u8,();
55(DebugUIHandlerWidget)__receiver,(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)::core::convert::Into::into(value))
56 }
57 }
58 #[doc = "`get_previousUIHandler()` overload"]
59 fn get_previous_ui_handler(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
60 unsafe {
61 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x30a8e40usize)as*mut u8,crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget;
63(DebugUIHandlerWidget)__receiver)
64 }
65 }
66 #[doc = "`set_previousUIHandler(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
67 fn set_previous_ui_handler(
68 self,
69 value: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
70 ) -> () {
71 unsafe {
72 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x30a8e50usize)as*mut u8,();
74(DebugUIHandlerWidget)__receiver,(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)::core::convert::Into::into(value))
75 }
76 }
77 #[doc = "`get_nextUIHandler()` overload"]
78 fn get_next_ui_handler(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
79 unsafe {
80 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x30a8e60usize)as*mut u8,crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget;
82(DebugUIHandlerWidget)__receiver)
83 }
84 }
85 #[doc = "`set_nextUIHandler(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
86 fn set_next_ui_handler(
87 self,
88 value: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
89 ) -> () {
90 unsafe {
91 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x30a8e70usize)as*mut u8,();
93(DebugUIHandlerWidget)__receiver,(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)::core::convert::Into::into(value))
94 }
95 }
96 #[doc = "`OnEnable()` overload"]
97 fn on_enable(self) -> () {
98 unsafe {
99 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 {
101 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
103 panic!(
104 "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109 4usize,
110 __vt.len(),
111 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
112 "OnEnable",
113 )
114 });
115 let __inner: extern "C" fn(DebugUIHandlerWidget, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
116 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
117 __inner(__receiver, __mi)
118 }
119 }
120 }
121 #[doc = "`SetWidget(crate::unity_engine::rendering::debugui::DebugUI_Widget)` overload"]
122 fn set_widget(self, widget: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Widget>) -> () {
123 unsafe {
124 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 {
126 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
127 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
128 panic!(
129 "unity: virtual slot {}
130 out of range (vtable len {}
131) on the runtime class behind {}
132 (method `{}
133`)",
134 5usize,
135 __vt.len(),
136 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
137 "SetWidget",
138 )
139 });
140 let __inner: extern "C" fn(
141 DebugUIHandlerWidget,
142 crate::unity_engine::rendering::debugui::DebugUI_Widget,
143 ::unity::OptionalMethod,
144 ) -> () = ::core::mem::transmute(__vi.method_ptr);
145 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
146 __inner(__receiver, ::core::convert::Into::into(widget), __mi)
147 }
148 }
149 }
150 #[doc = "`GetWidget()` overload"]
151 fn get_widget(self) -> crate::unity_engine::rendering::debugui::DebugUI_Widget {
152 unsafe {
153 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x30a8ea0usize)as*mut u8,crate::unity_engine::rendering::debugui::DebugUI_Widget;
155(DebugUIHandlerWidget)__receiver)
156 }
157 }
158 fn cast_widget<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> M0 {
159 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
160 ::unity::lookup::method_info_on_class(<DebugUIHandlerWidget as ::unity::ClassIdentity>::class(), "CastWidget", 0)
161 });
162 #[allow(clippy::type_complexity)]
163 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
164 ::std::sync::OnceLock::new();
165 let _ = false;
166 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
167 ::core::result::Result::Ok(mi) => *mi,
168 ::core::result::Result::Err(e) => {
169 panic!(
170 "method lookup failed: {}
171::{}
172: {}
173",
174 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
175 "CastWidget",
176 e
177 )
178 },
179 };
180 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
181 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
182 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
183 let mut __guard = __cache.lock().unwrap();
184 *__guard
185 .entry(__key)
186 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
187 };
188 unsafe {
189 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 let __f: extern "C" fn(DebugUIHandlerWidget, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
191 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
192 __f(__receiver, ::core::option::Option::Some(__mi_opaque))
193 }
194 }
195 #[doc = "`OnSelection(bool, crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
196 fn on_selection(
197 self,
198 from_next: impl ::core::convert::Into<bool>,
199 previous: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
200 ) -> bool {
201 unsafe {
202 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 {
204 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
205 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
206 panic!(
207 "unity: virtual slot {}
208 out of range (vtable len {}
209) on the runtime class behind {}
210 (method `{}
211`)",
212 6usize,
213 __vt.len(),
214 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
215 "OnSelection",
216 )
217 });
218 let __inner: extern "C" fn(
219 DebugUIHandlerWidget,
220 bool,
221 crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
222 ::unity::OptionalMethod,
223 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
224 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
225 __inner(
226 __receiver,
227 ::core::convert::Into::into(from_next),
228 ::core::convert::Into::into(previous),
229 __mi,
230 )
231 }
232 }
233 }
234 #[doc = "`OnDeselection()` overload"]
235 fn on_deselection(self) -> () {
236 unsafe {
237 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238 {
239 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
240 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
241 panic!(
242 "unity: virtual slot {}
243 out of range (vtable len {}
244) on the runtime class behind {}
245 (method `{}
246`)",
247 7usize,
248 __vt.len(),
249 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
250 "OnDeselection",
251 )
252 });
253 let __inner: extern "C" fn(DebugUIHandlerWidget, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
254 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
255 __inner(__receiver, __mi)
256 }
257 }
258 }
259 #[doc = "`OnAction()` overload"]
260 fn on_action(self) -> () {
261 unsafe {
262 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 {
264 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
265 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
266 panic!(
267 "unity: virtual slot {}
268 out of range (vtable len {}
269) on the runtime class behind {}
270 (method `{}
271`)",
272 8usize,
273 __vt.len(),
274 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
275 "OnAction",
276 )
277 });
278 let __inner: extern "C" fn(DebugUIHandlerWidget, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
279 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
280 __inner(__receiver, __mi)
281 }
282 }
283 }
284 #[doc = "`OnIncrement(bool)` overload"]
285 fn on_increment(self, fast: impl ::core::convert::Into<bool>) -> () {
286 unsafe {
287 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
288 {
289 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
290 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
291 panic!(
292 "unity: virtual slot {}
293 out of range (vtable len {}
294) on the runtime class behind {}
295 (method `{}
296`)",
297 9usize,
298 __vt.len(),
299 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
300 "OnIncrement",
301 )
302 });
303 let __inner: extern "C" fn(DebugUIHandlerWidget, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
304 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
305 __inner(__receiver, ::core::convert::Into::into(fast), __mi)
306 }
307 }
308 }
309 #[doc = "`OnDecrement(bool)` overload"]
310 fn on_decrement(self, fast: impl ::core::convert::Into<bool>) -> () {
311 unsafe {
312 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
313 {
314 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
315 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
316 panic!(
317 "unity: virtual slot {}
318 out of range (vtable len {}
319) on the runtime class behind {}
320 (method `{}
321`)",
322 10usize,
323 __vt.len(),
324 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
325 "OnDecrement",
326 )
327 });
328 let __inner: extern "C" fn(DebugUIHandlerWidget, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
329 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
330 __inner(__receiver, ::core::convert::Into::into(fast), __mi)
331 }
332 }
333 }
334 #[doc = "`Previous()` overload"]
335 fn previous(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
336 unsafe {
337 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
338 {
339 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
340 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
341 panic!(
342 "unity: virtual slot {}
343 out of range (vtable len {}
344) on the runtime class behind {}
345 (method `{}
346`)",
347 11usize,
348 __vt.len(),
349 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
350 "Previous",
351 )
352 });
353 let __inner: extern "C" fn(
354 DebugUIHandlerWidget,
355 ::unity::OptionalMethod,
356 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__vi.method_ptr);
357 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
358 __inner(__receiver, __mi)
359 }
360 }
361 }
362 #[doc = "`Next()` overload"]
363 fn next(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
364 unsafe {
365 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
366 {
367 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
368 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
369 panic!(
370 "unity: virtual slot {}
371 out of range (vtable len {}
372) on the runtime class behind {}
373 (method `{}
374`)",
375 12usize,
376 __vt.len(),
377 <DebugUIHandlerWidget as ::unity::ClassIdentity>::NAME,
378 "Next",
379 )
380 });
381 let __inner: extern "C" fn(
382 DebugUIHandlerWidget,
383 ::unity::OptionalMethod,
384 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__vi.method_ptr);
385 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
386 __inner(__receiver, __mi)
387 }
388 }
389 }
390 #[doc = "`.ctor()` overload"]
391 fn ctor(self) -> () {
392 unsafe {
393 let __receiver = <DebugUIHandlerWidget as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
394 ::unity::il2cpp_call!((::unity::module_base()+0x30a3860usize)as*mut u8,();
395(DebugUIHandlerWidget)__receiver)
396 }
397 }
398}
399
400#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
401impl<__T: IDebugUIHandlerWidget> IDebugUIHandlerWidgetMethods for __T {}
402
403#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
404impl DebugUIHandlerWidget {
405 pub fn get_parent_ui_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
406 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
407 }
408
409 pub fn set_parent_ui_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
410 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
411 }
412
413 pub fn get_previous_ui_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
414 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
415 }
416
417 pub fn set_previous_ui_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
418 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
419 }
420
421 pub fn get_next_ui_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
422 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
423 }
424
425 pub fn set_next_ui_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
427 }
428
429 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
431 }
432
433 pub fn set_widget_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
435 }
436
437 pub fn get_widget_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
439 }
440
441 pub fn on_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
442 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
443 }
444
445 pub fn on_deselection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
446 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
447 }
448
449 pub fn on_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
450 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
451 }
452
453 pub fn on_increment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
454 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
455 }
456
457 pub fn on_decrement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
458 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
459 }
460
461 pub fn previous_method_info() -> &'static ::unity::il2cpp::MethodInfo {
462 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
463 }
464
465 pub fn next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
466 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
467 }
468
469 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
470 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
471 }
472}
473
474#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
475impl DebugUIHandlerWidget {
476 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
477 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
478 let __mi = Self::on_enable_method_info();
479 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
480 __inner(this.into(), ::core::option::Option::None)
481 }
482
483 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `SetWidget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
484 pub unsafe fn set_widget(
485 this: impl ::core::convert::Into<::unity::IlInstance>,
486 widget: crate::unity_engine::rendering::debugui::DebugUI_Widget,
487 ) -> () {
488 let __mi = Self::set_widget_method_info();
489 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::debugui::DebugUI_Widget, ::unity::OptionalMethod) -> () =
490 ::core::mem::transmute(__mi.method_ptr);
491 __inner(this.into(), widget, ::core::option::Option::None)
492 }
493
494 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `OnSelection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
495 pub unsafe fn on_selection(
496 this: impl ::core::convert::Into<::unity::IlInstance>,
497 from_next: bool,
498 previous: crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
499 ) -> bool {
500 let __mi = Self::on_selection_method_info();
501 let __inner: extern "C" fn(
502 ::unity::IlInstance,
503 bool,
504 crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
505 ::unity::OptionalMethod,
506 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
507 __inner(this.into(), from_next, previous, ::core::option::Option::None)
508 }
509
510 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `OnDeselection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
511 pub unsafe fn on_deselection(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
512 let __mi = Self::on_deselection_method_info();
513 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
514 __inner(this.into(), ::core::option::Option::None)
515 }
516
517 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `OnAction`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
518 pub unsafe fn on_action(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
519 let __mi = Self::on_action_method_info();
520 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
521 __inner(this.into(), ::core::option::Option::None)
522 }
523
524 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `OnIncrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
525 pub unsafe fn on_increment(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
526 let __mi = Self::on_increment_method_info();
527 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
528 __inner(this.into(), fast, ::core::option::Option::None)
529 }
530
531 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `OnDecrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
532 pub unsafe fn on_decrement(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
533 let __mi = Self::on_decrement_method_info();
534 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
535 __inner(this.into(), fast, ::core::option::Option::None)
536 }
537
538 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `Previous`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
539 pub unsafe fn previous(
540 this: impl ::core::convert::Into<::unity::IlInstance>,
541 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
542 let __mi = Self::previous_method_info();
543 let __inner: extern "C" fn(
544 ::unity::IlInstance,
545 ::unity::OptionalMethod,
546 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__mi.method_ptr);
547 __inner(this.into(), ::core::option::Option::None)
548 }
549
550 #[doc = "Direct (non-virtual) call to `DebugUIHandlerWidget`'s own `Next`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
551 pub unsafe fn next(
552 this: impl ::core::convert::Into<::unity::IlInstance>,
553 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
554 let __mi = Self::next_method_info();
555 let __inner: extern "C" fn(
556 ::unity::IlInstance,
557 ::unity::OptionalMethod,
558 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__mi.method_ptr);
559 __inner(this.into(), ::core::option::Option::None)
560 }
561}
562
563#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
564impl DebugUIHandlerWidget {
565 #[doc = "`.ctor()` — no args"]
566 pub fn new() -> Self {
567 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
568 panic!(
569 "{}
570::{}
571 failed to instantiate",
572 ::core::stringify!(DebugUIHandlerWidget),
573 ::core::stringify!(new),
574 )
575 });
576 <Self as IDebugUIHandlerWidgetMethods>::ctor(this);
577 this
578 }
579}
580
581#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
582#[doc(hidden)]
583pub mod prelude {
584 pub use super::{DebugUIHandlerWidget, IDebugUIHandlerWidget, IDebugUIHandlerWidgetMethods};
585 #[cfg(feature = "system-object")]
586 pub use crate::system::object::IObjectMethods;
587 #[cfg(feature = "unity_engine-behaviour")]
588 pub use crate::unity_engine::behaviour::IBehaviourMethods;
589 #[cfg(feature = "unity_engine-component")]
590 pub use crate::unity_engine::component::IComponentMethods;
591 #[cfg(feature = "unity_engine-monobehaviour")]
592 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
593 #[cfg(feature = "unity_engine-object_2")]
594 pub use crate::unity_engine::object_2::IObject_2Methods;
595 pub use crate::{
596 system::object::IObject,
597 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
598 };
599}