Skip to main content

engage/generated/unity_engine/
inspectornameattribute.rs

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