Skip to main content

engage/generated/unity_engine/
textmesh.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-textmesh-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            component::{Component, IComponent},
12            object_2::{IObject_2, Object_2},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/textmesh/TextMesh.md"))]
17    #[::unity::class(namespace = "UnityEngine", name = "TextMesh")]
18    #[parent(crate::unity_engine::component::Component)]
19    pub struct TextMesh {}
20}
21
22#[cfg(feature = "unity_engine-textmesh-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-textmesh")]
26pub trait ITextMeshMethods: ITextMesh {
27    #[doc = "`set_text(::unity::Il2CppString)` overload"]
28    fn set_text(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
29        unsafe {
30            let __receiver = <TextMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
31            ::unity::il2cpp_call!((::unity::module_base()+0x3f31160usize)as*mut u8,();
32(TextMesh)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
33        }
34    }
35    #[doc = "`set_fontSize(i32)` overload"]
36    fn set_font_size(self, value: impl ::core::convert::Into<i32>) -> () {
37        unsafe {
38            let __receiver = <TextMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x3f311b0usize)as*mut u8,();
40(TextMesh)__receiver,(i32)::core::convert::Into::into(value))
41        }
42    }
43    #[doc = "`set_anchor(crate::unity_engine::textanchor::TextAnchor)` overload"]
44    fn set_anchor(self, value: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>) -> () {
45        unsafe {
46            let __receiver = <TextMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x3f31200usize)as*mut u8,();
48(TextMesh)__receiver,(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(value))
49        }
50    }
51    #[doc = "`set_color(crate::unity_engine::color::Color)` overload"]
52    fn set_color(self, value: impl ::core::convert::Into<crate::unity_engine::color::Color>) -> () {
53        unsafe {
54            let __receiver = <TextMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55            ::unity::il2cpp_call!((::unity::module_base()+0x3f31250usize)as*mut u8,();
56(TextMesh)__receiver,(crate::unity_engine::color::Color)::core::convert::Into::into(value))
57        }
58    }
59    #[doc = "`set_color_Injected(*mutcrate::unity_engine::color::Color)` overload"]
60    fn set_color_injected(self) -> crate::unity_engine::color::Color {
61        unsafe {
62            let __receiver = <TextMesh as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
64            ::unity::il2cpp_call!((::unity::module_base()+0x3f312b0usize)as*mut u8,();
65(TextMesh)__receiver,(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
66            __out_0.assume_init()
67        }
68    }
69}
70
71#[cfg(feature = "unity_engine-textmesh")]
72impl<__T: ITextMesh> ITextMeshMethods for __T {}
73
74#[cfg(feature = "unity_engine-textmesh")]
75impl TextMesh {
76    pub fn set_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
78    }
79
80    pub fn set_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
82    }
83
84    pub fn set_anchor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
85        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
86    }
87
88    pub fn set_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
89        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
90    }
91
92    pub fn set_color_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
93        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
94    }
95}
96
97#[cfg(feature = "unity_engine-textmesh")]
98#[doc(hidden)]
99pub mod prelude {
100    pub use super::{ITextMesh, ITextMeshMethods, TextMesh};
101    #[cfg(feature = "system-object")]
102    pub use crate::system::object::IObjectMethods;
103    #[cfg(feature = "unity_engine-component")]
104    pub use crate::unity_engine::component::IComponentMethods;
105    #[cfg(feature = "unity_engine-object_2")]
106    pub use crate::unity_engine::object_2::IObject_2Methods;
107    pub use crate::{
108        system::object::IObject,
109        unity_engine::{component::IComponent, object_2::IObject_2},
110    };
111}