engage/generated/unity_engine/rendering/ui/
debuguihandlerrow.rs1#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerrow-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::{
16 debuguihandlerfoldout::{DebugUIHandlerFoldout, IDebugUIHandlerFoldout},
17 debuguihandlerwidget::{DebugUIHandlerWidget, IDebugUIHandlerWidget},
18 },
19 },
20 };
21
22 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ui/debuguihandlerrow/DebugUIHandlerRow.md"))]
23 #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerRow")]
24 #[parent(crate::unity_engine::rendering::ui::debuguihandlerfoldout::DebugUIHandlerFoldout)]
25 pub struct DebugUIHandlerRow {
26 #[offset(120)]
27 #[rename(name = "m_Timer")]
28 pub m_timer: f32,
29 }
30}
31
32#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerrow-types")]
33pub use __types::*;
34
35#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerrow")]
36pub trait IDebugUIHandlerRowMethods: IDebugUIHandlerRow {
37 #[doc = "`OnEnable()` overload"]
38 fn on_enable(self) -> () {
39 unsafe {
40 let __receiver = <DebugUIHandlerRow 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(4usize).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 4usize,
51 __vt.len(),
52 <DebugUIHandlerRow as ::unity::ClassIdentity>::NAME,
53 "OnEnable",
54 )
55 });
56 let __inner: extern "C" fn(DebugUIHandlerRow, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
57 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
58 __inner(__receiver, __mi)
59 }
60 }
61 }
62 #[doc = "`Update()` overload"]
63 fn update(self) -> () {
64 unsafe {
65 let __receiver = <DebugUIHandlerRow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x30a5390usize)as*mut u8,();
67(DebugUIHandlerRow)__receiver)
68 }
69 }
70 #[doc = "`.ctor()` overload"]
71 fn ctor(self) -> () {
72 unsafe {
73 let __receiver = <DebugUIHandlerRow as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x30a5770usize)as*mut u8,();
75(DebugUIHandlerRow)__receiver)
76 }
77 }
78}
79
80#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerrow")]
81impl<__T: IDebugUIHandlerRow> IDebugUIHandlerRowMethods for __T {}
82
83#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerrow")]
84impl DebugUIHandlerRow {
85 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
86 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
87 }
88
89 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
91 }
92
93 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
95 }
96}
97
98#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerrow")]
99impl DebugUIHandlerRow {
100 #[doc = "Direct (non-virtual) call to `DebugUIHandlerRow`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
101 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
102 let __mi = Self::on_enable_method_info();
103 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
104 __inner(this.into(), ::core::option::Option::None)
105 }
106}
107
108#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerrow")]
109impl DebugUIHandlerRow {
110 #[doc = "`.ctor()` — no args"]
111 pub fn new() -> Self {
112 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113 panic!(
114 "{}
115::{}
116 failed to instantiate",
117 ::core::stringify!(DebugUIHandlerRow),
118 ::core::stringify!(new),
119 )
120 });
121 <Self as IDebugUIHandlerRowMethods>::ctor(this);
122 this
123 }
124}
125
126#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerrow")]
127#[doc(hidden)]
128pub mod prelude {
129 pub use super::{DebugUIHandlerRow, IDebugUIHandlerRow, IDebugUIHandlerRowMethods};
130 #[cfg(feature = "system-object")]
131 pub use crate::system::object::IObjectMethods;
132 #[cfg(feature = "unity_engine-behaviour")]
133 pub use crate::unity_engine::behaviour::IBehaviourMethods;
134 #[cfg(feature = "unity_engine-component")]
135 pub use crate::unity_engine::component::IComponentMethods;
136 #[cfg(feature = "unity_engine-monobehaviour")]
137 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
138 #[cfg(feature = "unity_engine-object_2")]
139 pub use crate::unity_engine::object_2::IObject_2Methods;
140 #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerfoldout")]
141 pub use crate::unity_engine::rendering::ui::debuguihandlerfoldout::IDebugUIHandlerFoldoutMethods;
142 #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
143 pub use crate::unity_engine::rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidgetMethods;
144 pub use crate::{
145 system::object::IObject,
146 unity_engine::{
147 behaviour::IBehaviour,
148 component::IComponent,
149 monobehaviour::IMonoBehaviour,
150 object_2::IObject_2,
151 rendering::ui::{debuguihandlerfoldout::IDebugUIHandlerFoldout, debuguihandlerwidget::IDebugUIHandlerWidget},
152 },
153 };
154}