engage/generated/tm_pro/
tmp_fontstylestack.rs1#[cfg(feature = "tm_pro-tmp_fontstylestack-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/tmp_fontstylestack/TMP_FontStyleStack.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct TMP_FontStyleStack {
17 pub bold: u8,
18 pub italic: u8,
19 pub underline: u8,
20 pub strikethrough: u8,
21 pub highlight: u8,
22 pub superscript: u8,
23 pub subscript: u8,
24 pub uppercase: u8,
25 pub lowercase: u8,
26 pub smallcaps: u8,
27 }
28 impl ::unity::ClassIdentity for TMP_FontStyleStack {
29 const NAME: &'static str = "TMP_FontStyleStack";
30 const NAMESPACE: &'static str = "TMPro";
31
32 fn class() -> ::unity::Class {
33 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35 }
36 }
37 impl ::unity::IlType for TMP_FontStyleStack {
38 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40 }
41 }
42}
43
44#[cfg(feature = "tm_pro-tmp_fontstylestack-types")]
45pub use __types::*;
46
47#[cfg(feature = "tm_pro-tmp_fontstylestack")]
48impl TMP_FontStyleStack {
49 #[doc = "`Clear()` overload"]
50 pub fn clear(&mut self) -> () {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x33a2430usize)as*mut u8,();
53(*mut TMP_FontStyleStack)self as*mut TMP_FontStyleStack)
54 }
55 }
56
57 #[doc = "`Add(crate::tm_pro::fontstyles::FontStyles)` overload"]
58 pub fn add(&mut self, style: impl ::core::convert::Into<crate::tm_pro::fontstyles::FontStyles>) -> u8 {
59 unsafe {
60 ::unity::il2cpp_call!((::unity::module_base()+0x33a2440usize)as*mut u8,u8;
61(*mut TMP_FontStyleStack)self as*mut TMP_FontStyleStack,(crate::tm_pro::fontstyles::FontStyles)::core::convert::Into::into(style))
62 }
63 }
64
65 #[doc = "`Remove(crate::tm_pro::fontstyles::FontStyles)` overload"]
66 pub fn remove(&mut self, style: impl ::core::convert::Into<crate::tm_pro::fontstyles::FontStyles>) -> u8 {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x33a2560usize)as*mut u8,u8;
69(*mut TMP_FontStyleStack)self as*mut TMP_FontStyleStack,(crate::tm_pro::fontstyles::FontStyles)::core::convert::Into::into(style))
70 }
71 }
72}
73
74#[cfg(feature = "tm_pro-tmp_fontstylestack")]
75impl TMP_FontStyleStack {
76 pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
78 }
79
80 pub fn add_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
82 }
83
84 pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
86 }
87}
88
89#[cfg(feature = "tm_pro-tmp_fontstylestack")]
90#[doc(hidden)]
91pub mod prelude {
92 pub use super::TMP_FontStyleStack;
93 #[cfg(feature = "system-object")]
94 pub use crate::system::object::IObjectMethods;
95 #[cfg(feature = "system-valuetype")]
96 pub use crate::system::valuetype::IValueTypeMethods;
97 pub use crate::system::{object::IObject, valuetype::IValueType};
98}