Skip to main content

engage/generated/unity_engine/
screen.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-screen-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/screen/Screen.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "Screen")]
12    #[parent(crate::system::object::Object)]
13    pub struct Screen {}
14}
15
16#[cfg(feature = "unity_engine-screen-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-screen")]
20impl Screen {
21    #[doc = "`get_width()` overload"]
22    pub fn get_width() -> i32 {
23        unsafe {
24            ::unity::il2cpp_call!((::unity::module_base()+0x2f8b920usize)as*mut u8,i32;
25            )
26        }
27    }
28
29    #[doc = "`get_height()` overload"]
30    pub fn get_height() -> i32 {
31        unsafe {
32            ::unity::il2cpp_call!((::unity::module_base()+0x2f8b960usize)as*mut u8,i32;
33            )
34        }
35    }
36
37    #[doc = "`get_dpi()` overload"]
38    pub fn get_dpi() -> f32 {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x2f8b9a0usize)as*mut u8,f32;
41            )
42        }
43    }
44
45    #[doc = "`get_fullScreenMode()` overload"]
46    pub fn get_full_screen_mode() -> crate::unity_engine::fullscreenmode::FullScreenMode {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x2f8b9e0usize)as*mut u8,crate::unity_engine::fullscreenmode::FullScreenMode;
49            )
50        }
51    }
52}
53
54#[cfg(feature = "unity_engine-screen")]
55impl Screen {
56    pub fn get_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
58    }
59
60    pub fn get_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
61        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
62    }
63
64    pub fn get_dpi_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
66    }
67
68    pub fn get_full_screen_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
70    }
71}
72
73#[cfg(feature = "unity_engine-screen")]
74#[doc(hidden)]
75pub mod prelude {
76    pub use super::{IScreen, Screen};
77    pub use crate::system::object::IObject;
78    #[cfg(feature = "system-object")]
79    pub use crate::system::object::IObjectMethods;
80}