Skip to main content

engage/generated/tm_pro/
tmp_colorgradient.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_colorgradient-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_colorgradient/TMP_ColorGradient.md"))]
17    #[::unity::class(namespace = "TMPro", name = "TMP_ColorGradient")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    pub struct TMP_ColorGradient {
20        #[offset(24)]
21        #[rename(name = "colorMode")]
22        pub color_mode: crate::tm_pro::colormode::ColorMode,
23        #[offset(28)]
24        #[rename(name = "topLeft")]
25        pub top_left: crate::unity_engine::color::Color,
26        #[offset(44)]
27        #[rename(name = "topRight")]
28        pub top_right: crate::unity_engine::color::Color,
29        #[offset(60)]
30        #[rename(name = "bottomLeft")]
31        pub bottom_left: crate::unity_engine::color::Color,
32        #[offset(76)]
33        #[rename(name = "bottomRight")]
34        pub bottom_right: crate::unity_engine::color::Color,
35        #[static_field]
36        #[rename(name = "k_DefaultColorMode")]
37        pub k_default_color_mode: crate::tm_pro::colormode::ColorMode,
38        #[static_field]
39        #[rename(name = "k_DefaultColor")]
40        pub k_default_color: crate::unity_engine::color::Color,
41    }
42}
43
44#[cfg(feature = "tm_pro-tmp_colorgradient-types")]
45pub use __types::*;
46
47#[cfg(feature = "tm_pro-tmp_colorgradient")]
48impl TMP_ColorGradient {
49    #[doc = "`.cctor()` overload"]
50    pub fn cctor() -> () {
51        unsafe {
52            ::unity::il2cpp_call!((::unity::module_base()+0x2d91670usize)as*mut u8,();
53            )
54        }
55    }
56}
57
58#[cfg(feature = "tm_pro-tmp_colorgradient")]
59pub trait ITMP_ColorGradientMethods: ITMP_ColorGradient {
60    #[doc = "`.ctor()` overload"]
61    fn ctor(self) -> () {
62        unsafe {
63            let __receiver = <TMP_ColorGradient as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            ::unity::il2cpp_call!((::unity::module_base()+0x2d91430usize)as*mut u8,();
65(TMP_ColorGradient)__receiver)
66        }
67    }
68    #[doc = "`.ctor(crate::unity_engine::color::Color)` overload"]
69    fn ctor_2(self, color: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
70        unsafe {
71            let __receiver = <TMP_ColorGradient as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x2d91500usize)as*mut u8,();
73(TMP_ColorGradient)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(color))
74        }
75    }
76    #[doc = "`.ctor(crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color)` overload"]
77    fn ctor_3(
78        self,
79        color0: impl ::core::convert::Into<crate::unity_engine::color::Color>,
80        color1: impl ::core::convert::Into<crate::unity_engine::color::Color>,
81        color2: impl ::core::convert::Into<crate::unity_engine::color::Color>,
82        color3: impl ::core::convert::Into<crate::unity_engine::color::Color>,
83    ) -> () {
84        unsafe {
85            let __receiver = <TMP_ColorGradient as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x2d91590usize)as*mut u8,();
87(TMP_ColorGradient)__receiver,(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))
88        }
89    }
90}
91
92#[cfg(feature = "tm_pro-tmp_colorgradient")]
93impl<__T: ITMP_ColorGradient> ITMP_ColorGradientMethods for __T {}
94
95#[cfg(feature = "tm_pro-tmp_colorgradient")]
96impl TMP_ColorGradient {
97    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99    }
100
101    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103    }
104
105    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
107    }
108
109    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
111    }
112}
113
114#[cfg(feature = "tm_pro-tmp_colorgradient")]
115impl TMP_ColorGradient {
116    #[doc = "`.ctor()` — no args"]
117    pub fn new() -> Self {
118        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
119            panic!(
120                "{}
121::{}
122 failed to instantiate",
123                ::core::stringify!(TMP_ColorGradient),
124                ::core::stringify!(new),
125            )
126        });
127        <Self as ITMP_ColorGradientMethods>::ctor(this);
128        this
129    }
130
131    #[doc = "`.ctor(crate::unity_engine::color::Color)` — overload selector"]
132    pub fn new_2(color: crate::unity_engine::color::Color) -> Self {
133        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
134            panic!(
135                "{}
136::{}
137 failed to instantiate",
138                ::core::stringify!(TMP_ColorGradient),
139                ::core::stringify!(new_2),
140            )
141        });
142        <Self as ITMP_ColorGradientMethods>::ctor_2(this, color);
143        this
144    }
145
146    #[doc = "`.ctor(crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color, crate::unity_engine::color::Color)` — overload selector"]
147    pub fn new_3(
148        color0: crate::unity_engine::color::Color,
149        color1: crate::unity_engine::color::Color,
150        color2: crate::unity_engine::color::Color,
151        color3: crate::unity_engine::color::Color,
152    ) -> Self {
153        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
154            panic!(
155                "{}
156::{}
157 failed to instantiate",
158                ::core::stringify!(TMP_ColorGradient),
159                ::core::stringify!(new_3),
160            )
161        });
162        <Self as ITMP_ColorGradientMethods>::ctor_3(this, color0, color1, color2, color3);
163        this
164    }
165}
166
167#[cfg(feature = "tm_pro-tmp_colorgradient")]
168#[doc(hidden)]
169pub mod prelude {
170    pub use super::{ITMP_ColorGradient, ITMP_ColorGradientMethods, TMP_ColorGradient};
171    #[cfg(feature = "system-object")]
172    pub use crate::system::object::IObjectMethods;
173    #[cfg(feature = "unity_engine-object_2")]
174    pub use crate::unity_engine::object_2::IObject_2Methods;
175    #[cfg(feature = "unity_engine-scriptableobject")]
176    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
177    pub use crate::{
178        system::object::IObject,
179        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
180    };
181}