engage/generated/tm_pro/
glyphpairkey.rs1#[cfg(feature = "tm_pro-glyphpairkey-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/glyphpairkey/GlyphPairKey.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct GlyphPairKey {
17 pub first_glyph_index: u32,
18 pub second_glyph_index: u32,
19 pub key: u32,
20 }
21 impl ::unity::ClassIdentity for GlyphPairKey {
22 const NAME: &'static str = "GlyphPairKey";
23 const NAMESPACE: &'static str = "TMPro";
24
25 fn class() -> ::unity::Class {
26 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
27 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
28 }
29 }
30 impl ::unity::IlType for GlyphPairKey {
31 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
32 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
33 }
34 }
35}
36
37#[cfg(feature = "tm_pro-glyphpairkey-types")]
38pub use __types::*;
39
40#[cfg(feature = "tm_pro-glyphpairkey")]
41impl GlyphPairKey {
42 #[doc = "`.ctor(u32, u32)` overload"]
43 pub fn ctor(&mut self, first_glyph_index: impl ::core::convert::Into<u32>, second_glyph_index: impl ::core::convert::Into<u32>) -> () {
44 unsafe {
45 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c020usize)as*mut u8,();
46(*mut GlyphPairKey)self as*mut GlyphPairKey,(u32)::core::convert::Into::into(first_glyph_index),(u32)::core::convert::Into::into(second_glyph_index))
47 }
48 }
49
50 #[doc = "`.ctor(crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord)` overload"]
51 pub fn ctor_2(&mut self, record: impl ::core::convert::Into<crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord>) -> () {
52 unsafe {
53 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c030usize)as*mut u8,();
54(*mut GlyphPairKey)self as*mut GlyphPairKey,(crate::tm_pro::tmp_glyphpairadjustmentrecord::TMP_GlyphPairAdjustmentRecord)::core::convert::Into::into(record))
55 }
56 }
57}
58
59#[cfg(feature = "tm_pro-glyphpairkey")]
60impl GlyphPairKey {
61 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
63 }
64
65 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
67 }
68}
69
70#[cfg(feature = "tm_pro-glyphpairkey")]
71#[doc(hidden)]
72pub mod prelude {
73 pub use super::GlyphPairKey;
74 #[cfg(feature = "system-object")]
75 pub use crate::system::object::IObjectMethods;
76 #[cfg(feature = "system-valuetype")]
77 pub use crate::system::valuetype::IValueTypeMethods;
78 pub use crate::system::{object::IObject, valuetype::IValueType};
79}