engage/generated/unity_engine/rendering/ui/
debuguihandlerindirectfloatfield.rs1#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerindirectfloatfield-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 rendering::ui::debuguihandlerwidget::{DebugUIHandlerWidget, IDebugUIHandlerWidget},
16 },
17 };
18
19 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/ui/debuguihandlerindirectfloatfield/DebugUIHandlerIndirectFloatField.md"))]
20 #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerIndirectFloatField")]
21 #[parent(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)]
22 pub struct DebugUIHandlerIndirectFloatField {
23 #[offset(88)]
24 #[rename(name = "nameLabel")]
25 pub name_label: crate::unity_engine::ui::text::Text,
26 #[offset(96)]
27 #[rename(name = "valueLabel")]
28 pub value_label: crate::unity_engine::ui::text::Text,
29 #[offset(104)]
30 #[rename(name = "getter")]
31 pub getter: crate::system::func_1::Func_1<f32>,
32 #[offset(112)]
33 #[rename(name = "setter")]
34 pub setter: crate::system::action_1::Action_1<f32>,
35 #[offset(120)]
36 #[rename(name = "incStepGetter")]
37 pub inc_step_getter: crate::system::func_1::Func_1<f32>,
38 #[offset(128)]
39 #[rename(name = "incStepMultGetter")]
40 pub inc_step_mult_getter: crate::system::func_1::Func_1<f32>,
41 #[offset(136)]
42 #[rename(name = "decimalsGetter")]
43 pub decimals_getter: crate::system::func_1::Func_1<f32>,
44 }
45}
46
47#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerindirectfloatfield-types")]
48pub use __types::*;
49
50#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerindirectfloatfield")]
51pub trait IDebugUIHandlerIndirectFloatFieldMethods: IDebugUIHandlerIndirectFloatField {
52 #[doc = "`Init()` overload"]
53 fn init(self) -> () {
54 unsafe {
55 let __receiver =
56 <DebugUIHandlerIndirectFloatField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x30a3f40usize)as*mut u8,();
58(DebugUIHandlerIndirectFloatField)__receiver)
59 }
60 }
61 #[doc = "`OnSelection(bool, crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
62 fn on_selection(
63 self,
64 from_next: impl ::core::convert::Into<bool>,
65 previous: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
66 ) -> bool {
67 unsafe {
68 let __receiver =
69 <DebugUIHandlerIndirectFloatField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 {
71 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
72 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
73 panic!(
74 "unity: virtual slot {}
75 out of range (vtable len {}
76) on the runtime class behind {}
77 (method `{}
78`)",
79 6usize,
80 __vt.len(),
81 <DebugUIHandlerIndirectFloatField as ::unity::ClassIdentity>::NAME,
82 "OnSelection",
83 )
84 });
85 let __inner: extern "C" fn(
86 DebugUIHandlerIndirectFloatField,
87 bool,
88 crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
89 ::unity::OptionalMethod,
90 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
91 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
92 __inner(
93 __receiver,
94 ::core::convert::Into::into(from_next),
95 ::core::convert::Into::into(previous),
96 __mi,
97 )
98 }
99 }
100 }
101 #[doc = "`OnDeselection()` overload"]
102 fn on_deselection(self) -> () {
103 unsafe {
104 let __receiver =
105 <DebugUIHandlerIndirectFloatField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 {
107 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
108 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
109 panic!(
110 "unity: virtual slot {}
111 out of range (vtable len {}
112) on the runtime class behind {}
113 (method `{}
114`)",
115 7usize,
116 __vt.len(),
117 <DebugUIHandlerIndirectFloatField as ::unity::ClassIdentity>::NAME,
118 "OnDeselection",
119 )
120 });
121 let __inner: extern "C" fn(DebugUIHandlerIndirectFloatField, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
122 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123 __inner(__receiver, __mi)
124 }
125 }
126 }
127 #[doc = "`OnIncrement(bool)` overload"]
128 fn on_increment(self, fast: impl ::core::convert::Into<bool>) -> () {
129 unsafe {
130 let __receiver =
131 <DebugUIHandlerIndirectFloatField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 {
133 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
134 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
135 panic!(
136 "unity: virtual slot {}
137 out of range (vtable len {}
138) on the runtime class behind {}
139 (method `{}
140`)",
141 9usize,
142 __vt.len(),
143 <DebugUIHandlerIndirectFloatField as ::unity::ClassIdentity>::NAME,
144 "OnIncrement",
145 )
146 });
147 let __inner: extern "C" fn(DebugUIHandlerIndirectFloatField, bool, ::unity::OptionalMethod) -> () =
148 ::core::mem::transmute(__vi.method_ptr);
149 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
150 __inner(__receiver, ::core::convert::Into::into(fast), __mi)
151 }
152 }
153 }
154 #[doc = "`OnDecrement(bool)` overload"]
155 fn on_decrement(self, fast: impl ::core::convert::Into<bool>) -> () {
156 unsafe {
157 let __receiver =
158 <DebugUIHandlerIndirectFloatField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159 {
160 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
161 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
162 panic!(
163 "unity: virtual slot {}
164 out of range (vtable len {}
165) on the runtime class behind {}
166 (method `{}
167`)",
168 10usize,
169 __vt.len(),
170 <DebugUIHandlerIndirectFloatField as ::unity::ClassIdentity>::NAME,
171 "OnDecrement",
172 )
173 });
174 let __inner: extern "C" fn(DebugUIHandlerIndirectFloatField, bool, ::unity::OptionalMethod) -> () =
175 ::core::mem::transmute(__vi.method_ptr);
176 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177 __inner(__receiver, ::core::convert::Into::into(fast), __mi)
178 }
179 }
180 }
181 #[doc = "`ChangeValue(bool, f32)` overload"]
182 fn change_value(self, fast: impl ::core::convert::Into<bool>, multiplier: impl ::core::convert::Into<f32>) -> () {
183 unsafe {
184 let __receiver =
185 <DebugUIHandlerIndirectFloatField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x30a4130usize)as*mut u8,();
187(DebugUIHandlerIndirectFloatField)__receiver,(bool)::core::convert::Into::into(fast),(f32)::core::convert::Into::into(multiplier))
188 }
189 }
190 #[doc = "`UpdateValueLabel()` overload"]
191 fn update_value_label(self) -> () {
192 unsafe {
193 let __receiver =
194 <DebugUIHandlerIndirectFloatField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x30a3f50usize)as*mut u8,();
196(DebugUIHandlerIndirectFloatField)__receiver)
197 }
198 }
199 #[doc = "`.ctor()` overload"]
200 fn ctor(self) -> () {
201 unsafe {
202 let __receiver =
203 <DebugUIHandlerIndirectFloatField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 ::unity::il2cpp_call!((::unity::module_base()+0x30a4210usize)as*mut u8,();
205(DebugUIHandlerIndirectFloatField)__receiver)
206 }
207 }
208}
209
210#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerindirectfloatfield")]
211impl<__T: IDebugUIHandlerIndirectFloatField> IDebugUIHandlerIndirectFloatFieldMethods for __T {}
212
213#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerindirectfloatfield")]
214impl DebugUIHandlerIndirectFloatField {
215 pub fn init_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
217 }
218
219 pub fn on_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
221 }
222
223 pub fn on_deselection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
225 }
226
227 pub fn on_increment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
229 }
230
231 pub fn on_decrement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
233 }
234
235 pub fn change_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
237 }
238
239 pub fn update_value_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
241 }
242
243 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
245 }
246}
247
248#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerindirectfloatfield")]
249impl DebugUIHandlerIndirectFloatField {
250 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIndirectFloatField`'s own `OnSelection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
251 pub unsafe fn on_selection(
252 this: impl ::core::convert::Into<::unity::IlInstance>,
253 from_next: bool,
254 previous: crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
255 ) -> bool {
256 let __mi = Self::on_selection_method_info();
257 let __inner: extern "C" fn(
258 ::unity::IlInstance,
259 bool,
260 crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
261 ::unity::OptionalMethod,
262 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
263 __inner(this.into(), from_next, previous, ::core::option::Option::None)
264 }
265
266 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIndirectFloatField`'s own `OnDeselection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
267 pub unsafe fn on_deselection(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
268 let __mi = Self::on_deselection_method_info();
269 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
270 __inner(this.into(), ::core::option::Option::None)
271 }
272
273 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIndirectFloatField`'s own `OnIncrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
274 pub unsafe fn on_increment(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
275 let __mi = Self::on_increment_method_info();
276 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
277 __inner(this.into(), fast, ::core::option::Option::None)
278 }
279
280 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIndirectFloatField`'s own `OnDecrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
281 pub unsafe fn on_decrement(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
282 let __mi = Self::on_decrement_method_info();
283 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
284 __inner(this.into(), fast, ::core::option::Option::None)
285 }
286}
287
288#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerindirectfloatfield")]
289impl DebugUIHandlerIndirectFloatField {
290 #[doc = "`.ctor()` — no args"]
291 pub fn new() -> Self {
292 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
293 panic!(
294 "{}
295::{}
296 failed to instantiate",
297 ::core::stringify!(DebugUIHandlerIndirectFloatField),
298 ::core::stringify!(new),
299 )
300 });
301 <Self as IDebugUIHandlerIndirectFloatFieldMethods>::ctor(this);
302 this
303 }
304}
305
306#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerindirectfloatfield")]
307#[doc(hidden)]
308pub mod prelude {
309 pub use super::{DebugUIHandlerIndirectFloatField, IDebugUIHandlerIndirectFloatField, IDebugUIHandlerIndirectFloatFieldMethods};
310 #[cfg(feature = "system-object")]
311 pub use crate::system::object::IObjectMethods;
312 #[cfg(feature = "unity_engine-behaviour")]
313 pub use crate::unity_engine::behaviour::IBehaviourMethods;
314 #[cfg(feature = "unity_engine-component")]
315 pub use crate::unity_engine::component::IComponentMethods;
316 #[cfg(feature = "unity_engine-monobehaviour")]
317 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
318 #[cfg(feature = "unity_engine-object_2")]
319 pub use crate::unity_engine::object_2::IObject_2Methods;
320 #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
321 pub use crate::unity_engine::rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidgetMethods;
322 pub use crate::{
323 system::object::IObject,
324 unity_engine::{
325 behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2,
326 rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidget,
327 },
328 };
329}