Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-ui-debuguihandlercontainer-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/debuguihandlercontainer/DebugUIHandlerContainer.md"))]
19    #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerContainer")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct DebugUIHandlerContainer {
22        #[offset(24)]
23        #[rename(name = "contentHolder")]
24        pub content_holder: crate::unity_engine::recttransform::RectTransform,
25    }
26}
27
28#[cfg(feature = "unity_engine-rendering-ui-debuguihandlercontainer-types")]
29pub use __types::*;
30
31#[cfg(feature = "unity_engine-rendering-ui-debuguihandlercontainer")]
32pub trait IDebugUIHandlerContainerMethods: IDebugUIHandlerContainer {
33    #[doc = "`GetFirstItem()` overload"]
34    fn get_first_item(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
35        unsafe {
36            let __receiver =
37                <DebugUIHandlerContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            ::unity::il2cpp_call!((::unity::module_base()+0x353c3e0usize)as*mut u8,crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget;
39(DebugUIHandlerContainer)__receiver)
40        }
41    }
42    #[doc = "`GetLastItem()` overload"]
43    fn get_last_item(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
44        unsafe {
45            let __receiver =
46                <DebugUIHandlerContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x353c1b0usize)as*mut u8,crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget;
48(DebugUIHandlerContainer)__receiver)
49        }
50    }
51    #[doc = "`IsDirectChild(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
52    fn is_direct_child(
53        self,
54        widget: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
55    ) -> bool {
56        unsafe {
57            let __receiver =
58                <DebugUIHandlerContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x353c090usize)as*mut u8,bool;
60(DebugUIHandlerContainer)__receiver,(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)::core::convert::Into::into(widget))
61        }
62    }
63    #[doc = "`GetActiveChildren()` overload"]
64    fn get_active_children(
65        self,
66    ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget> {
67        unsafe {
68            let __receiver =
69                <DebugUIHandlerContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x353f370usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget> ;
71(DebugUIHandlerContainer)__receiver)
72        }
73    }
74    #[doc = "`.ctor()` overload"]
75    fn ctor(self) -> () {
76        unsafe {
77            let __receiver =
78                <DebugUIHandlerContainer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x353f6f0usize)as*mut u8,();
80(DebugUIHandlerContainer)__receiver)
81        }
82    }
83}
84
85#[cfg(feature = "unity_engine-rendering-ui-debuguihandlercontainer")]
86impl<__T: IDebugUIHandlerContainer> IDebugUIHandlerContainerMethods for __T {}
87
88#[cfg(feature = "unity_engine-rendering-ui-debuguihandlercontainer")]
89impl DebugUIHandlerContainer {
90    pub fn get_first_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
91        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
92    }
93
94    pub fn get_last_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
95        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
96    }
97
98    pub fn is_direct_child_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
100    }
101
102    pub fn get_active_children_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
104    }
105
106    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
108    }
109}
110
111#[cfg(feature = "unity_engine-rendering-ui-debuguihandlercontainer")]
112impl DebugUIHandlerContainer {
113    #[doc = "`.ctor()` — no args"]
114    pub fn new() -> Self {
115        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
116            panic!(
117                "{}
118::{}
119 failed to instantiate",
120                ::core::stringify!(DebugUIHandlerContainer),
121                ::core::stringify!(new),
122            )
123        });
124        <Self as IDebugUIHandlerContainerMethods>::ctor(this);
125        this
126    }
127}
128
129#[cfg(feature = "unity_engine-rendering-ui-debuguihandlercontainer")]
130#[doc(hidden)]
131pub mod prelude {
132    pub use super::{DebugUIHandlerContainer, IDebugUIHandlerContainer, IDebugUIHandlerContainerMethods};
133    #[cfg(feature = "system-object")]
134    pub use crate::system::object::IObjectMethods;
135    #[cfg(feature = "unity_engine-behaviour")]
136    pub use crate::unity_engine::behaviour::IBehaviourMethods;
137    #[cfg(feature = "unity_engine-component")]
138    pub use crate::unity_engine::component::IComponentMethods;
139    #[cfg(feature = "unity_engine-monobehaviour")]
140    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
141    #[cfg(feature = "unity_engine-object_2")]
142    pub use crate::unity_engine::object_2::IObject_2Methods;
143    pub use crate::{
144        system::object::IObject,
145        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
146    };
147}