engage/generated/unity_engine/ui/
animationtriggers.rs1#[cfg(feature = "unity_engine-ui-animationtriggers-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/ui/animationtriggers/AnimationTriggers.md"))]
11 #[::unity::class(namespace = "UnityEngine.UI", name = "AnimationTriggers")]
12 #[parent(crate::system::object::Object)]
13 pub struct AnimationTriggers {
14 #[static_field]
15 #[rename(name = "kDefaultNormalAnimName")]
16 pub k_default_normal_anim_name: ::unity::Il2CppString,
17 #[static_field]
18 #[rename(name = "kDefaultHighlightedAnimName")]
19 pub k_default_highlighted_anim_name: ::unity::Il2CppString,
20 #[static_field]
21 #[rename(name = "kDefaultPressedAnimName")]
22 pub k_default_pressed_anim_name: ::unity::Il2CppString,
23 #[static_field]
24 #[rename(name = "kDefaultSelectedAnimName")]
25 pub k_default_selected_anim_name: ::unity::Il2CppString,
26 #[static_field]
27 #[rename(name = "kDefaultDisabledAnimName")]
28 pub k_default_disabled_anim_name: ::unity::Il2CppString,
29 #[offset(16)]
30 #[rename(name = "m_NormalTrigger")]
31 pub m_normal_trigger: ::unity::Il2CppString,
32 #[offset(24)]
33 #[rename(name = "m_HighlightedTrigger")]
34 pub m_highlighted_trigger: ::unity::Il2CppString,
35 #[offset(32)]
36 #[rename(name = "m_PressedTrigger")]
37 pub m_pressed_trigger: ::unity::Il2CppString,
38 #[offset(40)]
39 #[rename(name = "m_SelectedTrigger")]
40 pub m_selected_trigger: ::unity::Il2CppString,
41 #[offset(48)]
42 #[rename(name = "m_DisabledTrigger")]
43 pub m_disabled_trigger: ::unity::Il2CppString,
44 }
45}
46
47#[cfg(feature = "unity_engine-ui-animationtriggers-types")]
48pub use __types::*;
49
50#[cfg(feature = "unity_engine-ui-animationtriggers")]
51pub trait IAnimationTriggersMethods: IAnimationTriggers {
52 #[doc = "`get_normalTrigger()` overload"]
53 fn get_normal_trigger(self) -> ::unity::Il2CppString {
54 unsafe {
55 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 ::unity::il2cpp_call!((::unity::module_base()+0x3179400usize)as*mut u8, ::unity::Il2CppString;
57(AnimationTriggers)__receiver)
58 }
59 }
60 #[doc = "`set_normalTrigger(::unity::Il2CppString)` overload"]
61 fn set_normal_trigger(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
62 unsafe {
63 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64 ::unity::il2cpp_call!((::unity::module_base()+0x3179410usize)as*mut u8,();
65(AnimationTriggers)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
66 }
67 }
68 #[doc = "`get_highlightedTrigger()` overload"]
69 fn get_highlighted_trigger(self) -> ::unity::Il2CppString {
70 unsafe {
71 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 ::unity::il2cpp_call!((::unity::module_base()+0x3179420usize)as*mut u8, ::unity::Il2CppString;
73(AnimationTriggers)__receiver)
74 }
75 }
76 #[doc = "`set_highlightedTrigger(::unity::Il2CppString)` overload"]
77 fn set_highlighted_trigger(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
78 unsafe {
79 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
80 ::unity::il2cpp_call!((::unity::module_base()+0x3179430usize)as*mut u8,();
81(AnimationTriggers)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
82 }
83 }
84 #[doc = "`get_pressedTrigger()` overload"]
85 fn get_pressed_trigger(self) -> ::unity::Il2CppString {
86 unsafe {
87 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x3179440usize)as*mut u8, ::unity::Il2CppString;
89(AnimationTriggers)__receiver)
90 }
91 }
92 #[doc = "`set_pressedTrigger(::unity::Il2CppString)` overload"]
93 fn set_pressed_trigger(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
94 unsafe {
95 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
96 ::unity::il2cpp_call!((::unity::module_base()+0x3179450usize)as*mut u8,();
97(AnimationTriggers)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
98 }
99 }
100 #[doc = "`get_selectedTrigger()` overload"]
101 fn get_selected_trigger(self) -> ::unity::Il2CppString {
102 unsafe {
103 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
104 ::unity::il2cpp_call!((::unity::module_base()+0x3179460usize)as*mut u8, ::unity::Il2CppString;
105(AnimationTriggers)__receiver)
106 }
107 }
108 #[doc = "`set_selectedTrigger(::unity::Il2CppString)` overload"]
109 fn set_selected_trigger(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
110 unsafe {
111 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
112 ::unity::il2cpp_call!((::unity::module_base()+0x3179470usize)as*mut u8,();
113(AnimationTriggers)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
114 }
115 }
116 #[doc = "`get_disabledTrigger()` overload"]
117 fn get_disabled_trigger(self) -> ::unity::Il2CppString {
118 unsafe {
119 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x3179480usize)as*mut u8, ::unity::Il2CppString;
121(AnimationTriggers)__receiver)
122 }
123 }
124 #[doc = "`set_disabledTrigger(::unity::Il2CppString)` overload"]
125 fn set_disabled_trigger(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
126 unsafe {
127 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128 ::unity::il2cpp_call!((::unity::module_base()+0x3179490usize)as*mut u8,();
129(AnimationTriggers)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
130 }
131 }
132 #[doc = "`.ctor()` overload"]
133 fn ctor(self) -> () {
134 unsafe {
135 let __receiver = <AnimationTriggers as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 ::unity::il2cpp_call!((::unity::module_base()+0x31794a0usize)as*mut u8,();
137(AnimationTriggers)__receiver)
138 }
139 }
140}
141
142#[cfg(feature = "unity_engine-ui-animationtriggers")]
143impl<__T: IAnimationTriggers> IAnimationTriggersMethods for __T {}
144
145#[cfg(feature = "unity_engine-ui-animationtriggers")]
146impl AnimationTriggers {
147 pub fn get_normal_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
149 }
150
151 pub fn set_normal_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
153 }
154
155 pub fn get_highlighted_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
157 }
158
159 pub fn set_highlighted_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
161 }
162
163 pub fn get_pressed_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
165 }
166
167 pub fn set_pressed_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
169 }
170
171 pub fn get_selected_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
173 }
174
175 pub fn set_selected_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
177 }
178
179 pub fn get_disabled_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
181 }
182
183 pub fn set_disabled_trigger_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
185 }
186
187 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
189 }
190}
191
192#[cfg(feature = "unity_engine-ui-animationtriggers")]
193impl AnimationTriggers {
194 #[doc = "`.ctor()` — no args"]
195 pub fn new() -> Self {
196 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
197 panic!(
198 "{}
199::{}
200 failed to instantiate",
201 ::core::stringify!(AnimationTriggers),
202 ::core::stringify!(new),
203 )
204 });
205 <Self as IAnimationTriggersMethods>::ctor(this);
206 this
207 }
208}
209
210#[cfg(feature = "unity_engine-ui-animationtriggers")]
211#[doc(hidden)]
212pub mod prelude {
213 pub use super::{AnimationTriggers, IAnimationTriggers, IAnimationTriggersMethods};
214 pub use crate::system::object::IObject;
215 #[cfg(feature = "system-object")]
216 pub use crate::system::object::IObjectMethods;
217}