Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle-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/debuguihandlertoggle/DebugUIHandlerToggle.md"))]
20    #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerToggle")]
21    #[parent(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)]
22    pub struct DebugUIHandlerToggle {
23        #[offset(88)]
24        #[rename(name = "nameLabel")]
25        pub name_label: crate::unity_engine::ui::text::Text,
26        #[offset(96)]
27        #[rename(name = "valueToggle")]
28        pub value_toggle: crate::unity_engine::ui::toggle::Toggle,
29        #[offset(104)]
30        #[rename(name = "checkmarkImage")]
31        pub checkmark_image: crate::unity_engine::ui::image::Image,
32        #[offset(112)]
33        #[rename(name = "m_Field")]
34        pub m_field: crate::unity_engine::rendering::debugui::DebugUI_BoolField,
35    }
36}
37
38#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle")]
42pub trait IDebugUIHandlerToggleMethods: IDebugUIHandlerToggle {
43    #[doc = "`SetWidget(crate::unity_engine::rendering::debugui::DebugUI_Widget)` overload"]
44    fn set_widget(self, widget: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Widget>) -> () {
45        unsafe {
46            let __receiver = <DebugUIHandlerToggle 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(5usize).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                        5usize,
57                        __vt.len(),
58                        <DebugUIHandlerToggle as ::unity::ClassIdentity>::NAME,
59                        "SetWidget",
60                    )
61                });
62                let __inner: extern "C" fn(
63                    DebugUIHandlerToggle,
64                    crate::unity_engine::rendering::debugui::DebugUI_Widget,
65                    ::unity::OptionalMethod,
66                ) -> () = ::core::mem::transmute(__vi.method_ptr);
67                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
68                __inner(__receiver, ::core::convert::Into::into(widget), __mi)
69            }
70        }
71    }
72    #[doc = "`OnSelection(bool, crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
73    fn on_selection(
74        self,
75        from_next: impl ::core::convert::Into<bool>,
76        previous: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
77    ) -> bool {
78        unsafe {
79            let __receiver = <DebugUIHandlerToggle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80            {
81                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
82                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
83                    panic!(
84                        "unity: virtual slot {}
85 out of range (vtable len {}
86) on the runtime class behind {}
87 (method `{}
88`)",
89                        6usize,
90                        __vt.len(),
91                        <DebugUIHandlerToggle as ::unity::ClassIdentity>::NAME,
92                        "OnSelection",
93                    )
94                });
95                let __inner: extern "C" fn(
96                    DebugUIHandlerToggle,
97                    bool,
98                    crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
99                    ::unity::OptionalMethod,
100                ) -> bool = ::core::mem::transmute(__vi.method_ptr);
101                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
102                __inner(
103                    __receiver,
104                    ::core::convert::Into::into(from_next),
105                    ::core::convert::Into::into(previous),
106                    __mi,
107                )
108            }
109        }
110    }
111    #[doc = "`OnDeselection()` overload"]
112    fn on_deselection(self) -> () {
113        unsafe {
114            let __receiver = <DebugUIHandlerToggle 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                        <DebugUIHandlerToggle as ::unity::ClassIdentity>::NAME,
127                        "OnDeselection",
128                    )
129                });
130                let __inner: extern "C" fn(DebugUIHandlerToggle, ::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 = <DebugUIHandlerToggle 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(8usize).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                        8usize,
150                        __vt.len(),
151                        <DebugUIHandlerToggle as ::unity::ClassIdentity>::NAME,
152                        "OnAction",
153                    )
154                });
155                let __inner: extern "C" fn(DebugUIHandlerToggle, ::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 = "`UpdateValueLabel()` overload"]
162    fn update_value_label(self) -> () {
163        unsafe {
164            let __receiver = <DebugUIHandlerToggle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165            {
166                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
167                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
168                    panic!(
169                        "unity: virtual slot {}
170 out of range (vtable len {}
171) on the runtime class behind {}
172 (method `{}
173`)",
174                        13usize,
175                        __vt.len(),
176                        <DebugUIHandlerToggle as ::unity::ClassIdentity>::NAME,
177                        "UpdateValueLabel",
178                    )
179                });
180                let __inner: extern "C" fn(DebugUIHandlerToggle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
181                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
182                __inner(__receiver, __mi)
183            }
184        }
185    }
186    #[doc = "`.ctor()` overload"]
187    fn ctor(self) -> () {
188        unsafe {
189            let __receiver = <DebugUIHandlerToggle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x30a5ad0usize)as*mut u8,();
191(DebugUIHandlerToggle)__receiver)
192        }
193    }
194}
195
196#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle")]
197impl<__T: IDebugUIHandlerToggle> IDebugUIHandlerToggleMethods for __T {}
198
199#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle")]
200impl DebugUIHandlerToggle {
201    pub fn set_widget_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
203    }
204
205    pub fn on_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
207    }
208
209    pub fn on_deselection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
211    }
212
213    pub fn on_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
215    }
216
217    pub fn update_value_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
219    }
220
221    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
223    }
224}
225
226#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle")]
227impl DebugUIHandlerToggle {
228    #[doc = "Direct (non-virtual) call to `DebugUIHandlerToggle`'s own `SetWidget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
229    pub unsafe fn set_widget(
230        this: impl ::core::convert::Into<::unity::IlInstance>,
231        widget: crate::unity_engine::rendering::debugui::DebugUI_Widget,
232    ) -> () {
233        let __mi = Self::set_widget_method_info();
234        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::debugui::DebugUI_Widget, ::unity::OptionalMethod) -> () =
235            ::core::mem::transmute(__mi.method_ptr);
236        __inner(this.into(), widget, ::core::option::Option::None)
237    }
238
239    #[doc = "Direct (non-virtual) call to `DebugUIHandlerToggle`'s own `OnSelection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
240    pub unsafe fn on_selection(
241        this: impl ::core::convert::Into<::unity::IlInstance>,
242        from_next: bool,
243        previous: crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
244    ) -> bool {
245        let __mi = Self::on_selection_method_info();
246        let __inner: extern "C" fn(
247            ::unity::IlInstance,
248            bool,
249            crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
250            ::unity::OptionalMethod,
251        ) -> bool = ::core::mem::transmute(__mi.method_ptr);
252        __inner(this.into(), from_next, previous, ::core::option::Option::None)
253    }
254
255    #[doc = "Direct (non-virtual) call to `DebugUIHandlerToggle`'s own `OnDeselection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
256    pub unsafe fn on_deselection(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
257        let __mi = Self::on_deselection_method_info();
258        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
259        __inner(this.into(), ::core::option::Option::None)
260    }
261
262    #[doc = "Direct (non-virtual) call to `DebugUIHandlerToggle`'s own `OnAction`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
263    pub unsafe fn on_action(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
264        let __mi = Self::on_action_method_info();
265        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
266        __inner(this.into(), ::core::option::Option::None)
267    }
268
269    #[doc = "Direct (non-virtual) call to `DebugUIHandlerToggle`'s own `UpdateValueLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
270    pub unsafe fn update_value_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
271        let __mi = Self::update_value_label_method_info();
272        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
273        __inner(this.into(), ::core::option::Option::None)
274    }
275}
276
277#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle")]
278impl DebugUIHandlerToggle {
279    #[doc = "`.ctor()` — no args"]
280    pub fn new() -> Self {
281        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
282            panic!(
283                "{}
284::{}
285 failed to instantiate",
286                ::core::stringify!(DebugUIHandlerToggle),
287                ::core::stringify!(new),
288            )
289        });
290        <Self as IDebugUIHandlerToggleMethods>::ctor(this);
291        this
292    }
293}
294
295#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle")]
296#[doc(hidden)]
297pub mod prelude {
298    pub use super::{DebugUIHandlerToggle, IDebugUIHandlerToggle, IDebugUIHandlerToggleMethods};
299    #[cfg(feature = "system-object")]
300    pub use crate::system::object::IObjectMethods;
301    #[cfg(feature = "unity_engine-behaviour")]
302    pub use crate::unity_engine::behaviour::IBehaviourMethods;
303    #[cfg(feature = "unity_engine-component")]
304    pub use crate::unity_engine::component::IComponentMethods;
305    #[cfg(feature = "unity_engine-monobehaviour")]
306    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
307    #[cfg(feature = "unity_engine-object_2")]
308    pub use crate::unity_engine::object_2::IObject_2Methods;
309    #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
310    pub use crate::unity_engine::rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidgetMethods;
311    pub use crate::{
312        system::object::IObject,
313        unity_engine::{
314            behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2,
315            rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidget,
316        },
317    };
318}