Skip to main content

engage/generated/tm_pro/
textalignmentoptions.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-textalignmentoptions-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/textalignmentoptions/TextAlignmentOptions.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct TextAlignmentOptions {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for TextAlignmentOptions {
21        const NAME: &'static str = "TextAlignmentOptions";
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 TextAlignmentOptions {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl TextAlignmentOptions {
35        pub fn top_left() -> Self {
36            Self { value: 257 }
37        }
38
39        pub fn top() -> Self {
40            Self { value: 258 }
41        }
42
43        pub fn top_right() -> Self {
44            Self { value: 260 }
45        }
46
47        pub fn top_justified() -> Self {
48            Self { value: 264 }
49        }
50
51        pub fn top_flush() -> Self {
52            Self { value: 272 }
53        }
54
55        pub fn top_geo_aligned() -> Self {
56            Self { value: 288 }
57        }
58
59        pub fn left() -> Self {
60            Self { value: 513 }
61        }
62
63        pub fn center() -> Self {
64            Self { value: 514 }
65        }
66
67        pub fn right() -> Self {
68            Self { value: 516 }
69        }
70
71        pub fn justified() -> Self {
72            Self { value: 520 }
73        }
74
75        pub fn flush() -> Self {
76            Self { value: 528 }
77        }
78
79        pub fn center_geo_aligned() -> Self {
80            Self { value: 544 }
81        }
82
83        pub fn bottom_left() -> Self {
84            Self { value: 1025 }
85        }
86
87        pub fn bottom() -> Self {
88            Self { value: 1026 }
89        }
90
91        pub fn bottom_right() -> Self {
92            Self { value: 1028 }
93        }
94
95        pub fn bottom_justified() -> Self {
96            Self { value: 1032 }
97        }
98
99        pub fn bottom_flush() -> Self {
100            Self { value: 1040 }
101        }
102
103        pub fn bottom_geo_aligned() -> Self {
104            Self { value: 1056 }
105        }
106
107        pub fn baseline_left() -> Self {
108            Self { value: 2049 }
109        }
110
111        pub fn baseline() -> Self {
112            Self { value: 2050 }
113        }
114
115        pub fn baseline_right() -> Self {
116            Self { value: 2052 }
117        }
118
119        pub fn baseline_justified() -> Self {
120            Self { value: 2056 }
121        }
122
123        pub fn baseline_flush() -> Self {
124            Self { value: 2064 }
125        }
126
127        pub fn baseline_geo_aligned() -> Self {
128            Self { value: 2080 }
129        }
130
131        pub fn midline_left() -> Self {
132            Self { value: 4097 }
133        }
134
135        pub fn midline() -> Self {
136            Self { value: 4098 }
137        }
138
139        pub fn midline_right() -> Self {
140            Self { value: 4100 }
141        }
142
143        pub fn midline_justified() -> Self {
144            Self { value: 4104 }
145        }
146
147        pub fn midline_flush() -> Self {
148            Self { value: 4112 }
149        }
150
151        pub fn midline_geo_aligned() -> Self {
152            Self { value: 4128 }
153        }
154
155        pub fn capline_left() -> Self {
156            Self { value: 8193 }
157        }
158
159        pub fn capline() -> Self {
160            Self { value: 8194 }
161        }
162
163        pub fn capline_right() -> Self {
164            Self { value: 8196 }
165        }
166
167        pub fn capline_justified() -> Self {
168            Self { value: 8200 }
169        }
170
171        pub fn capline_flush() -> Self {
172            Self { value: 8208 }
173        }
174
175        pub fn capline_geo_aligned() -> Self {
176            Self { value: 8224 }
177        }
178
179        pub fn converted() -> Self {
180            Self { value: 65535 }
181        }
182    }
183}
184
185#[cfg(feature = "tm_pro-textalignmentoptions-types")]
186pub use __types::*;
187
188#[cfg(feature = "tm_pro-textalignmentoptions")]
189#[doc(hidden)]
190pub mod prelude {
191    pub use super::TextAlignmentOptions;
192    #[cfg(feature = "system-object")]
193    pub use crate::system::object::IObjectMethods;
194    #[cfg(feature = "system-enum")]
195    pub use crate::system::r#enum::IEnumMethods;
196    #[cfg(feature = "system-valuetype")]
197    pub use crate::system::valuetype::IValueTypeMethods;
198    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
199}