Skip to main content

engage/generated/unity_engine/rendering/ui/
debuguihandlervalue.rs

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