Skip to main content

engage/generated/unity_engine/timeline/
customstyleattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-customstyleattribute-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/timeline/customstyleattribute/CustomStyleAttribute.md"))]
10    #[::unity::class(namespace = "UnityEngine.Timeline", name = "CustomStyleAttribute")]
11    pub struct CustomStyleAttribute {
12        #[offset(16)]
13        #[rename(name = "ussStyle")]
14        pub uss_style: ::unity::Il2CppString,
15    }
16}
17
18#[cfg(feature = "unity_engine-timeline-customstyleattribute-types")]
19pub use __types::*;
20
21#[cfg(feature = "unity_engine-timeline-customstyleattribute")]
22pub trait ICustomStyleAttributeMethods: ICustomStyleAttribute {
23    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
24    fn ctor(self, uss_style: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
25        unsafe {
26            let __receiver = <CustomStyleAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
27            ::unity::il2cpp_call!((::unity::module_base()+0x35d5cc0usize)as*mut u8,();
28(CustomStyleAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(uss_style))
29        }
30    }
31}
32
33#[cfg(feature = "unity_engine-timeline-customstyleattribute")]
34impl<__T: ICustomStyleAttribute> ICustomStyleAttributeMethods for __T {}
35
36#[cfg(feature = "unity_engine-timeline-customstyleattribute")]
37impl CustomStyleAttribute {
38    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
39        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
40    }
41}
42
43#[cfg(feature = "unity_engine-timeline-customstyleattribute")]
44impl CustomStyleAttribute {
45    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
46    pub fn new(uss_style: ::unity::Il2CppString) -> Self {
47        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
48            panic!(
49                "{}
50::{}
51 failed to instantiate",
52                ::core::stringify!(CustomStyleAttribute),
53                ::core::stringify!(new),
54            )
55        });
56        <Self as ICustomStyleAttributeMethods>::ctor(this, uss_style);
57        this
58    }
59}
60
61#[cfg(feature = "unity_engine-timeline-customstyleattribute")]
62#[doc(hidden)]
63pub mod prelude {
64    pub use super::{CustomStyleAttribute, ICustomStyleAttribute, ICustomStyleAttributeMethods};
65}