Skip to main content

engage/generated/app/
debugfont.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-debugfont-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugfont/DebugFont.md"))]
14    #[::unity::class(namespace = "App", name = "DebugFont")]
15    #[parent(crate::system::object::Object)]
16    pub struct DebugFont {
17        #[static_field]
18        #[rename(name = "s_Font")]
19        pub s_font: crate::unity_engine::font::Font,
20        #[static_field]
21        #[rename(name = "s_NormalStyle")]
22        pub s_normal_style: crate::unity_engine::guistyle::GUIStyle,
23        #[static_field]
24        #[rename(name = "s_MiddleStyle")]
25        pub s_middle_style: crate::unity_engine::guistyle::GUIStyle,
26        #[static_field]
27        #[rename(name = "s_SmallStyle")]
28        pub s_small_style: crate::unity_engine::guistyle::GUIStyle,
29        #[static_field]
30        #[rename(name = "s_CurrentStyle")]
31        pub s_current_style: crate::unity_engine::guistyle::GUIStyle,
32    }
33
34    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/debugfont/DebugFont_Scope.md"))]
35    #[repr(C)]
36    #[derive(::core::clone::Clone, ::core::marker::Copy)]
37    pub struct DebugFont_Scope {
38        pub m_style: crate::unity_engine::guistyle::GUIStyle,
39    }
40    impl ::unity::ClassIdentity for DebugFont_Scope {
41        const NAME: &'static str = "DebugFont.Scope";
42        const NAMESPACE: &'static str = "App";
43
44        fn class() -> ::unity::Class {
45            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
46            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
47        }
48    }
49    impl ::unity::IlType for DebugFont_Scope {
50        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
51            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
52        }
53    }
54}
55
56#[cfg(feature = "app-debugfont-types")]
57pub use __types::*;
58
59#[cfg(feature = "app-debugfont")]
60impl DebugFont {
61    #[doc = "`Intialize()` overload"]
62    pub fn intialize() -> () {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x2a042b0usize)as*mut u8,();
65            )
66        }
67    }
68
69    #[doc = "`CreateStyle(i32)` overload"]
70    pub fn create_style(size: impl ::core::convert::Into<i32>) -> crate::unity_engine::guistyle::GUIStyle {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x2a043f0usize)as*mut u8,crate::unity_engine::guistyle::GUIStyle;
73(i32)::core::convert::Into::into(size))
74        }
75    }
76
77    #[doc = "`GetFont()` overload"]
78    pub fn get_font() -> crate::unity_engine::font::Font {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x2a04560usize)as*mut u8,crate::unity_engine::font::Font;
81            )
82        }
83    }
84
85    #[doc = "`get_NormalStyle()` overload"]
86    pub fn get_normal_style() -> crate::unity_engine::guistyle::GUIStyle {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x2a045d0usize)as*mut u8,crate::unity_engine::guistyle::GUIStyle;
89            )
90        }
91    }
92
93    #[doc = "`get_MiddleStyle()` overload"]
94    pub fn get_middle_style() -> crate::unity_engine::guistyle::GUIStyle {
95        unsafe {
96            ::unity::il2cpp_call!((::unity::module_base()+0x2a04640usize)as*mut u8,crate::unity_engine::guistyle::GUIStyle;
97            )
98        }
99    }
100
101    #[doc = "`get_SmallStyle()` overload"]
102    pub fn get_small_style() -> crate::unity_engine::guistyle::GUIStyle {
103        unsafe {
104            ::unity::il2cpp_call!((::unity::module_base()+0x2a046b0usize)as*mut u8,crate::unity_engine::guistyle::GUIStyle;
105            )
106        }
107    }
108
109    #[doc = "`get_CurrentStyle()` overload"]
110    pub fn get_current_style() -> crate::unity_engine::guistyle::GUIStyle {
111        unsafe {
112            ::unity::il2cpp_call!((::unity::module_base()+0x2a04720usize)as*mut u8,crate::unity_engine::guistyle::GUIStyle;
113            )
114        }
115    }
116
117    #[doc = "`set_CurrentStyle(crate::unity_engine::guistyle::GUIStyle)` overload"]
118    pub fn set_current_style(value: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>) -> () {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x2a04790usize)as*mut u8,();
121(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(value))
122        }
123    }
124
125    #[doc = "`get_FontSize()` overload"]
126    pub fn get_font_size() -> i32 {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x2a03360usize)as*mut u8,i32;
129            )
130        }
131    }
132
133    #[doc = "`get_LineSize()` overload"]
134    pub fn get_line_size() -> i32 {
135        unsafe {
136            ::unity::il2cpp_call!((::unity::module_base()+0x2a033d0usize)as*mut u8,i32;
137            )
138        }
139    }
140
141    #[doc = "`.cctor()` overload"]
142    pub fn cctor() -> () {
143        unsafe {
144            ::unity::il2cpp_call!((::unity::module_base()+0x2a04820usize)as*mut u8,();
145            )
146        }
147    }
148}
149
150#[cfg(feature = "app-debugfont")]
151pub trait IDebugFontMethods: IDebugFont {
152    #[doc = "`.ctor()` overload"]
153    fn ctor(self) -> () {
154        unsafe {
155            let __receiver = <DebugFont as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x2a04810usize)as*mut u8,();
157(DebugFont)__receiver)
158        }
159    }
160}
161
162#[cfg(feature = "app-debugfont")]
163impl<__T: IDebugFont> IDebugFontMethods for __T {}
164
165#[cfg(feature = "app-debugfont")]
166impl DebugFont {
167    pub fn intialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
169    }
170
171    pub fn create_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
173    }
174
175    pub fn get_font_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
177    }
178
179    pub fn get_normal_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
181    }
182
183    pub fn get_middle_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
185    }
186
187    pub fn get_small_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
189    }
190
191    pub fn get_current_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
193    }
194
195    pub fn set_current_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
197    }
198
199    pub fn get_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
201    }
202
203    pub fn get_line_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
205    }
206
207    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
209    }
210
211    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
213    }
214}
215
216#[cfg(feature = "app-debugfont")]
217impl DebugFont {
218    #[doc = "`.ctor()` — no args"]
219    pub fn new() -> Self {
220        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
221            panic!(
222                "{}
223::{}
224 failed to instantiate",
225                ::core::stringify!(DebugFont),
226                ::core::stringify!(new),
227            )
228        });
229        <Self as IDebugFontMethods>::ctor(this);
230        this
231    }
232}
233
234#[cfg(feature = "app-debugfont")]
235impl DebugFont_Scope {
236    #[doc = "`.ctor(crate::unity_engine::guistyle::GUIStyle)` overload"]
237    pub fn ctor(&mut self, style: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>) -> () {
238        unsafe {
239            ::unity::il2cpp_call!((::unity::module_base()+0x19d4400usize)as*mut u8,();
240(*mut DebugFont_Scope)self as*mut DebugFont_Scope,(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(style))
241        }
242    }
243
244    #[doc = "`Dispose()` overload"]
245    pub fn dispose(&mut self) -> () {
246        unsafe {
247            ::unity::il2cpp_call!((::unity::module_base()+0x19d4540usize)as*mut u8,();
248(*mut DebugFont_Scope)self as*mut DebugFont_Scope)
249        }
250    }
251}
252
253#[cfg(feature = "app-debugfont")]
254impl DebugFont_Scope {
255    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
257    }
258
259    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
261    }
262}
263
264#[cfg(feature = "app-debugfont")]
265#[doc(hidden)]
266pub mod prelude {
267    pub use super::{DebugFont, DebugFont_Scope, IDebugFont, IDebugFontMethods};
268    #[cfg(feature = "system-object")]
269    pub use crate::system::object::IObjectMethods;
270    #[cfg(feature = "system-valuetype")]
271    pub use crate::system::valuetype::IValueTypeMethods;
272    pub use crate::system::{object::IObject, valuetype::IValueType};
273}