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