engage/generated/app/
curvetext.rs1#[cfg(feature = "app-curvetext-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 behaviour::{Behaviour, IBehaviour},
12 component::{Component, IComponent},
13 monobehaviour::{IMonoBehaviour, MonoBehaviour},
14 object_2::{IObject_2, Object_2},
15 },
16 };
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/app/curvetext/CurveText.md"))]
19 #[::unity::class(namespace = "App", name = "CurveText")]
20 #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21 pub struct CurveText {
22 #[offset(24)]
23 #[rename(name = "m_TextComponent")]
24 pub m_text_component: crate::tm_pro::tmp_text::TMP_Text,
25 #[offset(32)]
26 #[rename(name = "VertexCurve")]
27 pub vertex_curve: crate::unity_engine::animationcurve::AnimationCurve,
28 #[offset(40)]
29 #[rename(name = "m_CurveScale")]
30 pub m_curve_scale: f32,
31 #[offset(44)]
32 #[rename(name = "m_IsRotate")]
33 pub m_is_rotate: bool,
34 #[offset(45)]
35 #[rename(name = "m_UseRectWidth")]
36 pub m_use_rect_width: bool,
37 #[offset(46)]
38 #[rename(name = "m_IsDistort")]
39 pub m_is_distort: bool,
40 }
41}
42
43#[cfg(feature = "app-curvetext-types")]
44pub use __types::*;
45
46#[cfg(feature = "app-curvetext")]
47pub trait ICurveTextMethods: ICurveText {
48 #[doc = "`Awake()` overload"]
49 fn awake(self) -> () {
50 unsafe {
51 let __receiver = <CurveText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
52 ::unity::il2cpp_call!((::unity::module_base()+0x25470a0usize)as*mut u8,();
53(CurveText)__receiver)
54 }
55 }
56 #[doc = "`Update()` overload"]
57 fn update(self) -> () {
58 unsafe {
59 let __receiver = <CurveText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x2547110usize)as*mut u8,();
61(CurveText)__receiver)
62 }
63 }
64 #[doc = "`CopyAnimationCurve(crate::unity_engine::animationcurve::AnimationCurve)` overload"]
65 fn copy_animation_curve(
66 self,
67 curve: impl ::core::convert::Into<crate::unity_engine::animationcurve::AnimationCurve>,
68 ) -> crate::unity_engine::animationcurve::AnimationCurve {
69 unsafe {
70 let __receiver = <CurveText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 ::unity::il2cpp_call!((::unity::module_base()+0x2547a60usize)as*mut u8,crate::unity_engine::animationcurve::AnimationCurve;
72(CurveText)__receiver,(crate::unity_engine::animationcurve::AnimationCurve)::core::convert::Into::into(curve))
73 }
74 }
75 #[doc = "`UpdateTextTransform()` overload"]
76 fn update_text_transform(self) -> () {
77 unsafe {
78 let __receiver = <CurveText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 ::unity::il2cpp_call!((::unity::module_base()+0x2547130usize)as*mut u8,();
80(CurveText)__receiver)
81 }
82 }
83 #[doc = "`.ctor()` overload"]
84 fn ctor(self) -> () {
85 unsafe {
86 let __receiver = <CurveText as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x2547ae0usize)as*mut u8,();
88(CurveText)__receiver)
89 }
90 }
91}
92
93#[cfg(feature = "app-curvetext")]
94impl<__T: ICurveText> ICurveTextMethods for __T {}
95
96#[cfg(feature = "app-curvetext")]
97impl CurveText {
98 pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
100 }
101
102 pub fn update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
104 }
105
106 pub fn copy_animation_curve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
108 }
109
110 pub fn update_text_transform_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
112 }
113
114 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
116 }
117}
118
119#[cfg(feature = "app-curvetext")]
120impl CurveText {
121 #[doc = "`.ctor()` — no args"]
122 pub fn new() -> Self {
123 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
124 panic!(
125 "{}
126::{}
127 failed to instantiate",
128 ::core::stringify!(CurveText),
129 ::core::stringify!(new),
130 )
131 });
132 <Self as ICurveTextMethods>::ctor(this);
133 this
134 }
135}
136
137#[cfg(feature = "app-curvetext")]
138#[doc(hidden)]
139pub mod prelude {
140 pub use super::{CurveText, ICurveText, ICurveTextMethods};
141 #[cfg(feature = "system-object")]
142 pub use crate::system::object::IObjectMethods;
143 #[cfg(feature = "unity_engine-behaviour")]
144 pub use crate::unity_engine::behaviour::IBehaviourMethods;
145 #[cfg(feature = "unity_engine-component")]
146 pub use crate::unity_engine::component::IComponentMethods;
147 #[cfg(feature = "unity_engine-monobehaviour")]
148 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
149 #[cfg(feature = "unity_engine-object_2")]
150 pub use crate::unity_engine::object_2::IObject_2Methods;
151 pub use crate::{
152 system::object::IObject,
153 unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
154 };
155}