Skip to main content

engage/generated/tm_pro/
tmp_characterinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_characterinfo-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_characterinfo/TMP_CharacterInfo.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct TMP_CharacterInfo {
17        pub character: u16,
18        pub index: i32,
19        pub string_length: i32,
20        pub element_type: crate::tm_pro::tmp_textelementtype::TMP_TextElementType,
21        pub text_element: crate::tm_pro::tmp_textelement::TMP_TextElement,
22        pub font_asset: crate::tm_pro::tmp_fontasset::TMP_FontAsset,
23        pub sprite_asset: crate::tm_pro::tmp_spriteasset::TMP_SpriteAsset,
24        pub sprite_index: i32,
25        pub material: crate::unity_engine::material::Material,
26        pub material_reference_index: i32,
27        pub is_using_alternate_typeface: bool,
28        pub point_size: f32,
29        pub line_number: i32,
30        pub page_number: i32,
31        pub vertex_index: i32,
32        pub vertex_bl: crate::tm_pro::tmp_vertex::TMP_Vertex,
33        pub vertex_tl: crate::tm_pro::tmp_vertex::TMP_Vertex,
34        pub vertex_tr: crate::tm_pro::tmp_vertex::TMP_Vertex,
35        pub vertex_br: crate::tm_pro::tmp_vertex::TMP_Vertex,
36        pub top_left: crate::unity_engine::vector3::Vector3,
37        pub bottom_left: crate::unity_engine::vector3::Vector3,
38        pub top_right: crate::unity_engine::vector3::Vector3,
39        pub bottom_right: crate::unity_engine::vector3::Vector3,
40        pub origin: f32,
41        pub x_advance: f32,
42        pub ascender: f32,
43        pub base_line: f32,
44        pub descender: f32,
45        pub adjusted_ascender: f32,
46        pub adjusted_descender: f32,
47        pub aspect_ratio: f32,
48        pub scale: f32,
49        pub color: crate::unity_engine::color32::Color32,
50        pub underline_color: crate::unity_engine::color32::Color32,
51        pub underline_vertex_index: i32,
52        pub strikethrough_color: crate::unity_engine::color32::Color32,
53        pub strikethrough_vertex_index: i32,
54        pub highlight_color: crate::unity_engine::color32::Color32,
55        pub highlight_state: crate::tm_pro::highlightstate::HighlightState,
56        pub style: crate::tm_pro::fontstyles::FontStyles,
57        pub is_visible: bool,
58    }
59    impl ::unity::ClassIdentity for TMP_CharacterInfo {
60        const NAME: &'static str = "TMP_CharacterInfo";
61        const NAMESPACE: &'static str = "TMPro";
62
63        fn class() -> ::unity::Class {
64            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
65            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
66        }
67    }
68    impl ::unity::IlType for TMP_CharacterInfo {
69        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
70            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
71        }
72    }
73}
74
75#[cfg(feature = "tm_pro-tmp_characterinfo-types")]
76pub use __types::*;
77
78#[cfg(feature = "tm_pro-tmp_characterinfo")]
79#[doc(hidden)]
80pub mod prelude {
81    pub use super::TMP_CharacterInfo;
82    #[cfg(feature = "system-object")]
83    pub use crate::system::object::IObjectMethods;
84    #[cfg(feature = "system-valuetype")]
85    pub use crate::system::valuetype::IValueTypeMethods;
86    pub use crate::system::{object::IObject, valuetype::IValueType};
87}