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