Skip to main content

engage/generated/tm_pro/
tmpro_eventmanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmpro_eventmanager-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmpro_eventmanager/TMPro_EventManager.md"))]
11    #[::unity::class(namespace = "TMPro", name = "TMPro_EventManager")]
12    #[parent(crate::system::object::Object)]
13    pub struct TMPro_EventManager {
14        #[static_field]
15        #[rename(name = "COMPUTE_DT_EVENT")]
16        pub compute_dt_event:
17            crate::tm_pro::fastaction_2::FastAction_2<crate::system::object::Object, crate::tm_pro::compute_dt_eventargs::Compute_DT_EventArgs>,
18        #[static_field]
19        #[rename(name = "MATERIAL_PROPERTY_EVENT")]
20        pub material_property_event: crate::tm_pro::fastaction_2::FastAction_2<bool, crate::unity_engine::material::Material>,
21        #[static_field]
22        #[rename(name = "FONT_PROPERTY_EVENT")]
23        pub font_property_event: crate::tm_pro::fastaction_2::FastAction_2<bool, crate::unity_engine::object_2::Object_2>,
24        #[static_field]
25        #[rename(name = "SPRITE_ASSET_PROPERTY_EVENT")]
26        pub sprite_asset_property_event: crate::tm_pro::fastaction_2::FastAction_2<bool, crate::unity_engine::object_2::Object_2>,
27        #[static_field]
28        #[rename(name = "TEXTMESHPRO_PROPERTY_EVENT")]
29        pub textmeshpro_property_event: crate::tm_pro::fastaction_2::FastAction_2<bool, crate::unity_engine::object_2::Object_2>,
30        #[static_field]
31        #[rename(name = "DRAG_AND_DROP_MATERIAL_EVENT")]
32        pub drag_and_drop_material_event: crate::tm_pro::fastaction_3::FastAction_3<
33            crate::unity_engine::gameobject::GameObject,
34            crate::unity_engine::material::Material,
35            crate::unity_engine::material::Material,
36        >,
37        #[static_field]
38        #[rename(name = "TEXT_STYLE_PROPERTY_EVENT")]
39        pub text_style_property_event: crate::tm_pro::fastaction_1::FastAction_1<bool>,
40        #[static_field]
41        #[rename(name = "COLOR_GRADIENT_PROPERTY_EVENT")]
42        pub color_gradient_property_event: crate::tm_pro::fastaction_1::FastAction_1<crate::unity_engine::object_2::Object_2>,
43        #[static_field]
44        #[rename(name = "TMP_SETTINGS_PROPERTY_EVENT")]
45        pub tmp_settings_property_event: crate::tm_pro::fastaction::FastAction,
46        #[static_field]
47        #[rename(name = "RESOURCE_LOAD_EVENT")]
48        pub resource_load_event: crate::tm_pro::fastaction::FastAction,
49        #[static_field]
50        #[rename(name = "TEXTMESHPRO_UGUI_PROPERTY_EVENT")]
51        pub textmeshpro_ugui_property_event: crate::tm_pro::fastaction_2::FastAction_2<bool, crate::unity_engine::object_2::Object_2>,
52        #[static_field]
53        #[rename(name = "TEXT_CHANGED_EVENT")]
54        pub text_changed_event: crate::tm_pro::fastaction_1::FastAction_1<crate::unity_engine::object_2::Object_2>,
55    }
56}
57
58#[cfg(feature = "tm_pro-tmpro_eventmanager-types")]
59pub use __types::*;
60
61#[cfg(feature = "tm_pro-tmpro_eventmanager")]
62impl TMPro_EventManager {
63    #[doc = "`ON_MATERIAL_PROPERTY_CHANGED(bool, crate::unity_engine::material::Material)` overload"]
64    pub fn on_material_property_changed(
65        is_changed: impl ::core::convert::Into<bool>,
66        mat: impl ::core::convert::Into<crate::unity_engine::material::Material>,
67    ) -> () {
68        unsafe {
69            ::unity::il2cpp_call!((::unity::module_base()+0x2e689b0usize)as*mut u8,();
70(bool)::core::convert::Into::into(is_changed),(crate::unity_engine::material::Material)::core::convert::Into::into(mat))
71        }
72    }
73
74    #[doc = "`ON_FONT_PROPERTY_CHANGED(bool, crate::unity_engine::object_2::Object_2)` overload"]
75    pub fn on_font_property_changed(
76        is_changed: impl ::core::convert::Into<bool>,
77        obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
78    ) -> () {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x2e68a50usize)as*mut u8,();
81(bool)::core::convert::Into::into(is_changed),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
82        }
83    }
84
85    #[doc = "`ON_SPRITE_ASSET_PROPERTY_CHANGED(bool, crate::unity_engine::object_2::Object_2)` overload"]
86    pub fn on_sprite_asset_property_changed(
87        is_changed: impl ::core::convert::Into<bool>,
88        obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
89    ) -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x2e68af0usize)as*mut u8,();
92(bool)::core::convert::Into::into(is_changed),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
93        }
94    }
95
96    #[doc = "`ON_TEXTMESHPRO_PROPERTY_CHANGED(bool, crate::unity_engine::object_2::Object_2)` overload"]
97    pub fn on_textmeshpro_property_changed(
98        is_changed: impl ::core::convert::Into<bool>,
99        obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
100    ) -> () {
101        unsafe {
102            ::unity::il2cpp_call!((::unity::module_base()+0x2e68b90usize)as*mut u8,();
103(bool)::core::convert::Into::into(is_changed),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
104        }
105    }
106
107    #[doc = "`ON_DRAG_AND_DROP_MATERIAL_CHANGED(crate::unity_engine::gameobject::GameObject, crate::unity_engine::material::Material, crate::unity_engine::material::Material)` overload"]
108    pub fn on_drag_and_drop_material_changed(
109        sender: impl ::core::convert::Into<crate::unity_engine::gameobject::GameObject>,
110        current_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
111        new_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
112    ) -> () {
113        unsafe {
114            ::unity::il2cpp_call!((::unity::module_base()+0x2e68c30usize)as*mut u8,();
115(crate::unity_engine::gameobject::GameObject)::core::convert::Into::into(sender),(crate::unity_engine::material::Material)::core::convert::Into::into(current_material),(crate::unity_engine::material::Material)::core::convert::Into::into(new_material))
116        }
117    }
118
119    #[doc = "`ON_TEXT_STYLE_PROPERTY_CHANGED(bool)` overload"]
120    pub fn on_text_style_property_changed(is_changed: impl ::core::convert::Into<bool>) -> () {
121        unsafe {
122            ::unity::il2cpp_call!((::unity::module_base()+0x2e68ce0usize)as*mut u8,();
123(bool)::core::convert::Into::into(is_changed))
124        }
125    }
126
127    #[doc = "`ON_COLOR_GRADIENT_PROPERTY_CHANGED(crate::unity_engine::object_2::Object_2)` overload"]
128    pub fn on_color_gradient_property_changed(obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>) -> () {
129        unsafe {
130            ::unity::il2cpp_call!((::unity::module_base()+0x2e68d70usize)as*mut u8,();
131(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
132        }
133    }
134
135    #[doc = "`ON_TEXT_CHANGED(crate::unity_engine::object_2::Object_2)` overload"]
136    pub fn on_text_changed(obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>) -> () {
137        unsafe {
138            ::unity::il2cpp_call!((::unity::module_base()+0x2e68e00usize)as*mut u8,();
139(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
140        }
141    }
142
143    #[doc = "`ON_TMP_SETTINGS_CHANGED()` overload"]
144    pub fn on_tmp_settings_changed() -> () {
145        unsafe {
146            ::unity::il2cpp_call!((::unity::module_base()+0x2e68e90usize)as*mut u8,();
147            )
148        }
149    }
150
151    #[doc = "`ON_RESOURCES_LOADED()` overload"]
152    pub fn on_resources_loaded() -> () {
153        unsafe {
154            ::unity::il2cpp_call!((::unity::module_base()+0x2e68f00usize)as*mut u8,();
155            )
156        }
157    }
158
159    #[doc = "`ON_TEXTMESHPRO_UGUI_PROPERTY_CHANGED(bool, crate::unity_engine::object_2::Object_2)` overload"]
160    pub fn on_textmeshpro_ugui_property_changed(
161        is_changed: impl ::core::convert::Into<bool>,
162        obj: impl ::core::convert::Into<crate::unity_engine::object_2::Object_2>,
163    ) -> () {
164        unsafe {
165            ::unity::il2cpp_call!((::unity::module_base()+0x2e68f70usize)as*mut u8,();
166(bool)::core::convert::Into::into(is_changed),(crate::unity_engine::object_2::Object_2)::core::convert::Into::into(obj))
167        }
168    }
169
170    #[doc = "`ON_COMPUTE_DT_EVENT(crate::system::object::Object, crate::tm_pro::compute_dt_eventargs::Compute_DT_EventArgs)` overload"]
171    pub fn on_compute_dt_event(
172        sender: impl ::core::convert::Into<crate::system::object::Object>,
173        e: impl ::core::convert::Into<crate::tm_pro::compute_dt_eventargs::Compute_DT_EventArgs>,
174    ) -> () {
175        unsafe {
176            ::unity::il2cpp_call!((::unity::module_base()+0x2e69010usize)as*mut u8,();
177(crate::system::object::Object)::core::convert::Into::into(sender),(crate::tm_pro::compute_dt_eventargs::Compute_DT_EventArgs)::core::convert::Into::into(e))
178        }
179    }
180
181    #[doc = "`.cctor()` overload"]
182    pub fn cctor() -> () {
183        unsafe {
184            ::unity::il2cpp_call!((::unity::module_base()+0x2e690b0usize)as*mut u8,();
185            )
186        }
187    }
188}
189
190#[cfg(feature = "tm_pro-tmpro_eventmanager")]
191impl TMPro_EventManager {
192    pub fn on_material_property_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
194    }
195
196    pub fn on_font_property_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
198    }
199
200    pub fn on_sprite_asset_property_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
202    }
203
204    pub fn on_textmeshpro_property_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
206    }
207
208    pub fn on_drag_and_drop_material_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
210    }
211
212    pub fn on_text_style_property_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
213        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
214    }
215
216    pub fn on_color_gradient_property_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
217        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
218    }
219
220    pub fn on_text_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
221        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
222    }
223
224    pub fn on_tmp_settings_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
225        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
226    }
227
228    pub fn on_resources_loaded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
229        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
230    }
231
232    pub fn on_textmeshpro_ugui_property_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
233        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
234    }
235
236    pub fn on_compute_dt_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
238    }
239
240    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
242    }
243}
244
245#[cfg(feature = "tm_pro-tmpro_eventmanager")]
246#[doc(hidden)]
247pub mod prelude {
248    pub use super::{ITMPro_EventManager, TMPro_EventManager};
249    pub use crate::system::object::IObject;
250    #[cfg(feature = "system-object")]
251    pub use crate::system::object::IObjectMethods;
252}