Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertogglehistory-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                debuguihandlertoggle::{DebugUIHandlerToggle, IDebugUIHandlerToggle},
17                debuguihandlerwidget::{DebugUIHandlerWidget, IDebugUIHandlerWidget},
18            },
19        },
20    };
21
22    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ui/debuguihandlertogglehistory/DebugUIHandlerToggleHistory.md"))]
23    #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerToggleHistory")]
24    #[parent(crate::unity_engine::rendering::ui::debuguihandlertoggle::DebugUIHandlerToggle)]
25    pub struct DebugUIHandlerToggleHistory {
26        #[offset(120)]
27        #[rename(name = "historyToggles")]
28        pub history_toggles: ::unity::Array<crate::unity_engine::ui::toggle::Toggle>,
29        #[static_field]
30        #[rename(name = "xDecal")]
31        pub x_decal: f32,
32    }
33}
34
35#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertogglehistory-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertogglehistory")]
39pub trait IDebugUIHandlerToggleHistoryMethods: IDebugUIHandlerToggleHistory {
40    #[doc = "`SetWidget(crate::unity_engine::rendering::debugui::DebugUI_Widget)` overload"]
41    fn set_widget(self, widget: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Widget>) -> () {
42        unsafe {
43            let __receiver =
44                <DebugUIHandlerToggleHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            {
46                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
47                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
48                    panic!(
49                        "unity: virtual slot {}
50 out of range (vtable len {}
51) on the runtime class behind {}
52 (method `{}
53`)",
54                        5usize,
55                        __vt.len(),
56                        <DebugUIHandlerToggleHistory as ::unity::ClassIdentity>::NAME,
57                        "SetWidget",
58                    )
59                });
60                let __inner: extern "C" fn(
61                    DebugUIHandlerToggleHistory,
62                    crate::unity_engine::rendering::debugui::DebugUI_Widget,
63                    ::unity::OptionalMethod,
64                ) -> () = ::core::mem::transmute(__vi.method_ptr);
65                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66                __inner(__receiver, ::core::convert::Into::into(widget), __mi)
67            }
68        }
69    }
70    #[doc = "`UpdateValueLabel()` overload"]
71    fn update_value_label(self) -> () {
72        unsafe {
73            let __receiver =
74                <DebugUIHandlerToggleHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            {
76                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
78                    panic!(
79                        "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84                        13usize,
85                        __vt.len(),
86                        <DebugUIHandlerToggleHistory as ::unity::ClassIdentity>::NAME,
87                        "UpdateValueLabel",
88                    )
89                });
90                let __inner: extern "C" fn(DebugUIHandlerToggleHistory, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
91                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92                __inner(__receiver, __mi)
93            }
94        }
95    }
96    #[doc = "`RefreshAfterSanitization()` overload"]
97    fn refresh_after_sanitization(self) -> crate::system::collections::ienumerator::IEnumerator {
98        unsafe {
99            let __receiver =
100                <DebugUIHandlerToggleHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101            ::unity::il2cpp_call!((::unity::module_base()+0x30a61a0usize)as*mut u8,crate::system::collections::ienumerator::IEnumerator;
102(DebugUIHandlerToggleHistory)__receiver)
103        }
104    }
105    #[doc = "`.ctor()` overload"]
106    fn ctor(self) -> () {
107        unsafe {
108            let __receiver =
109                <DebugUIHandlerToggleHistory as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            ::unity::il2cpp_call!((::unity::module_base()+0x30a6220usize)as*mut u8,();
111(DebugUIHandlerToggleHistory)__receiver)
112        }
113    }
114}
115
116#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertogglehistory")]
117impl<__T: IDebugUIHandlerToggleHistory> IDebugUIHandlerToggleHistoryMethods for __T {}
118
119#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertogglehistory")]
120impl DebugUIHandlerToggleHistory {
121    pub fn set_widget_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
123    }
124
125    pub fn update_value_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
127    }
128
129    pub fn refresh_after_sanitization_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
131    }
132
133    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
135    }
136}
137
138#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertogglehistory")]
139impl DebugUIHandlerToggleHistory {
140    #[doc = "Direct (non-virtual) call to `DebugUIHandlerToggleHistory`'s own `SetWidget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
141    pub unsafe fn set_widget(
142        this: impl ::core::convert::Into<::unity::IlInstance>,
143        widget: crate::unity_engine::rendering::debugui::DebugUI_Widget,
144    ) -> () {
145        let __mi = Self::set_widget_method_info();
146        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::debugui::DebugUI_Widget, ::unity::OptionalMethod) -> () =
147            ::core::mem::transmute(__mi.method_ptr);
148        __inner(this.into(), widget, ::core::option::Option::None)
149    }
150
151    #[doc = "Direct (non-virtual) call to `DebugUIHandlerToggleHistory`'s own `UpdateValueLabel`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
152    pub unsafe fn update_value_label(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
153        let __mi = Self::update_value_label_method_info();
154        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
155        __inner(this.into(), ::core::option::Option::None)
156    }
157}
158
159#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertogglehistory")]
160impl DebugUIHandlerToggleHistory {
161    #[doc = "`.ctor()` — no args"]
162    pub fn new() -> Self {
163        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
164            panic!(
165                "{}
166::{}
167 failed to instantiate",
168                ::core::stringify!(DebugUIHandlerToggleHistory),
169                ::core::stringify!(new),
170            )
171        });
172        <Self as IDebugUIHandlerToggleHistoryMethods>::ctor(this);
173        this
174    }
175}
176
177#[cfg(feature = "unity_engine-rendering-ui-debuguihandlertogglehistory")]
178#[doc(hidden)]
179pub mod prelude {
180    pub use super::{DebugUIHandlerToggleHistory, IDebugUIHandlerToggleHistory, IDebugUIHandlerToggleHistoryMethods};
181    #[cfg(feature = "system-object")]
182    pub use crate::system::object::IObjectMethods;
183    #[cfg(feature = "unity_engine-behaviour")]
184    pub use crate::unity_engine::behaviour::IBehaviourMethods;
185    #[cfg(feature = "unity_engine-component")]
186    pub use crate::unity_engine::component::IComponentMethods;
187    #[cfg(feature = "unity_engine-monobehaviour")]
188    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
189    #[cfg(feature = "unity_engine-object_2")]
190    pub use crate::unity_engine::object_2::IObject_2Methods;
191    #[cfg(feature = "unity_engine-rendering-ui-debuguihandlertoggle")]
192    pub use crate::unity_engine::rendering::ui::debuguihandlertoggle::IDebugUIHandlerToggleMethods;
193    #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
194    pub use crate::unity_engine::rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidgetMethods;
195    pub use crate::{
196        system::object::IObject,
197        unity_engine::{
198            behaviour::IBehaviour,
199            component::IComponent,
200            monobehaviour::IMonoBehaviour,
201            object_2::IObject_2,
202            rendering::ui::{debuguihandlertoggle::IDebugUIHandlerToggle, debuguihandlerwidget::IDebugUIHandlerWidget},
203        },
204    };
205}