Skip to main content

engage/generated/root/
debugmenurender.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-debugmenurender-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/root/debugmenurender/DebugMenuRender.md"))]
19    #[::unity::class(namespace = "", name = "DebugMenuRender")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct DebugMenuRender {
22        #[offset(24)]
23        #[rename(name = "m_Menu")]
24        pub m_menu: crate::app::debugmenu::DebugMenu,
25    }
26}
27
28#[cfg(feature = "root-debugmenurender-types")]
29pub use __types::*;
30
31#[cfg(feature = "root-debugmenurender")]
32pub trait IDebugMenuRenderMethods: IDebugMenuRender {
33    #[doc = "`Start()` overload"]
34    fn start(self) -> () {
35        unsafe {
36            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c170usize)as*mut u8,();
38(DebugMenuRender)__receiver)
39        }
40    }
41    #[doc = "`Update()` overload"]
42    fn update(self) -> () {
43        unsafe {
44            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c180usize)as*mut u8,();
46(DebugMenuRender)__receiver)
47        }
48    }
49    #[doc = "`SetMenu(crate::app::debugmenu::DebugMenu)` overload"]
50    fn set_menu(self, menu: impl ::core::convert::Into<crate::app::debugmenu::DebugMenu>) -> () {
51        unsafe {
52            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
53            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c190usize)as*mut u8,();
54(DebugMenuRender)__receiver,(crate::app::debugmenu::DebugMenu)::core::convert::Into::into(menu))
55        }
56    }
57    #[doc = "`GetAnchorRect(crate::unity_engine::rect::Rect, crate::app::gx::GX_Anchor)` overload"]
58    fn get_anchor_rect(
59        self,
60        rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
61        anchor: impl ::core::convert::Into<crate::app::gx::GX_Anchor>,
62    ) -> crate::unity_engine::rect::Rect {
63        unsafe {
64            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
65            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c1a0usize)as*mut u8,crate::unity_engine::rect::Rect;
66(DebugMenuRender)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(rect),(crate::app::gx::GX_Anchor)::core::convert::Into::into(anchor))
67        }
68    }
69    #[doc = "`DrawText(crate::unity_engine::rect::Rect, crate::unity_engine::color::Color, ::unity::Il2CppString)` overload"]
70    fn draw_text(
71        self,
72        rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
73        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
74        text: impl ::core::convert::Into<::unity::Il2CppString>,
75    ) -> () {
76        unsafe {
77            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c430usize)as*mut u8,();
79(DebugMenuRender)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(rect),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(::unity::Il2CppString)::core::convert::Into::into(text))
80        }
81    }
82    #[doc = "`DrawText(f32, f32, f32, f32, crate::unity_engine::color::Color, ::unity::Il2CppString)` overload"]
83    fn draw_text_2(
84        self,
85        x: impl ::core::convert::Into<f32>,
86        y: impl ::core::convert::Into<f32>,
87        w: impl ::core::convert::Into<f32>,
88        h: impl ::core::convert::Into<f32>,
89        color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
90        text: impl ::core::convert::Into<::unity::Il2CppString>,
91    ) -> () {
92        unsafe {
93            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c550usize)as*mut u8,();
95(DebugMenuRender)__receiver,(f32)::core::convert::Into::into(x),(f32)::core::convert::Into::into(y),(f32)::core::convert::Into::into(w),(f32)::core::convert::Into::into(h),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(::unity::Il2CppString)::core::convert::Into::into(text))
96        }
97    }
98    #[doc = "`SlideRectX(crate::unity_engine::rect::Rect, f32)` overload"]
99    fn slide_rect_x(
100        self,
101        rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
102        size: impl ::core::convert::Into<f32>,
103    ) -> crate::unity_engine::rect::Rect {
104        unsafe {
105            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c5d0usize)as*mut u8,crate::unity_engine::rect::Rect;
107(DebugMenuRender)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(rect),(f32)::core::convert::Into::into(size))
108        }
109    }
110    #[doc = "`SlideRectY(crate::unity_engine::rect::Rect, f32)` overload"]
111    fn slide_rect_y(
112        self,
113        rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
114        size: impl ::core::convert::Into<f32>,
115    ) -> crate::unity_engine::rect::Rect {
116        unsafe {
117            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c650usize)as*mut u8,crate::unity_engine::rect::Rect;
119(DebugMenuRender)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(rect),(f32)::core::convert::Into::into(size))
120        }
121    }
122    #[doc = "`OnGUI()` overload"]
123    fn on_gui(self) -> () {
124        unsafe {
125            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126            ::unity::il2cpp_call!((::unity::module_base()+0x2a0c6d0usize)as*mut u8,();
127(DebugMenuRender)__receiver)
128        }
129    }
130    #[doc = "`.ctor()` overload"]
131    fn ctor(self) -> () {
132        unsafe {
133            let __receiver = <DebugMenuRender as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x2a0d220usize)as*mut u8,();
135(DebugMenuRender)__receiver)
136        }
137    }
138}
139
140#[cfg(feature = "root-debugmenurender")]
141impl<__T: IDebugMenuRender> IDebugMenuRenderMethods for __T {}
142
143#[cfg(feature = "root-debugmenurender")]
144impl DebugMenuRender {
145    pub fn start_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
147    }
148
149    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
151    }
152
153    pub fn set_menu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
155    }
156
157    pub fn get_anchor_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
159    }
160
161    pub fn draw_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
163    }
164
165    pub fn draw_text_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
167    }
168
169    pub fn slide_rect_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
171    }
172
173    pub fn slide_rect_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
175    }
176
177    pub fn on_gui_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
179    }
180
181    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
183    }
184}
185
186#[cfg(feature = "root-debugmenurender")]
187impl DebugMenuRender {
188    #[doc = "`.ctor()` — no args"]
189    pub fn new() -> Self {
190        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
191            panic!(
192                "{}
193::{}
194 failed to instantiate",
195                ::core::stringify!(DebugMenuRender),
196                ::core::stringify!(new),
197            )
198        });
199        <Self as IDebugMenuRenderMethods>::ctor(this);
200        this
201    }
202}
203
204#[cfg(feature = "root-debugmenurender")]
205#[doc(hidden)]
206pub mod prelude {
207    pub use super::{DebugMenuRender, IDebugMenuRender, IDebugMenuRenderMethods};
208    #[cfg(feature = "system-object")]
209    pub use crate::system::object::IObjectMethods;
210    #[cfg(feature = "unity_engine-behaviour")]
211    pub use crate::unity_engine::behaviour::IBehaviourMethods;
212    #[cfg(feature = "unity_engine-component")]
213    pub use crate::unity_engine::component::IComponentMethods;
214    #[cfg(feature = "unity_engine-monobehaviour")]
215    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
216    #[cfg(feature = "unity_engine-object_2")]
217    pub use crate::unity_engine::object_2::IObject_2Methods;
218    pub use crate::{
219        system::object::IObject,
220        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
221    };
222}