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