Skip to main content

engage/generated/unity_engine/ui/coroutine_tween/
itweenvalue.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-ui-coroutine_tween-itweenvalue-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/ui/coroutine_tween/itweenvalue/ITweenValue.md"))]
10    #[::unity::class(namespace = "UnityEngine.UI.CoroutineTween", name = "ITweenValue")]
11    pub struct ITweenValue {}
12}
13
14#[cfg(feature = "unity_engine-ui-coroutine_tween-itweenvalue-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-ui-coroutine_tween-itweenvalue")]
18pub trait IITweenValueMethods: IITweenValue {
19    #[doc = "`TweenValue(f32)` overload"]
20    fn tween_value(self, float_percentage: impl ::core::convert::Into<f32>) -> () {
21        unsafe {
22            let __receiver = <ITweenValue 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                        <ITweenValue as ::unity::ClassIdentity>::NAME,
35                        "TweenValue",
36                    )
37                });
38                let __inner: extern "C" fn(ITweenValue, f32, ::unity::OptionalMethod) -> () = ::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, ::core::convert::Into::into(float_percentage), __mi)
41            }
42        }
43    }
44    #[doc = "`get_ignoreTimeScale()` overload"]
45    fn get_ignore_time_scale(self) -> bool {
46        unsafe {
47            let __receiver = <ITweenValue 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                        <ITweenValue as ::unity::ClassIdentity>::NAME,
60                        "get_ignoreTimeScale",
61                    )
62                });
63                let __inner: extern "C" fn(ITweenValue, ::unity::OptionalMethod) -> bool = ::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, __mi)
66            }
67        }
68    }
69    #[doc = "`get_duration()` overload"]
70    fn get_duration(self) -> f32 {
71        unsafe {
72            let __receiver = <ITweenValue 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                        <ITweenValue as ::unity::ClassIdentity>::NAME,
85                        "get_duration",
86                    )
87                });
88                let __inner: extern "C" fn(ITweenValue, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__vi.method_ptr);
89                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
90                __inner(__receiver, __mi)
91            }
92        }
93    }
94    #[doc = "`ValidTarget()` overload"]
95    fn valid_target(self) -> bool {
96        unsafe {
97            let __receiver = <ITweenValue as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            {
99                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
101                    panic!(
102                        "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107                        3usize,
108                        __vt.len(),
109                        <ITweenValue as ::unity::ClassIdentity>::NAME,
110                        "ValidTarget",
111                    )
112                });
113                let __inner: extern "C" fn(ITweenValue, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
114                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
115                __inner(__receiver, __mi)
116            }
117        }
118    }
119}
120
121#[cfg(feature = "unity_engine-ui-coroutine_tween-itweenvalue")]
122impl<__T: IITweenValue> IITweenValueMethods for __T {}
123
124#[cfg(feature = "unity_engine-ui-coroutine_tween-itweenvalue")]
125impl ITweenValue {
126    pub fn tween_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
128    }
129
130    pub fn get_ignore_time_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
132    }
133
134    pub fn get_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
136    }
137
138    pub fn valid_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
140    }
141}
142
143#[cfg(feature = "unity_engine-ui-coroutine_tween-itweenvalue")]
144impl ITweenValue {
145    #[doc = "Direct (non-virtual) call to `ITweenValue`'s own `TweenValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
146    pub unsafe fn tween_value(this: impl ::core::convert::Into<::unity::IlInstance>, float_percentage: f32) -> () {
147        let __mi = Self::tween_value_method_info();
148        let __inner: extern "C" fn(::unity::IlInstance, f32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
149        __inner(this.into(), float_percentage, ::core::option::Option::None)
150    }
151
152    #[doc = "Direct (non-virtual) call to `ITweenValue`'s own `get_ignoreTimeScale`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
153    pub unsafe fn get_ignore_time_scale(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
154        let __mi = Self::get_ignore_time_scale_method_info();
155        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
156        __inner(this.into(), ::core::option::Option::None)
157    }
158
159    #[doc = "Direct (non-virtual) call to `ITweenValue`'s own `get_duration`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
160    pub unsafe fn get_duration(this: impl ::core::convert::Into<::unity::IlInstance>) -> f32 {
161        let __mi = Self::get_duration_method_info();
162        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> f32 = ::core::mem::transmute(__mi.method_ptr);
163        __inner(this.into(), ::core::option::Option::None)
164    }
165
166    #[doc = "Direct (non-virtual) call to `ITweenValue`'s own `ValidTarget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
167    pub unsafe fn valid_target(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
168        let __mi = Self::valid_target_method_info();
169        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
170        __inner(this.into(), ::core::option::Option::None)
171    }
172}
173
174#[cfg(feature = "unity_engine-ui-coroutine_tween-itweenvalue")]
175#[doc(hidden)]
176pub mod prelude {
177    pub use super::{IITweenValue, IITweenValueMethods, ITweenValue};
178}