Skip to main content

engage/generated/tm_pro/
fontassetcreationsettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-fontassetcreationsettings-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/fontassetcreationsettings/FontAssetCreationSettings.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct FontAssetCreationSettings {
17        pub source_font_file_name: ::unity::Il2CppString,
18        pub source_font_file_guid: ::unity::Il2CppString,
19        pub point_size_sampling_mode: i32,
20        pub point_size: i32,
21        pub padding: i32,
22        pub packing_mode: i32,
23        pub atlas_width: i32,
24        pub atlas_height: i32,
25        pub character_set_selection_mode: i32,
26        pub character_sequence: ::unity::Il2CppString,
27        pub referenced_font_asset_guid: ::unity::Il2CppString,
28        pub referenced_text_asset_guid: ::unity::Il2CppString,
29        pub font_style: i32,
30        pub font_style_modifier: f32,
31        pub render_mode: i32,
32        pub include_font_features: bool,
33    }
34    impl ::unity::ClassIdentity for FontAssetCreationSettings {
35        const NAME: &'static str = "FontAssetCreationSettings";
36        const NAMESPACE: &'static str = "TMPro";
37
38        fn class() -> ::unity::Class {
39            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
40            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
41        }
42    }
43    impl ::unity::IlType for FontAssetCreationSettings {
44        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
45            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
46        }
47    }
48}
49
50#[cfg(feature = "tm_pro-fontassetcreationsettings-types")]
51pub use __types::*;
52
53#[cfg(feature = "tm_pro-fontassetcreationsettings")]
54impl FontAssetCreationSettings {
55    #[doc = "`.ctor(::unity::Il2CppString, i32, i32, i32, i32, i32, i32, i32, ::unity::Il2CppString, i32)` overload"]
56    pub fn ctor(
57        &mut self,
58        source_font_file_guid: impl ::core::convert::Into<::unity::Il2CppString>,
59        point_size: impl ::core::convert::Into<i32>,
60        point_size_sampling_mode: impl ::core::convert::Into<i32>,
61        padding: impl ::core::convert::Into<i32>,
62        packing_mode: impl ::core::convert::Into<i32>,
63        atlas_width: impl ::core::convert::Into<i32>,
64        atlas_height: impl ::core::convert::Into<i32>,
65        character_selection_mode: impl ::core::convert::Into<i32>,
66        character_set: impl ::core::convert::Into<::unity::Il2CppString>,
67        render_mode: impl ::core::convert::Into<i32>,
68    ) -> () {
69        unsafe {
70            ::unity::il2cpp_call!((::unity::module_base()+0x2d8bef0usize)as*mut u8,();
71(*mut FontAssetCreationSettings)self as*mut FontAssetCreationSettings,(::unity::Il2CppString)::core::convert::Into::into(source_font_file_guid),(i32)::core::convert::Into::into(point_size),(i32)::core::convert::Into::into(point_size_sampling_mode),(i32)::core::convert::Into::into(padding),(i32)::core::convert::Into::into(packing_mode),(i32)::core::convert::Into::into(atlas_width),(i32)::core::convert::Into::into(atlas_height),(i32)::core::convert::Into::into(character_selection_mode),(::unity::Il2CppString)::core::convert::Into::into(character_set),(i32)::core::convert::Into::into(render_mode))
72        }
73    }
74}
75
76#[cfg(feature = "tm_pro-fontassetcreationsettings")]
77impl FontAssetCreationSettings {
78    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
80    }
81}
82
83#[cfg(feature = "tm_pro-fontassetcreationsettings")]
84#[doc(hidden)]
85pub mod prelude {
86    pub use super::FontAssetCreationSettings;
87    #[cfg(feature = "system-object")]
88    pub use crate::system::object::IObjectMethods;
89    #[cfg(feature = "system-valuetype")]
90    pub use crate::system::valuetype::IValueTypeMethods;
91    pub use crate::system::{object::IObject, valuetype::IValueType};
92}