Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpanel-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/debuguihandlerpanel/DebugUIHandlerPanel.md"))]
19    #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerPanel")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct DebugUIHandlerPanel {
22        #[offset(24)]
23        #[rename(name = "nameLabel")]
24        pub name_label: crate::unity_engine::ui::text::Text,
25        #[offset(32)]
26        #[rename(name = "scrollRect")]
27        pub scroll_rect: crate::unity_engine::ui::scrollrect::ScrollRect,
28        #[offset(40)]
29        #[rename(name = "viewport")]
30        pub viewport: crate::unity_engine::recttransform::RectTransform,
31        #[offset(48)]
32        #[rename(name = "m_ScrollTransform")]
33        pub m_scroll_transform: crate::unity_engine::recttransform::RectTransform,
34        #[offset(56)]
35        #[rename(name = "m_ContentTransform")]
36        pub m_content_transform: crate::unity_engine::recttransform::RectTransform,
37        #[offset(64)]
38        #[rename(name = "m_MaskTransform")]
39        pub m_mask_transform: crate::unity_engine::recttransform::RectTransform,
40        #[offset(72)]
41        #[rename(name = "m_Panel")]
42        pub m_panel: crate::unity_engine::rendering::debugui::DebugUI_Panel,
43    }
44}
45
46#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpanel-types")]
47pub use __types::*;
48
49#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpanel")]
50pub trait IDebugUIHandlerPanelMethods: IDebugUIHandlerPanel {
51    #[doc = "`OnEnable()` overload"]
52    fn on_enable(self) -> () {
53        unsafe {
54            let __receiver = <DebugUIHandlerPanel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            ::unity::il2cpp_call!((::unity::module_base()+0x30a4a50usize)as*mut u8,();
56(DebugUIHandlerPanel)__receiver)
57        }
58    }
59    #[doc = "`SetPanel(crate::unity_engine::rendering::debugui::DebugUI_Panel)` overload"]
60    fn set_panel(self, panel: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Panel>) -> () {
61        unsafe {
62            let __receiver = <DebugUIHandlerPanel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            ::unity::il2cpp_call!((::unity::module_base()+0x30a4b30usize)as*mut u8,();
64(DebugUIHandlerPanel)__receiver,(crate::unity_engine::rendering::debugui::DebugUI_Panel)::core::convert::Into::into(panel))
65        }
66    }
67    #[doc = "`GetPanel()` overload"]
68    fn get_panel(self) -> crate::unity_engine::rendering::debugui::DebugUI_Panel {
69        unsafe {
70            let __receiver = <DebugUIHandlerPanel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71            ::unity::il2cpp_call!((::unity::module_base()+0x30a4be0usize)as*mut u8,crate::unity_engine::rendering::debugui::DebugUI_Panel;
72(DebugUIHandlerPanel)__receiver)
73        }
74    }
75    #[doc = "`ScrollTo(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
76    fn scroll_to(self, target: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>) -> () {
77        unsafe {
78            let __receiver = <DebugUIHandlerPanel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79            ::unity::il2cpp_call!((::unity::module_base()+0x30a4bf0usize)as*mut u8,();
80(DebugUIHandlerPanel)__receiver,(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)::core::convert::Into::into(target))
81        }
82    }
83    #[doc = "`GetYPosInScroll(crate::unity_engine::recttransform::RectTransform)` overload"]
84    fn get_y_pos_in_scroll(self, target: impl ::core::convert::Into<crate::unity_engine::recttransform::RectTransform>) -> f32 {
85        unsafe {
86            let __receiver = <DebugUIHandlerPanel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x30a4d80usize)as*mut u8,f32;
88(DebugUIHandlerPanel)__receiver,(crate::unity_engine::recttransform::RectTransform)::core::convert::Into::into(target))
89        }
90    }
91    #[doc = "`GetFirstItem()` overload"]
92    fn get_first_item(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
93        unsafe {
94            let __receiver = <DebugUIHandlerPanel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95            ::unity::il2cpp_call!((::unity::module_base()+0x30a4e80usize)as*mut u8,crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget;
96(DebugUIHandlerPanel)__receiver)
97        }
98    }
99    #[doc = "`.ctor()` overload"]
100    fn ctor(self) -> () {
101        unsafe {
102            let __receiver = <DebugUIHandlerPanel as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103            ::unity::il2cpp_call!((::unity::module_base()+0x30a4ee0usize)as*mut u8,();
104(DebugUIHandlerPanel)__receiver)
105        }
106    }
107}
108
109#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpanel")]
110impl<__T: IDebugUIHandlerPanel> IDebugUIHandlerPanelMethods for __T {}
111
112#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpanel")]
113impl DebugUIHandlerPanel {
114    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
116    }
117
118    pub fn set_panel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
120    }
121
122    pub fn get_panel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
124    }
125
126    pub fn scroll_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
128    }
129
130    pub fn get_y_pos_in_scroll_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
132    }
133
134    pub fn get_first_item_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
136    }
137
138    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
140    }
141}
142
143#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpanel")]
144impl DebugUIHandlerPanel {
145    #[doc = "`.ctor()` — no args"]
146    pub fn new() -> Self {
147        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
148            panic!(
149                "{}
150::{}
151 failed to instantiate",
152                ::core::stringify!(DebugUIHandlerPanel),
153                ::core::stringify!(new),
154            )
155        });
156        <Self as IDebugUIHandlerPanelMethods>::ctor(this);
157        this
158    }
159}
160
161#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerpanel")]
162#[doc(hidden)]
163pub mod prelude {
164    pub use super::{DebugUIHandlerPanel, IDebugUIHandlerPanel, IDebugUIHandlerPanelMethods};
165    #[cfg(feature = "system-object")]
166    pub use crate::system::object::IObjectMethods;
167    #[cfg(feature = "unity_engine-behaviour")]
168    pub use crate::unity_engine::behaviour::IBehaviourMethods;
169    #[cfg(feature = "unity_engine-component")]
170    pub use crate::unity_engine::component::IComponentMethods;
171    #[cfg(feature = "unity_engine-monobehaviour")]
172    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
173    #[cfg(feature = "unity_engine-object_2")]
174    pub use crate::unity_engine::object_2::IObject_2Methods;
175    pub use crate::{
176        system::object::IObject,
177        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
178    };
179}