Skip to main content

engage/generated/unity_engine/timeline/
imarker_interface.rs

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