Skip to main content

engage/generated/tm_pro/
glyphvaluerecord_legacy.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-glyphvaluerecord_legacy-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/glyphvaluerecord_legacy/GlyphValueRecord_Legacy.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct GlyphValueRecord_Legacy {
17        pub x_placement: f32,
18        pub y_placement: f32,
19        pub x_advance: f32,
20        pub y_advance: f32,
21    }
22    impl ::unity::ClassIdentity for GlyphValueRecord_Legacy {
23        const NAME: &'static str = "GlyphValueRecord_Legacy";
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 GlyphValueRecord_Legacy {
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-glyphvaluerecord_legacy-types")]
39pub use __types::*;
40
41#[cfg(feature = "tm_pro-glyphvaluerecord_legacy")]
42impl GlyphValueRecord_Legacy {
43    #[doc = "`op_Addition(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy, crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)` overload"]
44    pub fn op_addition(
45        a: impl ::core::convert::Into<crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy>,
46        b: impl ::core::convert::Into<crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy>,
47    ) -> crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2d8c0c0usize)as*mut u8,crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy;
50(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)::core::convert::Into::into(a),(crate::tm_pro::glyphvaluerecord_legacy::GlyphValueRecord_Legacy)::core::convert::Into::into(b))
51        }
52    }
53}
54
55#[cfg(feature = "tm_pro-glyphvaluerecord_legacy")]
56impl GlyphValueRecord_Legacy {
57    #[doc = "`.ctor(crate::unity_engine::text_core::low_level::glyphvaluerecord::GlyphValueRecord)` overload"]
58    pub fn ctor(
59        &mut self,
60        value_record: impl ::core::convert::Into<crate::unity_engine::text_core::low_level::glyphvaluerecord::GlyphValueRecord>,
61    ) -> () {
62        unsafe {
63            ::unity::il2cpp_call!((::unity::module_base()+0x2d8c050usize)as*mut u8,();
64(*mut GlyphValueRecord_Legacy)self as*mut GlyphValueRecord_Legacy,(crate::unity_engine::text_core::low_level::glyphvaluerecord::GlyphValueRecord)::core::convert::Into::into(value_record))
65        }
66    }
67}
68
69#[cfg(feature = "tm_pro-glyphvaluerecord_legacy")]
70impl GlyphValueRecord_Legacy {
71    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
73    }
74
75    pub fn op_addition_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
77    }
78}
79
80#[cfg(feature = "tm_pro-glyphvaluerecord_legacy")]
81#[doc(hidden)]
82pub mod prelude {
83    pub use super::GlyphValueRecord_Legacy;
84    #[cfg(feature = "system-object")]
85    pub use crate::system::object::IObjectMethods;
86    #[cfg(feature = "system-valuetype")]
87    pub use crate::system::valuetype::IValueTypeMethods;
88    pub use crate::system::{object::IObject, valuetype::IValueType};
89}