Skip to main content

engage/generated/unity_engine/profiling/experimental/
debugscreencapture.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-profiling-experimental-debugscreencapture-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/unity_engine/profiling/experimental/debugscreencapture/DebugScreenCapture.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct DebugScreenCapture {}
17    impl ::unity::ClassIdentity for DebugScreenCapture {
18        const NAME: &'static str = "DebugScreenCapture";
19        const NAMESPACE: &'static str = "UnityEngine.Profiling.Experimental";
20
21        fn class() -> ::unity::Class {
22            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24        }
25    }
26    impl ::unity::IlType for DebugScreenCapture {
27        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29        }
30    }
31}
32
33#[cfg(feature = "unity_engine-profiling-experimental-debugscreencapture-types")]
34pub use __types::*;
35
36#[cfg(feature = "unity_engine-profiling-experimental-debugscreencapture")]
37impl DebugScreenCapture {
38    #[doc = "`set_imageFormat(crate::unity_engine::textureformat::TextureFormat)` overload"]
39    pub fn set_image_format(&mut self, value: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>) -> () {
40        unsafe {
41            ::unity::il2cpp_call!((::unity::module_base()+0x2c4be60usize)as*mut u8,();
42(*mut DebugScreenCapture)self as*mut DebugScreenCapture,(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(value))
43        }
44    }
45
46    #[doc = "`set_width(i32)` overload"]
47    pub fn set_width(&mut self, value: impl ::core::convert::Into<i32>) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2c4be70usize)as*mut u8,();
50(*mut DebugScreenCapture)self as*mut DebugScreenCapture,(i32)::core::convert::Into::into(value))
51        }
52    }
53
54    #[doc = "`set_height(i32)` overload"]
55    pub fn set_height(&mut self, value: impl ::core::convert::Into<i32>) -> () {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x2c4be80usize)as*mut u8,();
58(*mut DebugScreenCapture)self as*mut DebugScreenCapture,(i32)::core::convert::Into::into(value))
59        }
60    }
61}
62
63#[cfg(feature = "unity_engine-profiling-experimental-debugscreencapture")]
64impl DebugScreenCapture {
65    pub fn set_image_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
67    }
68
69    pub fn set_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
71    }
72
73    pub fn set_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
75    }
76}
77
78#[cfg(feature = "unity_engine-profiling-experimental-debugscreencapture")]
79#[doc(hidden)]
80pub mod prelude {
81    pub use super::DebugScreenCapture;
82    #[cfg(feature = "system-object")]
83    pub use crate::system::object::IObjectMethods;
84    #[cfg(feature = "system-valuetype")]
85    pub use crate::system::valuetype::IValueTypeMethods;
86    pub use crate::system::{object::IObject, valuetype::IValueType};
87}