Skip to main content

engage/generated/app/
backgroundmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-backgroundmanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/backgroundmanager/BackgroundManager_BindType.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct BackgroundManager_BindType {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for BackgroundManager_BindType {
21        const NAME: &'static str = "BackgroundManager.BindType";
22        const NAMESPACE: &'static str = "App";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for BackgroundManager_BindType {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl BackgroundManager_BindType {
35        pub fn take_new_capture() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn use_prev_capture() -> Self {
40            Self { value: 1 }
41        }
42    }
43
44    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/backgroundmanager/BackgroundManager.md"))]
45    #[::unity::class(namespace = "App", name = "BackgroundManager")]
46    #[parent(crate::system::object::Object)]
47    pub struct BackgroundManager {
48        #[static_field]
49        #[rename(name = "s_Binder")]
50        pub s_binder: crate::app::bindholder::BindHolder,
51        #[static_field]
52        #[rename(name = "s_Camera")]
53        pub s_camera: crate::unity_engine::camera::Camera,
54        #[static_field]
55        #[rename(name = "s_IsCaptured")]
56        pub s_is_captured: bool,
57        #[static_field]
58        #[rename(name = "s_CaptureCount")]
59        pub s_capture_count: i32,
60    }
61}
62
63#[cfg(feature = "app-backgroundmanager-types")]
64pub use __types::*;
65
66#[cfg(feature = "app-backgroundmanager")]
67impl BackgroundManager {
68    #[doc = "`SetCamera(crate::unity_engine::camera::Camera, bool)` overload"]
69    pub fn set_camera(camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>, enable: impl ::core::convert::Into<bool>) -> () {
70        unsafe {
71            ::unity::il2cpp_call!((::unity::module_base()+0x2122000usize)as*mut u8,();
72(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(bool)::core::convert::Into::into(enable))
73        }
74    }
75
76    #[doc = "`SetCapture(crate::unity_engine::camera::Camera, bool)` overload"]
77    pub fn set_capture(camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>, enable: impl ::core::convert::Into<bool>) -> () {
78        unsafe {
79            ::unity::il2cpp_call!((::unity::module_base()+0x21220f0usize)as*mut u8,();
80(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(bool)::core::convert::Into::into(enable))
81        }
82    }
83
84    #[doc = "`SetWallPaper(bool)` overload"]
85    pub fn set_wall_paper(enable: impl ::core::convert::Into<bool>) -> () {
86        unsafe {
87            ::unity::il2cpp_call!((::unity::module_base()+0x2122210usize)as*mut u8,();
88(bool)::core::convert::Into::into(enable))
89        }
90    }
91
92    #[doc = "`SetBlur(bool)` overload"]
93    pub fn set_blur(enable: impl ::core::convert::Into<bool>) -> () {
94        unsafe {
95            ::unity::il2cpp_call!((::unity::module_base()+0x2122490usize)as*mut u8,();
96(bool)::core::convert::Into::into(enable))
97        }
98    }
99
100    #[doc = "`SetCapture(bool)` overload"]
101    pub fn set_capture_2(enable: impl ::core::convert::Into<bool>) -> () {
102        unsafe {
103            ::unity::il2cpp_call!((::unity::module_base()+0x2122590usize)as*mut u8,();
104(bool)::core::convert::Into::into(enable))
105        }
106    }
107
108    #[doc = "`GetBackground()` overload"]
109    pub fn get_background() -> i32 {
110        unsafe {
111            ::unity::il2cpp_call!((::unity::module_base()+0x2122730usize)as*mut u8,i32;
112            )
113        }
114    }
115
116    #[doc = "`Bind(crate::app::backgroundmanager::BackgroundManager_BindType)` overload"]
117    pub fn bind(r#type: impl ::core::convert::Into<crate::app::backgroundmanager::BackgroundManager_BindType>) -> () {
118        unsafe {
119            ::unity::il2cpp_call!((::unity::module_base()+0x2122780usize)as*mut u8,();
120(crate::app::backgroundmanager::BackgroundManager_BindType)::core::convert::Into::into(r#type))
121        }
122    }
123
124    #[doc = "`Bind()` overload"]
125    pub fn bind_2() -> () {
126        unsafe {
127            ::unity::il2cpp_call!((::unity::module_base()+0x2122980usize)as*mut u8,();
128            )
129        }
130    }
131
132    #[doc = "`Update()` overload"]
133    pub fn update() -> () {
134        unsafe {
135            ::unity::il2cpp_call!((::unity::module_base()+0x21229f0usize)as*mut u8,();
136            )
137        }
138    }
139
140    #[doc = "`Unbind()` overload"]
141    pub fn unbind() -> () {
142        unsafe {
143            ::unity::il2cpp_call!((::unity::module_base()+0x2122b00usize)as*mut u8,();
144            )
145        }
146    }
147
148    #[doc = "`IsBind()` overload"]
149    pub fn is_bind() -> bool {
150        unsafe {
151            ::unity::il2cpp_call!((::unity::module_base()+0x2122eb0usize)as*mut u8,bool;
152            )
153        }
154    }
155
156    #[doc = "`IsCaptured()` overload"]
157    pub fn is_captured() -> bool {
158        unsafe {
159            ::unity::il2cpp_call!((::unity::module_base()+0x2122f20usize)as*mut u8,bool;
160            )
161        }
162    }
163
164    #[doc = "`.cctor()` overload"]
165    pub fn cctor() -> () {
166        unsafe {
167            ::unity::il2cpp_call!((::unity::module_base()+0x2122fa0usize)as*mut u8,();
168            )
169        }
170    }
171}
172
173#[cfg(feature = "app-backgroundmanager")]
174pub trait IBackgroundManagerMethods: IBackgroundManager {
175    #[doc = "`.ctor()` overload"]
176    fn ctor(self) -> () {
177        unsafe {
178            let __receiver = <BackgroundManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            ::unity::il2cpp_call!((::unity::module_base()+0x2122f90usize)as*mut u8,();
180(BackgroundManager)__receiver)
181        }
182    }
183}
184
185#[cfg(feature = "app-backgroundmanager")]
186impl<__T: IBackgroundManager> IBackgroundManagerMethods for __T {}
187
188#[cfg(feature = "app-backgroundmanager")]
189impl BackgroundManager {
190    pub fn set_camera_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
192    }
193
194    pub fn set_capture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
196    }
197
198    pub fn set_wall_paper_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
200    }
201
202    pub fn set_blur_method_info() -> &'static ::unity::il2cpp::MethodInfo {
203        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
204    }
205
206    pub fn set_capture_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
207        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
208    }
209
210    pub fn get_background_method_info() -> &'static ::unity::il2cpp::MethodInfo {
211        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
212    }
213
214    pub fn bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
215        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
216    }
217
218    pub fn bind_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
219        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
220    }
221
222    pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
224    }
225
226    pub fn unbind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
228    }
229
230    pub fn is_bind_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
232    }
233
234    pub fn is_captured_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
236    }
237
238    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
240    }
241
242    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
244    }
245}
246
247#[cfg(feature = "app-backgroundmanager")]
248impl BackgroundManager {
249    #[doc = "`.ctor()` — no args"]
250    pub fn new() -> Self {
251        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
252            panic!(
253                "{}
254::{}
255 failed to instantiate",
256                ::core::stringify!(BackgroundManager),
257                ::core::stringify!(new),
258            )
259        });
260        <Self as IBackgroundManagerMethods>::ctor(this);
261        this
262    }
263}
264
265#[cfg(feature = "app-backgroundmanager")]
266#[doc(hidden)]
267pub mod prelude {
268    pub use super::{BackgroundManager, BackgroundManager_BindType, IBackgroundManager, IBackgroundManagerMethods};
269    #[cfg(feature = "system-object")]
270    pub use crate::system::object::IObjectMethods;
271    #[cfg(feature = "system-enum")]
272    pub use crate::system::r#enum::IEnumMethods;
273    #[cfg(feature = "system-valuetype")]
274    pub use crate::system::valuetype::IValueTypeMethods;
275    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
276}