engage/generated/app/
screenshot.rs1#[cfg(feature = "app-screenshot-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/screenshot/ScreenShot.md"))]
20 #[::unity::class(namespace = "App", name = "ScreenShot")]
21 #[parent(crate::app::singletonmonobehaviour_1::SingletonMonoBehaviour_1<crate::app::screenshot::ScreenShot>)]
22 pub struct ScreenShot {}
23}
24
25#[cfg(feature = "app-screenshot-types")]
26pub use __types::*;
27
28#[cfg(feature = "app-screenshot")]
29impl ScreenShot {
30 #[doc = "`Save(::unity::Il2CppString)` overload"]
31 pub fn save(name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
32 unsafe {
33 ::unity::il2cpp_call!((::unity::module_base()+0x1ec86f0usize)as*mut u8,();
34(::unity::Il2CppString)::core::convert::Into::into(name))
35 }
36 }
37}
38
39#[cfg(feature = "app-screenshot")]
40pub trait IScreenShotMethods: IScreenShot {
41 #[doc = "`.ctor()` overload"]
42 fn ctor(self) -> () {
43 unsafe {
44 let __receiver = <ScreenShot as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 ::unity::il2cpp_call!((::unity::module_base()+0x1ec8700usize)as*mut u8,();
46(ScreenShot)__receiver)
47 }
48 }
49}
50
51#[cfg(feature = "app-screenshot")]
52impl<__T: IScreenShot> IScreenShotMethods for __T {}
53
54#[cfg(feature = "app-screenshot")]
55impl ScreenShot {
56 pub fn save_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
58 }
59
60 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
61 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
62 }
63}
64
65#[cfg(feature = "app-screenshot")]
66impl ScreenShot {
67 #[doc = "`.ctor()` — no args"]
68 pub fn new() -> Self {
69 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
70 panic!(
71 "{}
72::{}
73 failed to instantiate",
74 ::core::stringify!(ScreenShot),
75 ::core::stringify!(new),
76 )
77 });
78 <Self as IScreenShotMethods>::ctor(this);
79 this
80 }
81}
82
83#[cfg(feature = "app-screenshot")]
84#[doc(hidden)]
85pub mod prelude {
86 pub use super::{IScreenShot, IScreenShotMethods, ScreenShot};
87 #[cfg(feature = "app-singletonmonobehaviour_1")]
88 pub use crate::app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1Methods;
89 #[cfg(feature = "system-object")]
90 pub use crate::system::object::IObjectMethods;
91 #[cfg(feature = "unity_engine-behaviour")]
92 pub use crate::unity_engine::behaviour::IBehaviourMethods;
93 #[cfg(feature = "unity_engine-component")]
94 pub use crate::unity_engine::component::IComponentMethods;
95 #[cfg(feature = "unity_engine-monobehaviour")]
96 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
97 #[cfg(feature = "unity_engine-object_2")]
98 pub use crate::unity_engine::object_2::IObject_2Methods;
99 pub use crate::{
100 app::singletonmonobehaviour_1::ISingletonMonoBehaviour_1,
101 system::object::IObject,
102 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
103 };
104}