engage/generated/tm_pro/
kerningpairkey.rs1#[cfg(feature = "tm_pro-kerningpairkey-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/kerningpairkey/KerningPairKey.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct KerningPairKey {
17 pub ascii_left: u32,
18 pub ascii_right: u32,
19 pub key: u32,
20 }
21 impl ::unity::ClassIdentity for KerningPairKey {
22 const NAME: &'static str = "KerningPairKey";
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 KerningPairKey {
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-kerningpairkey-types")]
38pub use __types::*;
39
40#[cfg(feature = "tm_pro-kerningpairkey")]
41impl KerningPairKey {
42 #[doc = "`.ctor(u32, u32)` overload"]
43 pub fn ctor(&mut self, ascii_left: impl ::core::convert::Into<u32>, ascii_right: impl ::core::convert::Into<u32>) -> () {
44 unsafe {
45 ::unity::il2cpp_call!((::unity::module_base()+0x2d8c6d0usize)as*mut u8,();
46(*mut KerningPairKey)self as*mut KerningPairKey,(u32)::core::convert::Into::into(ascii_left),(u32)::core::convert::Into::into(ascii_right))
47 }
48 }
49}
50
51#[cfg(feature = "tm_pro-kerningpairkey")]
52impl KerningPairKey {
53 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
54 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
55 }
56}
57
58#[cfg(feature = "tm_pro-kerningpairkey")]
59#[doc(hidden)]
60pub mod prelude {
61 pub use super::KerningPairKey;
62 #[cfg(feature = "system-object")]
63 pub use crate::system::object::IObjectMethods;
64 #[cfg(feature = "system-valuetype")]
65 pub use crate::system::valuetype::IValueTypeMethods;
66 pub use crate::system::{object::IObject, valuetype::IValueType};
67}