1#[cfg(feature = "unity_engine-rendering-ui-debuguihandlervector4-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/debuguihandlervector4/DebugUIHandlerVector4.md"))]
20 #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerVector4")]
21 #[parent(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)]
22 pub struct DebugUIHandlerVector4 {
23 #[offset(88)]
24 #[rename(name = "nameLabel")]
25 pub name_label: crate::unity_engine::ui::text::Text,
26 #[offset(96)]
27 #[rename(name = "valueToggle")]
28 pub value_toggle: crate::unity_engine::rendering::ui::uifoldout::UIFoldout,
29 #[offset(104)]
30 #[rename(name = "fieldX")]
31 pub field_x: crate::unity_engine::rendering::ui::debuguihandlerindirectfloatfield::DebugUIHandlerIndirectFloatField,
32 #[offset(112)]
33 #[rename(name = "fieldY")]
34 pub field_y: crate::unity_engine::rendering::ui::debuguihandlerindirectfloatfield::DebugUIHandlerIndirectFloatField,
35 #[offset(120)]
36 #[rename(name = "fieldZ")]
37 pub field_z: crate::unity_engine::rendering::ui::debuguihandlerindirectfloatfield::DebugUIHandlerIndirectFloatField,
38 #[offset(128)]
39 #[rename(name = "fieldW")]
40 pub field_w: crate::unity_engine::rendering::ui::debuguihandlerindirectfloatfield::DebugUIHandlerIndirectFloatField,
41 #[offset(136)]
42 #[rename(name = "m_Field")]
43 pub m_field: crate::unity_engine::rendering::debugui::DebugUI_Vector4Field,
44 #[offset(144)]
45 #[rename(name = "m_Container")]
46 pub m_container: crate::unity_engine::rendering::ui::debuguihandlercontainer::DebugUIHandlerContainer,
47 }
48}
49
50#[cfg(feature = "unity_engine-rendering-ui-debuguihandlervector4-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-rendering-ui-debuguihandlervector4")]
54pub trait IDebugUIHandlerVector4Methods: IDebugUIHandlerVector4 {
55 #[doc = "`SetWidget(crate::unity_engine::rendering::debugui::DebugUI_Widget)` overload"]
56 fn set_widget(self, widget: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Widget>) -> () {
57 unsafe {
58 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59 {
60 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
61 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
62 panic!(
63 "unity: virtual slot {}
64 out of range (vtable len {}
65) on the runtime class behind {}
66 (method `{}
67`)",
68 5usize,
69 __vt.len(),
70 <DebugUIHandlerVector4 as ::unity::ClassIdentity>::NAME,
71 "SetWidget",
72 )
73 });
74 let __inner: extern "C" fn(
75 DebugUIHandlerVector4,
76 crate::unity_engine::rendering::debugui::DebugUI_Widget,
77 ::unity::OptionalMethod,
78 ) -> () = ::core::mem::transmute(__vi.method_ptr);
79 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
80 __inner(__receiver, ::core::convert::Into::into(widget), __mi)
81 }
82 }
83 }
84 #[doc = "`SetValue(f32, bool, bool, bool, bool)` overload"]
85 fn set_value(
86 self,
87 v: impl ::core::convert::Into<f32>,
88 x: impl ::core::convert::Into<bool>,
89 y: impl ::core::convert::Into<bool>,
90 z: impl ::core::convert::Into<bool>,
91 w: impl ::core::convert::Into<bool>,
92 ) -> () {
93 unsafe {
94 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x30a86a0usize)as*mut u8,();
96(DebugUIHandlerVector4)__receiver,(f32)::core::convert::Into::into(v),(bool)::core::convert::Into::into(x),(bool)::core::convert::Into::into(y),(bool)::core::convert::Into::into(z),(bool)::core::convert::Into::into(w))
97 }
98 }
99 #[doc = "`SetupSettings(crate::unity_engine::rendering::ui::debuguihandlerindirectfloatfield::DebugUIHandlerIndirectFloatField)` overload"]
100 fn setup_settings(
101 self,
102 field: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerindirectfloatfield::DebugUIHandlerIndirectFloatField>,
103 ) -> () {
104 unsafe {
105 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x30a8550usize)as*mut u8,();
107(DebugUIHandlerVector4)__receiver,(crate::unity_engine::rendering::ui::debuguihandlerindirectfloatfield::DebugUIHandlerIndirectFloatField)::core::convert::Into::into(field))
108 }
109 }
110 #[doc = "`OnSelection(bool, crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
111 fn on_selection(
112 self,
113 from_next: impl ::core::convert::Into<bool>,
114 previous: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
115 ) -> bool {
116 unsafe {
117 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118 {
119 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
120 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
121 panic!(
122 "unity: virtual slot {}
123 out of range (vtable len {}
124) on the runtime class behind {}
125 (method `{}
126`)",
127 6usize,
128 __vt.len(),
129 <DebugUIHandlerVector4 as ::unity::ClassIdentity>::NAME,
130 "OnSelection",
131 )
132 });
133 let __inner: extern "C" fn(
134 DebugUIHandlerVector4,
135 bool,
136 crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
137 ::unity::OptionalMethod,
138 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
139 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
140 __inner(
141 __receiver,
142 ::core::convert::Into::into(from_next),
143 ::core::convert::Into::into(previous),
144 __mi,
145 )
146 }
147 }
148 }
149 #[doc = "`OnDeselection()` overload"]
150 fn on_deselection(self) -> () {
151 unsafe {
152 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 {
154 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
155 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
156 panic!(
157 "unity: virtual slot {}
158 out of range (vtable len {}
159) on the runtime class behind {}
160 (method `{}
161`)",
162 7usize,
163 __vt.len(),
164 <DebugUIHandlerVector4 as ::unity::ClassIdentity>::NAME,
165 "OnDeselection",
166 )
167 });
168 let __inner: extern "C" fn(DebugUIHandlerVector4, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
169 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
170 __inner(__receiver, __mi)
171 }
172 }
173 }
174 #[doc = "`OnIncrement(bool)` overload"]
175 fn on_increment(self, fast: impl ::core::convert::Into<bool>) -> () {
176 unsafe {
177 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 {
179 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
180 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
181 panic!(
182 "unity: virtual slot {}
183 out of range (vtable len {}
184) on the runtime class behind {}
185 (method `{}
186`)",
187 9usize,
188 __vt.len(),
189 <DebugUIHandlerVector4 as ::unity::ClassIdentity>::NAME,
190 "OnIncrement",
191 )
192 });
193 let __inner: extern "C" fn(DebugUIHandlerVector4, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
194 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
195 __inner(__receiver, ::core::convert::Into::into(fast), __mi)
196 }
197 }
198 }
199 #[doc = "`OnDecrement(bool)` overload"]
200 fn on_decrement(self, fast: impl ::core::convert::Into<bool>) -> () {
201 unsafe {
202 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
203 {
204 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
205 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
206 panic!(
207 "unity: virtual slot {}
208 out of range (vtable len {}
209) on the runtime class behind {}
210 (method `{}
211`)",
212 10usize,
213 __vt.len(),
214 <DebugUIHandlerVector4 as ::unity::ClassIdentity>::NAME,
215 "OnDecrement",
216 )
217 });
218 let __inner: extern "C" fn(DebugUIHandlerVector4, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
219 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
220 __inner(__receiver, ::core::convert::Into::into(fast), __mi)
221 }
222 }
223 }
224 #[doc = "`OnAction()` overload"]
225 fn on_action(self) -> () {
226 unsafe {
227 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
228 {
229 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
230 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
231 panic!(
232 "unity: virtual slot {}
233 out of range (vtable len {}
234) on the runtime class behind {}
235 (method `{}
236`)",
237 8usize,
238 __vt.len(),
239 <DebugUIHandlerVector4 as ::unity::ClassIdentity>::NAME,
240 "OnAction",
241 )
242 });
243 let __inner: extern "C" fn(DebugUIHandlerVector4, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
244 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
245 __inner(__receiver, __mi)
246 }
247 }
248 }
249 #[doc = "`Next()` overload"]
250 fn next(self) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
251 unsafe {
252 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 {
254 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
255 let __vi = *__vt.get(12usize).unwrap_or_else(|| {
256 panic!(
257 "unity: virtual slot {}
258 out of range (vtable len {}
259) on the runtime class behind {}
260 (method `{}
261`)",
262 12usize,
263 __vt.len(),
264 <DebugUIHandlerVector4 as ::unity::ClassIdentity>::NAME,
265 "Next",
266 )
267 });
268 let __inner: extern "C" fn(
269 DebugUIHandlerVector4,
270 ::unity::OptionalMethod,
271 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__vi.method_ptr);
272 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
273 __inner(__receiver, __mi)
274 }
275 }
276 }
277 #[doc = "`.ctor()` overload"]
278 fn ctor(self) -> () {
279 unsafe {
280 let __receiver = <DebugUIHandlerVector4 as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281 ::unity::il2cpp_call!((::unity::module_base()+0x30a8980usize)as*mut u8,();
282(DebugUIHandlerVector4)__receiver)
283 }
284 }
285}
286
287#[cfg(feature = "unity_engine-rendering-ui-debuguihandlervector4")]
288impl<__T: IDebugUIHandlerVector4> IDebugUIHandlerVector4Methods for __T {}
289
290#[cfg(feature = "unity_engine-rendering-ui-debuguihandlervector4")]
291impl DebugUIHandlerVector4 {
292 pub fn set_widget_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
294 }
295
296 pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
298 }
299
300 pub fn setup_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
302 }
303
304 pub fn on_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
306 }
307
308 pub fn on_deselection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
310 }
311
312 pub fn on_increment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
314 }
315
316 pub fn on_decrement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
318 }
319
320 pub fn on_action_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
322 }
323
324 pub fn next_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
326 }
327
328 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
330 }
331}
332
333#[cfg(feature = "unity_engine-rendering-ui-debuguihandlervector4")]
334impl DebugUIHandlerVector4 {
335 #[doc = "Direct (non-virtual) call to `DebugUIHandlerVector4`'s own `SetWidget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
336 pub unsafe fn set_widget(
337 this: impl ::core::convert::Into<::unity::IlInstance>,
338 widget: crate::unity_engine::rendering::debugui::DebugUI_Widget,
339 ) -> () {
340 let __mi = Self::set_widget_method_info();
341 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::debugui::DebugUI_Widget, ::unity::OptionalMethod) -> () =
342 ::core::mem::transmute(__mi.method_ptr);
343 __inner(this.into(), widget, ::core::option::Option::None)
344 }
345
346 #[doc = "Direct (non-virtual) call to `DebugUIHandlerVector4`'s own `OnSelection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
347 pub unsafe fn on_selection(
348 this: impl ::core::convert::Into<::unity::IlInstance>,
349 from_next: bool,
350 previous: crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
351 ) -> bool {
352 let __mi = Self::on_selection_method_info();
353 let __inner: extern "C" fn(
354 ::unity::IlInstance,
355 bool,
356 crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
357 ::unity::OptionalMethod,
358 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
359 __inner(this.into(), from_next, previous, ::core::option::Option::None)
360 }
361
362 #[doc = "Direct (non-virtual) call to `DebugUIHandlerVector4`'s own `OnDeselection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
363 pub unsafe fn on_deselection(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
364 let __mi = Self::on_deselection_method_info();
365 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
366 __inner(this.into(), ::core::option::Option::None)
367 }
368
369 #[doc = "Direct (non-virtual) call to `DebugUIHandlerVector4`'s own `OnIncrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
370 pub unsafe fn on_increment(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
371 let __mi = Self::on_increment_method_info();
372 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
373 __inner(this.into(), fast, ::core::option::Option::None)
374 }
375
376 #[doc = "Direct (non-virtual) call to `DebugUIHandlerVector4`'s own `OnDecrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
377 pub unsafe fn on_decrement(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
378 let __mi = Self::on_decrement_method_info();
379 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
380 __inner(this.into(), fast, ::core::option::Option::None)
381 }
382
383 #[doc = "Direct (non-virtual) call to `DebugUIHandlerVector4`'s own `OnAction`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
384 pub unsafe fn on_action(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
385 let __mi = Self::on_action_method_info();
386 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
387 __inner(this.into(), ::core::option::Option::None)
388 }
389
390 #[doc = "Direct (non-virtual) call to `DebugUIHandlerVector4`'s own `Next`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
391 pub unsafe fn next(
392 this: impl ::core::convert::Into<::unity::IlInstance>,
393 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget {
394 let __mi = Self::next_method_info();
395 let __inner: extern "C" fn(
396 ::unity::IlInstance,
397 ::unity::OptionalMethod,
398 ) -> crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget = ::core::mem::transmute(__mi.method_ptr);
399 __inner(this.into(), ::core::option::Option::None)
400 }
401}
402
403#[cfg(feature = "unity_engine-rendering-ui-debuguihandlervector4")]
404impl DebugUIHandlerVector4 {
405 #[doc = "`.ctor()` — no args"]
406 pub fn new() -> Self {
407 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
408 panic!(
409 "{}
410::{}
411 failed to instantiate",
412 ::core::stringify!(DebugUIHandlerVector4),
413 ::core::stringify!(new),
414 )
415 });
416 <Self as IDebugUIHandlerVector4Methods>::ctor(this);
417 this
418 }
419}
420
421#[cfg(feature = "unity_engine-rendering-ui-debuguihandlervector4")]
422#[doc(hidden)]
423pub mod prelude {
424 pub use super::{DebugUIHandlerVector4, IDebugUIHandlerVector4, IDebugUIHandlerVector4Methods};
425 #[cfg(feature = "system-object")]
426 pub use crate::system::object::IObjectMethods;
427 #[cfg(feature = "unity_engine-behaviour")]
428 pub use crate::unity_engine::behaviour::IBehaviourMethods;
429 #[cfg(feature = "unity_engine-component")]
430 pub use crate::unity_engine::component::IComponentMethods;
431 #[cfg(feature = "unity_engine-monobehaviour")]
432 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
433 #[cfg(feature = "unity_engine-object_2")]
434 pub use crate::unity_engine::object_2::IObject_2Methods;
435 #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
436 pub use crate::unity_engine::rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidgetMethods;
437 pub use crate::{
438 system::object::IObject,
439 unity_engine::{
440 behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2,
441 rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidget,
442 },
443 };
444}