engage/generated/tm_pro/
fontweight.rs1#[cfg(feature = "tm_pro-fontweight-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/fontweight/FontWeight.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct FontWeight {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for FontWeight {
21 const NAME: &'static str = "FontWeight";
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 FontWeight {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl FontWeight {
35 pub fn thin() -> Self {
36 Self { value: 100 }
37 }
38
39 pub fn extra_light() -> Self {
40 Self { value: 200 }
41 }
42
43 pub fn light() -> Self {
44 Self { value: 300 }
45 }
46
47 pub fn regular() -> Self {
48 Self { value: 400 }
49 }
50
51 pub fn medium() -> Self {
52 Self { value: 500 }
53 }
54
55 pub fn semi_bold() -> Self {
56 Self { value: 600 }
57 }
58
59 pub fn bold() -> Self {
60 Self { value: 700 }
61 }
62
63 pub fn heavy() -> Self {
64 Self { value: 800 }
65 }
66
67 pub fn black() -> Self {
68 Self { value: 900 }
69 }
70 }
71}
72
73#[cfg(feature = "tm_pro-fontweight-types")]
74pub use __types::*;
75
76#[cfg(feature = "tm_pro-fontweight")]
77#[doc(hidden)]
78pub mod prelude {
79 pub use super::FontWeight;
80 #[cfg(feature = "system-object")]
81 pub use crate::system::object::IObjectMethods;
82 #[cfg(feature = "system-enum")]
83 pub use crate::system::r#enum::IEnumMethods;
84 #[cfg(feature = "system-valuetype")]
85 pub use crate::system::valuetype::IValueTypeMethods;
86 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
87}