Skip to main content

engage/generated/tm_pro/
tmp_glyphvaluerecord.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_glyphvaluerecord-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_glyphvaluerecord/TMP_GlyphValueRecord.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct TMP_GlyphValueRecord {
17        pub m_x_placement: f32,
18        pub m_y_placement: f32,
19        pub m_x_advance: f32,
20        pub m_y_advance: f32,
21    }
22    impl ::unity::ClassIdentity for TMP_GlyphValueRecord {
23        const NAME: &'static str = "TMP_GlyphValueRecord";
24        const NAMESPACE: &'static str = "TMPro";
25
26        fn class() -> ::unity::Class {
27            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29        }
30    }
31    impl ::unity::IlType for TMP_GlyphValueRecord {
32        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34        }
35    }
36}
37
38#[cfg(feature = "tm_pro-tmp_glyphvaluerecord-types")]
39pub use __types::*;
40
41#[cfg(feature = "tm_pro-tmp_glyphvaluerecord")]
42impl TMP_GlyphValueRecord {
43    #[doc = "`op_Addition(crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord, crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord)` overload"]
44    pub fn op_addition(
45        a: impl ::core::convert::Into<crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord>,
46        b: impl ::core::convert::Into<crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord>,
47    ) -> crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x33a30b0usize)as*mut u8,crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord;
50(crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord)::core::convert::Into::into(a),(crate::tm_pro::tmp_glyphvaluerecord::TMP_GlyphValueRecord)::core::convert::Into::into(b))
51        }
52    }
53}
54
55#[cfg(feature = "tm_pro-tmp_glyphvaluerecord")]
56impl TMP_GlyphValueRecord {
57    #[doc = "`get_xPlacement()` overload"]
58    pub fn get_x_placement(&mut self) -> f32 {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x33a2ff0usize)as*mut u8,f32;
61(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord)
62        }
63    }
64
65    #[doc = "`set_xPlacement(f32)` overload"]
66    pub fn set_x_placement(&mut self, value: impl ::core::convert::Into<f32>) -> () {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x33a3000usize)as*mut u8,();
69(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord,(f32)::core::convert::Into::into(value))
70        }
71    }
72
73    #[doc = "`get_yPlacement()` overload"]
74    pub fn get_y_placement(&mut self) -> f32 {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x33a3010usize)as*mut u8,f32;
77(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord)
78        }
79    }
80
81    #[doc = "`set_yPlacement(f32)` overload"]
82    pub fn set_y_placement(&mut self, value: impl ::core::convert::Into<f32>) -> () {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x33a3020usize)as*mut u8,();
85(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord,(f32)::core::convert::Into::into(value))
86        }
87    }
88
89    #[doc = "`get_xAdvance()` overload"]
90    pub fn get_x_advance(&mut self) -> f32 {
91        unsafe {
92            ::unity::il2cpp_call!((::unity::module_base()+0x33a3030usize)as*mut u8,f32;
93(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord)
94        }
95    }
96
97    #[doc = "`set_xAdvance(f32)` overload"]
98    pub fn set_x_advance(&mut self, value: impl ::core::convert::Into<f32>) -> () {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x33a3040usize)as*mut u8,();
101(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord,(f32)::core::convert::Into::into(value))
102        }
103    }
104
105    #[doc = "`get_yAdvance()` overload"]
106    pub fn get_y_advance(&mut self) -> f32 {
107        unsafe {
108            ::unity::il2cpp_call!((::unity::module_base()+0x33a3050usize)as*mut u8,f32;
109(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord)
110        }
111    }
112
113    #[doc = "`set_yAdvance(f32)` overload"]
114    pub fn set_y_advance(&mut self, value: impl ::core::convert::Into<f32>) -> () {
115        unsafe {
116            ::unity::il2cpp_call!((::unity::module_base()+0x33a3060usize)as*mut u8,();
117(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord,(f32)::core::convert::Into::into(value))
118        }
119    }
120
121    #[doc = "`.ctor(f32, f32, f32, f32)` overload"]
122    pub fn ctor(
123        &mut self,
124        x_placement: impl ::core::convert::Into<f32>,
125        y_placement: impl ::core::convert::Into<f32>,
126        x_advance: impl ::core::convert::Into<f32>,
127        y_advance: impl ::core::convert::Into<f32>,
128    ) -> () {
129        unsafe {
130            ::unity::il2cpp_call!((::unity::module_base()+0x33a3070usize)as*mut u8,();
131(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord,(f32)::core::convert::Into::into(x_placement),(f32)::core::convert::Into::into(y_placement),(f32)::core::convert::Into::into(x_advance),(f32)::core::convert::Into::into(y_advance))
132        }
133    }
134
135    #[doc = "`.ctor(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)` overload"]
136    pub fn ctor_2(&mut self, value_record: impl ::core::convert::Into<crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy>) -> () {
137        unsafe {
138            ::unity::il2cpp_call!((::unity::module_base()+0x33a3090usize)as*mut u8,();
139(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord,(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)::core::convert::Into::into(value_record))
140        }
141    }
142
143    #[doc = "`.ctor(crate::unity_engine::text_core::low_level::glyphvaluerecord::GlyphValueRecord)` overload"]
144    pub fn ctor_3(
145        &mut self,
146        value_record: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphvaluerecord::GlyphValueRecord>,
147    ) -> () {
148        unsafe {
149            ::unity::il2cpp_call!((::unity::module_base()+0x33a2d00usize)as*mut u8,();
150(*mut TMP_GlyphValueRecord)self as*mut TMP_GlyphValueRecord,(crate::unity_engine::text_core::low_level::glyphvaluerecord::GlyphValueRecord)::core::convert::Into::into(value_record))
151        }
152    }
153}
154
155#[cfg(feature = "tm_pro-tmp_glyphvaluerecord")]
156impl TMP_GlyphValueRecord {
157    pub fn get_x_placement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
159    }
160
161    pub fn set_x_placement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
163    }
164
165    pub fn get_y_placement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
167    }
168
169    pub fn set_y_placement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
171    }
172
173    pub fn get_x_advance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
175    }
176
177    pub fn set_x_advance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
179    }
180
181    pub fn get_y_advance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
183    }
184
185    pub fn set_y_advance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
187    }
188
189    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
191    }
192
193    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
195    }
196
197    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
199    }
200
201    pub fn op_addition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
203    }
204}
205
206#[cfg(feature = "tm_pro-tmp_glyphvaluerecord")]
207#[doc(hidden)]
208pub mod prelude {
209    pub use super::TMP_GlyphValueRecord;
210    #[cfg(feature = "system-object")]
211    pub use crate::system::object::IObjectMethods;
212    #[cfg(feature = "system-valuetype")]
213    pub use crate::system::valuetype::IValueTypeMethods;
214    pub use crate::system::{object::IObject, valuetype::IValueType};
215}