Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpersistentcanvas-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        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ui/debuguihandlerpersistentcanvas/DebugUIHandlerPersistentCanvas.md"))]
19    #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerPersistentCanvas")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct DebugUIHandlerPersistentCanvas {
22        #[offset(24)]
23        #[rename(name = "panel")]
24        pub panel: crate::unity_engine::recttransform::RectTransform,
25        #[offset(32)]
26        #[rename(name = "valuePrefab")]
27        pub value_prefab: crate::unity_engine::recttransform::RectTransform,
28        #[offset(40)]
29        #[rename(name = "m_Items")]
30        pub m_items:
31            crate::system::collections::generic::list_1::List_1<crate::unity_engine::rendering::ui::debuguihandlervalue::DebugUIHandlerValue>,
32    }
33}
34
35#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpersistentcanvas-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpersistentcanvas")]
39pub trait IDebugUIHandlerPersistentCanvasMethods: IDebugUIHandlerPersistentCanvas {
40    #[doc = "`Toggle(crate::unity_engine::rendering::debugui::DebugUI_Value)` overload"]
41    fn toggle(self, widget: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Value>) -> () {
42        unsafe {
43            let __receiver =
44                <DebugUIHandlerPersistentCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x30a4ef0usize)as*mut u8,();
46(DebugUIHandlerPersistentCanvas)__receiver,(crate::unity_engine::rendering::debugui::DebugUI_Value)::core::convert::Into::into(widget))
47        }
48    }
49    #[doc = "`Clear()` overload"]
50    fn clear(self) -> () {
51        unsafe {
52            let __receiver =
53                <DebugUIHandlerPersistentCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54            ::unity::il2cpp_call!((::unity::module_base()+0x30a5180usize)as*mut u8,();
55(DebugUIHandlerPersistentCanvas)__receiver)
56        }
57    }
58    #[doc = "`.ctor()` overload"]
59    fn ctor(self) -> () {
60        unsafe {
61            let __receiver =
62                <DebugUIHandlerPersistentCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x30a52f0usize)as*mut u8,();
64(DebugUIHandlerPersistentCanvas)__receiver)
65        }
66    }
67}
68
69#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpersistentcanvas")]
70impl<__T: IDebugUIHandlerPersistentCanvas> IDebugUIHandlerPersistentCanvasMethods for __T {}
71
72#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpersistentcanvas")]
73impl DebugUIHandlerPersistentCanvas {
74    pub fn toggle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
76    }
77
78    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
80    }
81
82    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
84    }
85}
86
87#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpersistentcanvas")]
88impl DebugUIHandlerPersistentCanvas {
89    #[doc = "`.ctor()` — no args"]
90    pub fn new() -> Self {
91        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
92            panic!(
93                "{}
94::{}
95 failed to instantiate",
96                ::core::stringify!(DebugUIHandlerPersistentCanvas),
97                ::core::stringify!(new),
98            )
99        });
100        <Self as IDebugUIHandlerPersistentCanvasMethods>::ctor(this);
101        this
102    }
103}
104
105#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpersistentcanvas")]
106#[doc(hidden)]
107pub mod prelude {
108    pub use super::{DebugUIHandlerPersistentCanvas, IDebugUIHandlerPersistentCanvas, IDebugUIHandlerPersistentCanvasMethods};
109    #[cfg(feature = "system-object")]
110    pub use crate::system::object::IObjectMethods;
111    #[cfg(feature = "unity_engine-behaviour")]
112    pub use crate::unity_engine::behaviour::IBehaviourMethods;
113    #[cfg(feature = "unity_engine-component")]
114    pub use crate::unity_engine::component::IComponentMethods;
115    #[cfg(feature = "unity_engine-monobehaviour")]
116    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
117    #[cfg(feature = "unity_engine-object_2")]
118    pub use crate::unity_engine::object_2::IObject_2Methods;
119    pub use crate::{
120        system::object::IObject,
121        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
122    };
123}