Skip to main content

engage/generated/unity_engine/
characterinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-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/unity_engine/characterinfo/CharacterInfo.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct CharacterInfo {
17        pub index: i32,
18        pub uv: crate::unity_engine::rect::Rect,
19        pub vert: crate::unity_engine::rect::Rect,
20        pub width: f32,
21        pub size: i32,
22        pub style: crate::unity_engine::fontstyle::FontStyle,
23        pub flipped: bool,
24    }
25    impl ::unity::ClassIdentity for CharacterInfo {
26        const NAME: &'static str = "CharacterInfo";
27        const NAMESPACE: &'static str = "UnityEngine";
28
29        fn class() -> ::unity::Class {
30            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32        }
33    }
34    impl ::unity::IlType for CharacterInfo {
35        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37        }
38    }
39}
40
41#[cfg(feature = "unity_engine-characterinfo-types")]
42pub use __types::*;
43
44#[cfg(feature = "unity_engine-characterinfo")]
45impl CharacterInfo {
46    #[doc = "`get_glyphWidth()` overload"]
47    pub fn get_glyph_width(&mut self) -> i32 {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x3f2ea30usize)as*mut u8,i32;
50(*mut CharacterInfo)self as*mut CharacterInfo)
51        }
52    }
53
54    #[doc = "`get_glyphHeight()` overload"]
55    pub fn get_glyph_height(&mut self) -> i32 {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x3f2ea70usize)as*mut u8,i32;
58(*mut CharacterInfo)self as*mut CharacterInfo)
59        }
60    }
61
62    #[doc = "`get_minY()` overload"]
63    pub fn get_min_y(&mut self) -> i32 {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x3f2eab0usize)as*mut u8,i32;
66(*mut CharacterInfo)self as*mut CharacterInfo)
67        }
68    }
69
70    #[doc = "`get_uvBottomLeftUnFlipped()` overload"]
71    pub fn get_uv_bottom_left_un_flipped(&mut self) -> crate::unity_engine::vector2::Vector2 {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x3f2eb10usize)as*mut u8,crate::unity_engine::vector2::Vector2;
74(*mut CharacterInfo)self as*mut CharacterInfo)
75        }
76    }
77
78    #[doc = "`get_uvBottomRightUnFlipped()` overload"]
79    pub fn get_uv_bottom_right_un_flipped(&mut self) -> crate::unity_engine::vector2::Vector2 {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x3f2eb60usize)as*mut u8,crate::unity_engine::vector2::Vector2;
82(*mut CharacterInfo)self as*mut CharacterInfo)
83        }
84    }
85
86    #[doc = "`get_uvTopRightUnFlipped()` overload"]
87    pub fn get_uv_top_right_un_flipped(&mut self) -> crate::unity_engine::vector2::Vector2 {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x3f2ebc0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
90(*mut CharacterInfo)self as*mut CharacterInfo)
91        }
92    }
93
94    #[doc = "`get_uvTopLeftUnFlipped()` overload"]
95    pub fn get_uv_top_left_un_flipped(&mut self) -> crate::unity_engine::vector2::Vector2 {
96        unsafe {
97            ::unity::il2cpp_call!((::unity::module_base()+0x3f2ec40usize)as*mut u8,crate::unity_engine::vector2::Vector2;
98(*mut CharacterInfo)self as*mut CharacterInfo)
99        }
100    }
101
102    #[doc = "`get_uvBottomLeft()` overload"]
103    pub fn get_uv_bottom_left(&mut self) -> crate::unity_engine::vector2::Vector2 {
104        unsafe {
105            ::unity::il2cpp_call!((::unity::module_base()+0x3f2eca0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
106(*mut CharacterInfo)self as*mut CharacterInfo)
107        }
108    }
109
110    #[doc = "`get_uvBottomRight()` overload"]
111    pub fn get_uv_bottom_right(&mut self) -> crate::unity_engine::vector2::Vector2 {
112        unsafe {
113            ::unity::il2cpp_call!((::unity::module_base()+0x3f2ecf0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
114(*mut CharacterInfo)self as*mut CharacterInfo)
115        }
116    }
117
118    #[doc = "`get_uvTopRight()` overload"]
119    pub fn get_uv_top_right(&mut self) -> crate::unity_engine::vector2::Vector2 {
120        unsafe {
121            ::unity::il2cpp_call!((::unity::module_base()+0x3f2ed70usize)as*mut u8,crate::unity_engine::vector2::Vector2;
122(*mut CharacterInfo)self as*mut CharacterInfo)
123        }
124    }
125
126    #[doc = "`get_uvTopLeft()` overload"]
127    pub fn get_uv_top_left(&mut self) -> crate::unity_engine::vector2::Vector2 {
128        unsafe {
129            ::unity::il2cpp_call!((::unity::module_base()+0x3f2edf0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
130(*mut CharacterInfo)self as*mut CharacterInfo)
131        }
132    }
133}
134
135#[cfg(feature = "unity_engine-characterinfo")]
136impl CharacterInfo {
137    pub fn get_glyph_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
138        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
139    }
140
141    pub fn get_glyph_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
142        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
143    }
144
145    pub fn get_min_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
146        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
147    }
148
149    pub fn get_uv_bottom_left_un_flipped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
150        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
151    }
152
153    pub fn get_uv_bottom_right_un_flipped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
154        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
155    }
156
157    pub fn get_uv_top_right_un_flipped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
159    }
160
161    pub fn get_uv_top_left_un_flipped_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
163    }
164
165    pub fn get_uv_bottom_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
167    }
168
169    pub fn get_uv_bottom_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
171    }
172
173    pub fn get_uv_top_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
175    }
176
177    pub fn get_uv_top_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
179    }
180}
181
182#[cfg(feature = "unity_engine-characterinfo")]
183#[doc(hidden)]
184pub mod prelude {
185    pub use super::CharacterInfo;
186    #[cfg(feature = "system-object")]
187    pub use crate::system::object::IObjectMethods;
188    #[cfg(feature = "system-valuetype")]
189    pub use crate::system::valuetype::IValueTypeMethods;
190    pub use crate::system::{object::IObject, valuetype::IValueType};
191}