engage/generated/unity_engine/timeline/
trackbindingtypeattribute.rs1#[cfg(feature = "unity_engine-timeline-trackbindingtypeattribute-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/trackbindingtypeattribute/TrackBindingTypeAttribute.md"))]
10 #[::unity::class(namespace = "UnityEngine.Timeline", name = "TrackBindingTypeAttribute")]
11 pub struct TrackBindingTypeAttribute {
12 #[offset(16)]
13 #[rename(name = "type")]
14 pub r#type: ::unity::SystemType,
15 #[offset(24)]
16 #[rename(name = "flags")]
17 pub flags: crate::unity_engine::timeline::trackbindingflags::TrackBindingFlags,
18 }
19}
20
21#[cfg(feature = "unity_engine-timeline-trackbindingtypeattribute-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-timeline-trackbindingtypeattribute")]
25pub trait ITrackBindingTypeAttributeMethods: ITrackBindingTypeAttribute {
26 #[doc = "`.ctor(::unity::SystemType)` overload"]
27 fn ctor(self, r#type: impl ::core::convert::Into<::unity::SystemType>) -> () {
28 unsafe {
29 let __receiver =
30 <TrackBindingTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31 ::unity::il2cpp_call!((::unity::module_base()+0x35ea5b0usize)as*mut u8,();
32(TrackBindingTypeAttribute)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type))
33 }
34 }
35 #[doc = "`.ctor(::unity::SystemType, crate::unity_engine::timeline::trackbindingflags::TrackBindingFlags)` overload"]
36 fn ctor_2(
37 self,
38 r#type: impl ::core::convert::Into<::unity::SystemType>,
39 flags: impl ::core::convert::Into<crate::unity_engine::timeline::trackbindingflags::TrackBindingFlags>,
40 ) -> () {
41 unsafe {
42 let __receiver =
43 <TrackBindingTypeAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x35ea5f0usize)as*mut u8,();
45(TrackBindingTypeAttribute)__receiver,(::unity::SystemType)::core::convert::Into::into(r#type),(crate::unity_engine::timeline::trackbindingflags::TrackBindingFlags)::core::convert::Into::into(flags))
46 }
47 }
48}
49
50#[cfg(feature = "unity_engine-timeline-trackbindingtypeattribute")]
51impl<__T: ITrackBindingTypeAttribute> ITrackBindingTypeAttributeMethods for __T {}
52
53#[cfg(feature = "unity_engine-timeline-trackbindingtypeattribute")]
54impl TrackBindingTypeAttribute {
55 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
57 }
58
59 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
60 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
61 }
62}
63
64#[cfg(feature = "unity_engine-timeline-trackbindingtypeattribute")]
65impl TrackBindingTypeAttribute {
66 #[doc = "`.ctor(::unity::SystemType)` — overload selector"]
67 pub fn new(r#type: ::unity::SystemType) -> Self {
68 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
69 panic!(
70 "{}
71::{}
72 failed to instantiate",
73 ::core::stringify!(TrackBindingTypeAttribute),
74 ::core::stringify!(new),
75 )
76 });
77 <Self as ITrackBindingTypeAttributeMethods>::ctor(this, r#type);
78 this
79 }
80
81 #[doc = "`.ctor(::unity::SystemType, crate::unity_engine::timeline::trackbindingflags::TrackBindingFlags)` — overload selector"]
82 pub fn new_2(r#type: ::unity::SystemType, flags: crate::unity_engine::timeline::trackbindingflags::TrackBindingFlags) -> Self {
83 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
84 panic!(
85 "{}
86::{}
87 failed to instantiate",
88 ::core::stringify!(TrackBindingTypeAttribute),
89 ::core::stringify!(new_2),
90 )
91 });
92 <Self as ITrackBindingTypeAttributeMethods>::ctor_2(this, r#type, flags);
93 this
94 }
95}
96
97#[cfg(feature = "unity_engine-timeline-trackbindingtypeattribute")]
98#[doc(hidden)]
99pub mod prelude {
100 pub use super::{ITrackBindingTypeAttribute, ITrackBindingTypeAttributeMethods, TrackBindingTypeAttribute};
101}