Skip to main content

engage/generated/unity_engine/timeline/
ipropertypreview.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-timeline-ipropertypreview-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/ipropertypreview/IPropertyPreview.md"))]
10    #[::unity::class(namespace = "UnityEngine.Timeline", name = "IPropertyPreview")]
11    pub struct IPropertyPreview {}
12}
13
14#[cfg(feature = "unity_engine-timeline-ipropertypreview-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-timeline-ipropertypreview")]
18pub trait IIPropertyPreviewMethods: IIPropertyPreview {
19    #[doc = "`GatherProperties(crate::unity_engine::playables::playabledirector::PlayableDirector, crate::unity_engine::timeline::ipropertycollector::IPropertyCollector)` overload"]
20    fn gather_properties(
21        self,
22        director: impl ::core::convert::Into<crate::unity_engine::playables::playabledirector::PlayableDirector>,
23        driver: impl ::core::convert::Into<crate::unity_engine::timeline::ipropertycollector::IPropertyCollector>,
24    ) -> () {
25        unsafe {
26            let __receiver = <IPropertyPreview as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
27            {
28                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
29                let __vi = *__vt.get(0usize).unwrap_or_else(|| {
30                    panic!(
31                        "unity: virtual slot {}
32 out of range (vtable len {}
33) on the runtime class behind {}
34 (method `{}
35`)",
36                        0usize,
37                        __vt.len(),
38                        <IPropertyPreview as ::unity::ClassIdentity>::NAME,
39                        "GatherProperties",
40                    )
41                });
42                let __inner: extern "C" fn(
43                    IPropertyPreview,
44                    crate::unity_engine::playables::playabledirector::PlayableDirector,
45                    crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
46                    ::unity::OptionalMethod,
47                ) -> () = ::core::mem::transmute(__vi.method_ptr);
48                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
49                __inner(
50                    __receiver,
51                    ::core::convert::Into::into(director),
52                    ::core::convert::Into::into(driver),
53                    __mi,
54                )
55            }
56        }
57    }
58}
59
60#[cfg(feature = "unity_engine-timeline-ipropertypreview")]
61impl<__T: IIPropertyPreview> IIPropertyPreviewMethods for __T {}
62
63#[cfg(feature = "unity_engine-timeline-ipropertypreview")]
64impl IPropertyPreview {
65    pub fn gather_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
67    }
68}
69
70#[cfg(feature = "unity_engine-timeline-ipropertypreview")]
71impl IPropertyPreview {
72    #[doc = "Direct (non-virtual) call to `IPropertyPreview`'s own `GatherProperties`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
73    pub unsafe fn gather_properties(
74        this: impl ::core::convert::Into<::unity::IlInstance>,
75        director: crate::unity_engine::playables::playabledirector::PlayableDirector,
76        driver: crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
77    ) -> () {
78        let __mi = Self::gather_properties_method_info();
79        let __inner: extern "C" fn(
80            ::unity::IlInstance,
81            crate::unity_engine::playables::playabledirector::PlayableDirector,
82            crate::unity_engine::timeline::ipropertycollector::IPropertyCollector,
83            ::unity::OptionalMethod,
84        ) -> () = ::core::mem::transmute(__mi.method_ptr);
85        __inner(this.into(), director, driver, ::core::option::Option::None)
86    }
87}
88
89#[cfg(feature = "unity_engine-timeline-ipropertypreview")]
90#[doc(hidden)]
91pub mod prelude {
92    pub use super::{IIPropertyPreview, IIPropertyPreviewMethods, IPropertyPreview};
93}