engage/generated/unity_engine/timeline/
trackcolorattribute.rs1#[cfg(feature = "unity_engine-timeline-trackcolorattribute-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/trackcolorattribute/TrackColorAttribute.md"))]
10 #[::unity::class(namespace = "UnityEngine.Timeline", name = "TrackColorAttribute")]
11 pub struct TrackColorAttribute {
12 #[offset(16)]
13 #[rename(name = "m_Color")]
14 pub m_color: crate::unity_engine::color::Color,
15 }
16}
17
18#[cfg(feature = "unity_engine-timeline-trackcolorattribute-types")]
19pub use __types::*;
20
21#[cfg(feature = "unity_engine-timeline-trackcolorattribute")]
22pub trait ITrackColorAttributeMethods: ITrackColorAttribute {
23 #[doc = "`.ctor(f32, f32, f32)` overload"]
24 fn ctor(self, r: impl ::core::convert::Into<f32>, g: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>) -> () {
25 unsafe {
26 let __receiver = <TrackColorAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
27 ::unity::il2cpp_call!((::unity::module_base()+0x35ea6c0usize)as*mut u8,();
28(TrackColorAttribute)__receiver,(f32)::core::convert::Into::into(r),(f32)::core::convert::Into::into(g),(f32)::core::convert::Into::into(b))
29 }
30 }
31}
32
33#[cfg(feature = "unity_engine-timeline-trackcolorattribute")]
34impl<__T: ITrackColorAttribute> ITrackColorAttributeMethods for __T {}
35
36#[cfg(feature = "unity_engine-timeline-trackcolorattribute")]
37impl TrackColorAttribute {
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-trackcolorattribute")]
44impl TrackColorAttribute {
45 #[doc = "`.ctor(f32, f32, f32)` — overload selector"]
46 pub fn new(r: f32, g: f32, b: f32) -> Self {
47 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
48 panic!(
49 "{}
50::{}
51 failed to instantiate",
52 ::core::stringify!(TrackColorAttribute),
53 ::core::stringify!(new),
54 )
55 });
56 <Self as ITrackColorAttributeMethods>::ctor(this, r, g, b);
57 this
58 }
59}
60
61#[cfg(feature = "unity_engine-timeline-trackcolorattribute")]
62#[doc(hidden)]
63pub mod prelude {
64 pub use super::{ITrackColorAttribute, ITrackColorAttributeMethods, TrackColorAttribute};
65}