engage/generated/tm_pro/
tmp_stylesheet.rs1#[cfg(feature = "tm_pro-tmp_stylesheet-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_stylesheet/TMP_StyleSheet.md"))]
17 #[::unity::class(namespace = "TMPro", name = "TMP_StyleSheet")]
18 #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19 pub struct TMP_StyleSheet {
20 #[offset(24)]
21 #[rename(name = "m_StyleList")]
22 pub m_style_list: crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_style::TMP_Style>,
23 #[offset(32)]
24 #[rename(name = "m_StyleLookupDictionary")]
25 pub m_style_lookup_dictionary: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, crate::tm_pro::tmp_style::TMP_Style>,
26 }
27}
28
29#[cfg(feature = "tm_pro-tmp_stylesheet-types")]
30pub use __types::*;
31
32#[cfg(feature = "tm_pro-tmp_stylesheet")]
33pub trait ITMP_StyleSheetMethods: ITMP_StyleSheet {
34 #[doc = "`get_styles()` overload"]
35 fn get_styles(self) -> crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_style::TMP_Style> {
36 unsafe {
37 let __receiver = <TMP_StyleSheet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x282e140usize)as*mut u8,crate::system::collections::generic::list_1::List_1<crate::tm_pro::tmp_style::TMP_Style> ;
39(TMP_StyleSheet)__receiver)
40 }
41 }
42 #[doc = "`Reset()` overload"]
43 fn reset(self) -> () {
44 unsafe {
45 let __receiver = <TMP_StyleSheet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x282e150usize)as*mut u8,();
47(TMP_StyleSheet)__receiver)
48 }
49 }
50 #[doc = "`GetStyle(i32)` overload"]
51 fn get_style(self, hash_code: impl ::core::convert::Into<i32>) -> crate::tm_pro::tmp_style::TMP_Style {
52 unsafe {
53 let __receiver = <TMP_StyleSheet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x282e450usize)as*mut u8,crate::tm_pro::tmp_style::TMP_Style;
55(TMP_StyleSheet)__receiver,(i32)::core::convert::Into::into(hash_code))
56 }
57 }
58 #[doc = "`GetStyle(::unity::Il2CppString)` overload"]
59 fn get_style_2(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::tm_pro::tmp_style::TMP_Style {
60 unsafe {
61 let __receiver = <TMP_StyleSheet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x282e4e0usize)as*mut u8,crate::tm_pro::tmp_style::TMP_Style;
63(TMP_StyleSheet)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
64 }
65 }
66 #[doc = "`RefreshStyles()` overload"]
67 fn refresh_styles(self) -> () {
68 unsafe {
69 let __receiver = <TMP_StyleSheet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x282e5b0usize)as*mut u8,();
71(TMP_StyleSheet)__receiver)
72 }
73 }
74 #[doc = "`LoadStyleDictionaryInternal()` overload"]
75 fn load_style_dictionary_internal(self) -> () {
76 unsafe {
77 let __receiver = <TMP_StyleSheet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x282e160usize)as*mut u8,();
79(TMP_StyleSheet)__receiver)
80 }
81 }
82 #[doc = "`.ctor()` overload"]
83 fn ctor(self) -> () {
84 unsafe {
85 let __receiver = <TMP_StyleSheet as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x282e5c0usize)as*mut u8,();
87(TMP_StyleSheet)__receiver)
88 }
89 }
90}
91
92#[cfg(feature = "tm_pro-tmp_stylesheet")]
93impl<__T: ITMP_StyleSheet> ITMP_StyleSheetMethods for __T {}
94
95#[cfg(feature = "tm_pro-tmp_stylesheet")]
96impl TMP_StyleSheet {
97 pub fn get_styles_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99 }
100
101 pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103 }
104
105 pub fn get_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
107 }
108
109 pub fn get_style_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
111 }
112
113 pub fn refresh_styles_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
115 }
116
117 pub fn load_style_dictionary_internal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
119 }
120
121 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
123 }
124}
125
126#[cfg(feature = "tm_pro-tmp_stylesheet")]
127impl TMP_StyleSheet {
128 #[doc = "`.ctor()` — no args"]
129 pub fn new() -> Self {
130 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
131 panic!(
132 "{}
133::{}
134 failed to instantiate",
135 ::core::stringify!(TMP_StyleSheet),
136 ::core::stringify!(new),
137 )
138 });
139 <Self as ITMP_StyleSheetMethods>::ctor(this);
140 this
141 }
142}
143
144#[cfg(feature = "tm_pro-tmp_stylesheet")]
145#[doc(hidden)]
146pub mod prelude {
147 pub use super::{ITMP_StyleSheet, ITMP_StyleSheetMethods, TMP_StyleSheet};
148 #[cfg(feature = "system-object")]
149 pub use crate::system::object::IObjectMethods;
150 #[cfg(feature = "unity_engine-object_2")]
151 pub use crate::unity_engine::object_2::IObject_2Methods;
152 #[cfg(feature = "unity_engine-scriptableobject")]
153 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
154 pub use crate::{
155 system::object::IObject,
156 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
157 };
158}