Skip to main content

engage/generated/unity_engine/rendering/
displayinfoattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-displayinfoattribute-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8
9    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/displayinfoattribute/DisplayInfoAttribute.md"))]
10    #[::unity::class(namespace = "UnityEngine.Rendering", name = "DisplayInfoAttribute")]
11    pub struct DisplayInfoAttribute {
12        #[offset(16)]
13        #[rename(name = "name")]
14        pub name: ::unity::Il2CppString,
15        #[offset(24)]
16        #[rename(name = "order")]
17        pub order: i32,
18    }
19}
20
21#[cfg(feature = "unity_engine-rendering-displayinfoattribute-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-rendering-displayinfoattribute")]
25pub trait IDisplayInfoAttributeMethods: IDisplayInfoAttribute {
26    #[doc = "`.ctor()` overload"]
27    fn ctor(self) -> () {
28        unsafe {
29            let __receiver = <DisplayInfoAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
30            ::unity::il2cpp_call!((::unity::module_base()+0x30a92e0usize)as*mut u8,();
31(DisplayInfoAttribute)__receiver)
32        }
33    }
34}
35
36#[cfg(feature = "unity_engine-rendering-displayinfoattribute")]
37impl<__T: IDisplayInfoAttribute> IDisplayInfoAttributeMethods for __T {}
38
39#[cfg(feature = "unity_engine-rendering-displayinfoattribute")]
40impl DisplayInfoAttribute {
41    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
42        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
43    }
44}
45
46#[cfg(feature = "unity_engine-rendering-displayinfoattribute")]
47impl DisplayInfoAttribute {
48    #[doc = "`.ctor()` — no args"]
49    pub fn new() -> Self {
50        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
51            panic!(
52                "{}
53::{}
54 failed to instantiate",
55                ::core::stringify!(DisplayInfoAttribute),
56                ::core::stringify!(new),
57            )
58        });
59        <Self as IDisplayInfoAttributeMethods>::ctor(this);
60        this
61    }
62}
63
64#[cfg(feature = "unity_engine-rendering-displayinfoattribute")]
65#[doc(hidden)]
66pub mod prelude {
67    pub use super::{DisplayInfoAttribute, IDisplayInfoAttribute, IDisplayInfoAttributeMethods};
68}