engage/generated/tm_pro/
tmp_compatibility.rs1#[cfg(feature = "tm_pro-tmp_compatibility-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_compatibility/TMP_Compatibility_AnchorPositions.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct TMP_Compatibility_AnchorPositions {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for TMP_Compatibility_AnchorPositions {
21 const NAME: &'static str = "TMP_Compatibility.AnchorPositions";
22 const NAMESPACE: &'static str = "TMPro";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for TMP_Compatibility_AnchorPositions {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl TMP_Compatibility_AnchorPositions {
35 pub fn top_left() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn top() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn top_right() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn left() -> Self {
48 Self { value: 3 }
49 }
50
51 pub fn center() -> Self {
52 Self { value: 4 }
53 }
54
55 pub fn right() -> Self {
56 Self { value: 5 }
57 }
58
59 pub fn bottom_left() -> Self {
60 Self { value: 6 }
61 }
62
63 pub fn bottom() -> Self {
64 Self { value: 7 }
65 }
66
67 pub fn bottom_right() -> Self {
68 Self { value: 8 }
69 }
70
71 pub fn base_line() -> Self {
72 Self { value: 9 }
73 }
74
75 pub fn none() -> Self {
76 Self { value: 10 }
77 }
78 }
79
80 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_compatibility/TMP_Compatibility.md"))]
81 #[::unity::class(namespace = "TMPro", name = "TMP_Compatibility")]
82 #[parent(crate::system::object::Object)]
83 pub struct TMP_Compatibility {}
84}
85
86#[cfg(feature = "tm_pro-tmp_compatibility-types")]
87pub use __types::*;
88
89#[cfg(feature = "tm_pro-tmp_compatibility")]
90impl TMP_Compatibility {
91 #[doc = "`ConvertTextAlignmentEnumValues(crate::tm_pro::textalignmentoptions::TextAlignmentOptions)` overload"]
92 pub fn convert_text_alignment_enum_values(
93 old_value: impl ::core::convert::Into<crate::tm_pro::textalignmentoptions::TextAlignmentOptions>,
94 ) -> crate::tm_pro::textalignmentoptions::TextAlignmentOptions {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x2d916d0usize)as*mut u8,crate::tm_pro::textalignmentoptions::TextAlignmentOptions;
97(crate::tm_pro::textalignmentoptions::TextAlignmentOptions)::core::convert::Into::into(old_value))
98 }
99 }
100}
101
102#[cfg(feature = "tm_pro-tmp_compatibility")]
103impl TMP_Compatibility {
104 pub fn convert_text_alignment_enum_values_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
106 }
107}
108
109#[cfg(feature = "tm_pro-tmp_compatibility")]
110#[doc(hidden)]
111pub mod prelude {
112 pub use super::{ITMP_Compatibility, TMP_Compatibility, TMP_Compatibility_AnchorPositions};
113 #[cfg(feature = "system-object")]
114 pub use crate::system::object::IObjectMethods;
115 #[cfg(feature = "system-enum")]
116 pub use crate::system::r#enum::IEnumMethods;
117 #[cfg(feature = "system-valuetype")]
118 pub use crate::system::valuetype::IValueTypeMethods;
119 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
120}