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