Skip to main content

engage/generated/app/
logo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-logo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        app::singletonmonobehaviour_1::{ISingletonMonoBehaviour_1, SingletonMonoBehaviour_1},
10        system::object::{IObject, Object},
11        unity_engine::{
12            behaviour::{Behaviour, IBehaviour},
13            component::{Component, IComponent},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16        },
17    };
18
19    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/logo/Logo.md"))]
20    #[::unity::class(namespace = "App", name = "Logo")]
21    #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::logo::Logo>)]
22    pub struct Logo {}
23}
24
25#[cfg(feature = "app-logo-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-logo")]
29impl Logo {
30    #[doc = "`ShowImage(bool, ::unity::Il2CppString)` overload"]
31    pub fn show_image(enable: impl ::core::convert::Into<bool>, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
32        unsafe {
33            ::unity::il2cpp_call!((::unity::module_base()+0x1bef870usize)as*mut u8,();
34(bool)::core::convert::Into::into(enable),(::unity::Il2CppString)::core::convert::Into::into(name))
35        }
36    }
37
38    #[doc = "`ShowLogo(bool)` overload"]
39    pub fn show_logo(enable: impl ::core::convert::Into<bool>) -> () {
40        unsafe {
41            ::unity::il2cpp_call!((::unity::module_base()+0x1befa20usize)as*mut u8,();
42(bool)::core::convert::Into::into(enable))
43        }
44    }
45
46    #[doc = "`ShowIcon(bool)` overload"]
47    pub fn show_icon(enable: impl ::core::convert::Into<bool>) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x1befa80usize)as*mut u8,();
50(bool)::core::convert::Into::into(enable))
51        }
52    }
53}
54
55#[cfg(feature = "app-logo")]
56pub trait ILogoMethods: ILogo {
57    #[doc = "`.ctor()` overload"]
58    fn ctor(self) -> () {
59        unsafe {
60            let __receiver = <Logo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            ::unity::il2cpp_call!((::unity::module_base()+0x1befae0usize)as*mut u8,();
62(Logo)__receiver)
63        }
64    }
65}
66
67#[cfg(feature = "app-logo")]
68impl<__T: ILogo> ILogoMethods for __T {}
69
70#[cfg(feature = "app-logo")]
71impl Logo {
72    pub fn show_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74    }
75
76    pub fn show_logo_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78    }
79
80    pub fn show_icon_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
82    }
83
84    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
86    }
87}
88
89#[cfg(feature = "app-logo")]
90impl Logo {
91    #[doc = "`.ctor()` — no args"]
92    pub fn new() -> Self {
93        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
94            panic!(
95                "{}
96::{}
97 failed to instantiate",
98                ::core::stringify!(Logo),
99                ::core::stringify!(new),
100            )
101        });
102        <Self as ILogoMethods>::ctor(this);
103        this
104    }
105}
106
107#[cfg(feature = "app-logo")]
108#[doc(hidden)]
109pub mod prelude {
110    pub use super::{ILogo, ILogoMethods, Logo};
111    #[cfg(feature = "app-singletonmonobehaviour_1")]
112    pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
113    #[cfg(feature = "system-object")]
114    pub use crate::system::object::IObjectMethods;
115    #[cfg(feature = "unity_engine-behaviour")]
116    pub use crate::unity_engine::behaviour::IBehaviourMethods;
117    #[cfg(feature = "unity_engine-component")]
118    pub use crate::unity_engine::component::IComponentMethods;
119    #[cfg(feature = "unity_engine-monobehaviour")]
120    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
121    #[cfg(feature = "unity_engine-object_2")]
122    pub use crate::unity_engine::object_2::IObject_2Methods;
123    pub use crate::{
124        app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
125        system::object::IObject,
126        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
127    };
128}