Skip to main content

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

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