engage/generated/unity_engine/text_core/low_level/
glyphloadflags.rs1#[cfg(feature = "unity_engine-text_core-low_level-glyphloadflags-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/text_core/low_level/glyphloadflags/GlyphLoadFlags.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct GlyphLoadFlags {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for GlyphLoadFlags {
21 const NAME: &'static str = "GlyphLoadFlags";
22 const NAMESPACE: &'static str = "UnityEngine.TextCore.LowLevel";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for GlyphLoadFlags {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl GlyphLoadFlags {
35 pub fn load_default() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn load_no_scale() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn load_no_hinting() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn load_render() -> Self {
48 Self { value: 4 }
49 }
50
51 pub fn load_no_bitmap() -> Self {
52 Self { value: 8 }
53 }
54
55 pub fn load_force_autohint() -> Self {
56 Self { value: 32 }
57 }
58
59 pub fn load_monochrome() -> Self {
60 Self { value: 4096 }
61 }
62
63 pub fn load_no_autohint() -> Self {
64 Self { value: 32768 }
65 }
66
67 pub fn load_compute_metrics() -> Self {
68 Self { value: 2097152 }
69 }
70
71 pub fn load_bitmap_metrics_only() -> Self {
72 Self { value: 4194304 }
73 }
74 }
75}
76
77#[cfg(feature = "unity_engine-text_core-low_level-glyphloadflags-types")]
78pub use __types::*;
79
80#[cfg(feature = "unity_engine-text_core-low_level-glyphloadflags")]
81#[doc(hidden)]
82pub mod prelude {
83 pub use super::GlyphLoadFlags;
84 #[cfg(feature = "system-object")]
85 pub use crate::system::object::IObjectMethods;
86 #[cfg(feature = "system-enum")]
87 pub use crate::system::r#enum::IEnumMethods;
88 #[cfg(feature = "system-valuetype")]
89 pub use crate::system::valuetype::IValueTypeMethods;
90 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
91}