Skip to main content

engage/generated/tm_pro/
vertexgradient.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-vertexgradient-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/vertexgradient/VertexGradient.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct VertexGradient {
17        pub top_left: crate::unity_engine::color::Color,
18        pub top_right: crate::unity_engine::color::Color,
19        pub bottom_left: crate::unity_engine::color::Color,
20        pub bottom_right: crate::unity_engine::color::Color,
21    }
22    impl ::unity::ClassIdentity for VertexGradient {
23        const NAME: &'static str = "VertexGradient";
24        const NAMESPACE: &'static str = "TMPro";
25
26        fn class() -> ::unity::Class {
27            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29        }
30    }
31    impl ::unity::IlType for VertexGradient {
32        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34        }
35    }
36}
37
38#[cfg(feature = "tm_pro-vertexgradient-types")]
39pub use __types::*;
40
41#[cfg(feature = "tm_pro-vertexgradient")]
42impl VertexGradient {
43    #[doc = "`.ctor(crate::unity_engine::color::Color)` overload"]
44    pub fn ctor(&mut self, color: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
45        unsafe {
46            ::unity::il2cpp_call!((::unity::module_base()+0x3ea8130usize)as*mut u8,();
47(*mut VertexGradient)self as*mut VertexGradient,(crate::unity_engine::color::Color)::core::convert::Into::into(color))
48        }
49    }
50
51    #[doc = "`.ctor(crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color)` overload"]
52    pub fn ctor_2(
53        &mut self,
54        color0: impl ::core::convert::Into<crate::unity_engine::color::Color>,
55        color1: impl ::core::convert::Into<crate::unity_engine::color::Color>,
56        color2: impl ::core::convert::Into<crate::unity_engine::color::Color>,
57        color3: impl ::core::convert::Into<crate::unity_engine::color::Color>,
58    ) -> () {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x3ea8180usize)as*mut u8,();
61(*mut VertexGradient)self as*mut VertexGradient,(crate::unity_engine::color::Color)::core::convert::Into::into(color0),(crate::unity_engine::color::Color)::core::convert::Into::into(color1),(crate::unity_engine::color::Color)::core::convert::Into::into(color2),(crate::unity_engine::color::Color)::core::convert::Into::into(color3))
62        }
63    }
64}
65
66#[cfg(feature = "tm_pro-vertexgradient")]
67impl VertexGradient {
68    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
70    }
71
72    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
74    }
75}
76
77#[cfg(feature = "tm_pro-vertexgradient")]
78#[doc(hidden)]
79pub mod prelude {
80    pub use super::VertexGradient;
81    #[cfg(feature = "system-object")]
82    pub use crate::system::object::IObjectMethods;
83    #[cfg(feature = "system-valuetype")]
84    pub use crate::system::valuetype::IValueTypeMethods;
85    pub use crate::system::{object::IObject, valuetype::IValueType};
86}