Skip to main content

engage/generated/unity_engine/timeline/
icurvesowner.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-icurvesowner-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/icurvesowner/ICurvesOwner.md"))]
10    #[::unity::class(namespace = "UnityEngine.Timeline", name = "ICurvesOwner")]
11    pub struct ICurvesOwner {}
12}
13
14#[cfg(feature = "unity_engine-timeline-icurvesowner-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-timeline-icurvesowner")]
18pub trait IICurvesOwnerMethods: IICurvesOwner {
19    #[doc = "`get_defaultCurvesName()` overload"]
20    fn get_default_curves_name(self) -> ::unity::Il2CppString {
21        unsafe {
22            let __receiver = <ICurvesOwner as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23            {
24                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26                    panic!(
27                        "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32                        0usize,
33                        __vt.len(),
34                        <ICurvesOwner as ::unity::ClassIdentity>::NAME,
35                        "get_defaultCurvesName",
36                    )
37                });
38                let __inner: extern "C" fn(ICurvesOwner, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
39                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
40                __inner(__receiver, __mi)
41            }
42        }
43    }
44    #[doc = "`get_asset()` overload"]
45    fn get_asset(self) -> crate::unity_engine::object_2::Object_2 {
46        unsafe {
47            let __receiver = <ICurvesOwner as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            {
49                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
51                    panic!(
52                        "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57                        1usize,
58                        __vt.len(),
59                        <ICurvesOwner as ::unity::ClassIdentity>::NAME,
60                        "get_asset",
61                    )
62                });
63                let __inner: extern "C" fn(ICurvesOwner, ::unity::OptionalMethod) -> crate::unity_engine::object_2::Object_2 =
64                    ::core::mem::transmute(__vi.method_ptr);
65                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66                __inner(__receiver, __mi)
67            }
68        }
69    }
70    #[doc = "`get_assetOwner()` overload"]
71    fn get_asset_owner(self) -> crate::unity_engine::object_2::Object_2 {
72        unsafe {
73            let __receiver = <ICurvesOwner as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            {
75                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
76                let __vi = *__vt.get(2usize).unwrap_or_else(|| {
77                    panic!(
78                        "unity: virtual slot {}
79 out of range (vtable len {}
80) on the runtime class behind {}
81 (method `{}
82`)",
83                        2usize,
84                        __vt.len(),
85                        <ICurvesOwner as ::unity::ClassIdentity>::NAME,
86                        "get_assetOwner",
87                    )
88                });
89                let __inner: extern "C" fn(ICurvesOwner, ::unity::OptionalMethod) -> crate::unity_engine::object_2::Object_2 =
90                    ::core::mem::transmute(__vi.method_ptr);
91                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92                __inner(__receiver, __mi)
93            }
94        }
95    }
96    #[doc = "`get_targetTrack()` overload"]
97    fn get_target_track(self) -> crate::unity_engine::timeline::trackasset::TrackAsset {
98        unsafe {
99            let __receiver = <ICurvesOwner as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            {
101                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
103                    panic!(
104                        "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109                        3usize,
110                        __vt.len(),
111                        <ICurvesOwner as ::unity::ClassIdentity>::NAME,
112                        "get_targetTrack",
113                    )
114                });
115                let __inner: extern "C" fn(ICurvesOwner, ::unity::OptionalMethod) -> crate::unity_engine::timeline::trackasset::TrackAsset =
116                    ::core::mem::transmute(__vi.method_ptr);
117                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
118                __inner(__receiver, __mi)
119            }
120        }
121    }
122}
123
124#[cfg(feature = "unity_engine-timeline-icurvesowner")]
125impl<__T: IICurvesOwner> IICurvesOwnerMethods for __T {}
126
127#[cfg(feature = "unity_engine-timeline-icurvesowner")]
128impl ICurvesOwner {
129    pub fn get_default_curves_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
131    }
132
133    pub fn get_asset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
134        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
135    }
136
137    pub fn get_asset_owner_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
139    }
140
141    pub fn get_target_track_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
143    }
144}
145
146#[cfg(feature = "unity_engine-timeline-icurvesowner")]
147impl ICurvesOwner {
148    #[doc = "Direct (non-virtual) call to `ICurvesOwner`'s own `get_defaultCurvesName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
149    pub unsafe fn get_default_curves_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
150        let __mi = Self::get_default_curves_name_method_info();
151        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
152        __inner(this.into(), ::core::option::Option::None)
153    }
154
155    #[doc = "Direct (non-virtual) call to `ICurvesOwner`'s own `get_asset`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
156    pub unsafe fn get_asset(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::object_2::Object_2 {
157        let __mi = Self::get_asset_method_info();
158        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::object_2::Object_2 =
159            ::core::mem::transmute(__mi.method_ptr);
160        __inner(this.into(), ::core::option::Option::None)
161    }
162
163    #[doc = "Direct (non-virtual) call to `ICurvesOwner`'s own `get_assetOwner`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
164    pub unsafe fn get_asset_owner(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::object_2::Object_2 {
165        let __mi = Self::get_asset_owner_method_info();
166        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::object_2::Object_2 =
167            ::core::mem::transmute(__mi.method_ptr);
168        __inner(this.into(), ::core::option::Option::None)
169    }
170
171    #[doc = "Direct (non-virtual) call to `ICurvesOwner`'s own `get_targetTrack`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
172    pub unsafe fn get_target_track(this: impl ::core::convert::Into<::unity::IlInstance>) -> crate::unity_engine::timeline::trackasset::TrackAsset {
173        let __mi = Self::get_target_track_method_info();
174        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> crate::unity_engine::timeline::trackasset::TrackAsset =
175            ::core::mem::transmute(__mi.method_ptr);
176        __inner(this.into(), ::core::option::Option::None)
177    }
178}
179
180#[cfg(feature = "unity_engine-timeline-icurvesowner")]
181#[doc(hidden)]
182pub mod prelude {
183    pub use super::{ICurvesOwner, IICurvesOwner, IICurvesOwnerMethods};
184}