engage/generated/unity_engine/rendering/ui/
debuguihandlerintfield.rs1#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerintfield-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/debuguihandlerintfield/DebugUIHandlerIntField.md"))]
20 #[::unity::class(namespace = "UnityEngine.Rendering.UI", name = "DebugUIHandlerIntField")]
21 #[parent(crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)]
22 pub struct DebugUIHandlerIntField {
23 #[offset(88)]
24 #[rename(name = "nameLabel")]
25 pub name_label: crate::unity_engine::ui::text::Text,
26 #[offset(96)]
27 #[rename(name = "valueLabel")]
28 pub value_label: crate::unity_engine::ui::text::Text,
29 #[offset(104)]
30 #[rename(name = "m_Field")]
31 pub m_field: crate::unity_engine::rendering::debugui::DebugUI_IntField,
32 }
33}
34
35#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerintfield-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerintfield")]
39pub trait IDebugUIHandlerIntFieldMethods: IDebugUIHandlerIntField {
40 #[doc = "`SetWidget(crate::unity_engine::rendering::debugui::DebugUI_Widget)` overload"]
41 fn set_widget(self, widget: impl ::core::convert::Into<crate::unity_engine::rendering::debugui::DebugUI_Widget>) -> () {
42 unsafe {
43 let __receiver =
44 <DebugUIHandlerIntField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 {
46 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
47 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
48 panic!(
49 "unity: virtual slot {}
50 out of range (vtable len {}
51) on the runtime class behind {}
52 (method `{}
53`)",
54 5usize,
55 __vt.len(),
56 <DebugUIHandlerIntField as ::unity::ClassIdentity>::NAME,
57 "SetWidget",
58 )
59 });
60 let __inner: extern "C" fn(
61 DebugUIHandlerIntField,
62 crate::unity_engine::rendering::debugui::DebugUI_Widget,
63 ::unity::OptionalMethod,
64 ) -> () = ::core::mem::transmute(__vi.method_ptr);
65 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
66 __inner(__receiver, ::core::convert::Into::into(widget), __mi)
67 }
68 }
69 }
70 #[doc = "`OnSelection(bool, crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget)` overload"]
71 fn on_selection(
72 self,
73 from_next: impl ::core::convert::Into<bool>,
74 previous: impl ::core::convert::Into<crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget>,
75 ) -> bool {
76 unsafe {
77 let __receiver =
78 <DebugUIHandlerIntField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
79 {
80 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
81 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
82 panic!(
83 "unity: virtual slot {}
84 out of range (vtable len {}
85) on the runtime class behind {}
86 (method `{}
87`)",
88 6usize,
89 __vt.len(),
90 <DebugUIHandlerIntField as ::unity::ClassIdentity>::NAME,
91 "OnSelection",
92 )
93 });
94 let __inner: extern "C" fn(
95 DebugUIHandlerIntField,
96 bool,
97 crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
98 ::unity::OptionalMethod,
99 ) -> bool = ::core::mem::transmute(__vi.method_ptr);
100 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
101 __inner(
102 __receiver,
103 ::core::convert::Into::into(from_next),
104 ::core::convert::Into::into(previous),
105 __mi,
106 )
107 }
108 }
109 }
110 #[doc = "`OnDeselection()` overload"]
111 fn on_deselection(self) -> () {
112 unsafe {
113 let __receiver =
114 <DebugUIHandlerIntField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
115 {
116 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
117 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
118 panic!(
119 "unity: virtual slot {}
120 out of range (vtable len {}
121) on the runtime class behind {}
122 (method `{}
123`)",
124 7usize,
125 __vt.len(),
126 <DebugUIHandlerIntField as ::unity::ClassIdentity>::NAME,
127 "OnDeselection",
128 )
129 });
130 let __inner: extern "C" fn(DebugUIHandlerIntField, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
131 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
132 __inner(__receiver, __mi)
133 }
134 }
135 }
136 #[doc = "`OnIncrement(bool)` overload"]
137 fn on_increment(self, fast: impl ::core::convert::Into<bool>) -> () {
138 unsafe {
139 let __receiver =
140 <DebugUIHandlerIntField 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(9usize).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 9usize,
151 __vt.len(),
152 <DebugUIHandlerIntField as ::unity::ClassIdentity>::NAME,
153 "OnIncrement",
154 )
155 });
156 let __inner: extern "C" fn(DebugUIHandlerIntField, bool, ::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, ::core::convert::Into::into(fast), __mi)
159 }
160 }
161 }
162 #[doc = "`OnDecrement(bool)` overload"]
163 fn on_decrement(self, fast: impl ::core::convert::Into<bool>) -> () {
164 unsafe {
165 let __receiver =
166 <DebugUIHandlerIntField 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(10usize).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 10usize,
177 __vt.len(),
178 <DebugUIHandlerIntField as ::unity::ClassIdentity>::NAME,
179 "OnDecrement",
180 )
181 });
182 let __inner: extern "C" fn(DebugUIHandlerIntField, 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 = "`ChangeValue(bool, i32)` overload"]
189 fn change_value(self, fast: impl ::core::convert::Into<bool>, multiplier: impl ::core::convert::Into<i32>) -> () {
190 unsafe {
191 let __receiver =
192 <DebugUIHandlerIntField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193 ::unity::il2cpp_call!((::unity::module_base()+0x30a4850usize)as*mut u8,();
194(DebugUIHandlerIntField)__receiver,(bool)::core::convert::Into::into(fast),(i32)::core::convert::Into::into(multiplier))
195 }
196 }
197 #[doc = "`UpdateValueLabel()` overload"]
198 fn update_value_label(self) -> () {
199 unsafe {
200 let __receiver =
201 <DebugUIHandlerIntField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202 ::unity::il2cpp_call!((::unity::module_base()+0x30a4620usize)as*mut u8,();
203(DebugUIHandlerIntField)__receiver)
204 }
205 }
206 #[doc = "`.ctor()` overload"]
207 fn ctor(self) -> () {
208 unsafe {
209 let __receiver =
210 <DebugUIHandlerIntField as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x30a49a0usize)as*mut u8,();
212(DebugUIHandlerIntField)__receiver)
213 }
214 }
215}
216
217#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerintfield")]
218impl<__T: IDebugUIHandlerIntField> IDebugUIHandlerIntFieldMethods for __T {}
219
220#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerintfield")]
221impl DebugUIHandlerIntField {
222 pub fn set_widget_method_info() -> &'static ::unity::il2cpp::MethodInfo {
223 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
224 }
225
226 pub fn on_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
227 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
228 }
229
230 pub fn on_deselection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
232 }
233
234 pub fn on_increment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
236 }
237
238 pub fn on_decrement_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
240 }
241
242 pub fn change_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
244 }
245
246 pub fn update_value_label_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
248 }
249
250 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
252 }
253}
254
255#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerintfield")]
256impl DebugUIHandlerIntField {
257 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIntField`'s own `SetWidget`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
258 pub unsafe fn set_widget(
259 this: impl ::core::convert::Into<::unity::IlInstance>,
260 widget: crate::unity_engine::rendering::debugui::DebugUI_Widget,
261 ) -> () {
262 let __mi = Self::set_widget_method_info();
263 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::debugui::DebugUI_Widget, ::unity::OptionalMethod) -> () =
264 ::core::mem::transmute(__mi.method_ptr);
265 __inner(this.into(), widget, ::core::option::Option::None)
266 }
267
268 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIntField`'s own `OnSelection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269 pub unsafe fn on_selection(
270 this: impl ::core::convert::Into<::unity::IlInstance>,
271 from_next: bool,
272 previous: crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
273 ) -> bool {
274 let __mi = Self::on_selection_method_info();
275 let __inner: extern "C" fn(
276 ::unity::IlInstance,
277 bool,
278 crate::unity_engine::rendering::ui::debuguihandlerwidget::DebugUIHandlerWidget,
279 ::unity::OptionalMethod,
280 ) -> bool = ::core::mem::transmute(__mi.method_ptr);
281 __inner(this.into(), from_next, previous, ::core::option::Option::None)
282 }
283
284 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIntField`'s own `OnDeselection`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
285 pub unsafe fn on_deselection(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
286 let __mi = Self::on_deselection_method_info();
287 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
288 __inner(this.into(), ::core::option::Option::None)
289 }
290
291 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIntField`'s own `OnIncrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
292 pub unsafe fn on_increment(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
293 let __mi = Self::on_increment_method_info();
294 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
295 __inner(this.into(), fast, ::core::option::Option::None)
296 }
297
298 #[doc = "Direct (non-virtual) call to `DebugUIHandlerIntField`'s own `OnDecrement`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
299 pub unsafe fn on_decrement(this: impl ::core::convert::Into<::unity::IlInstance>, fast: bool) -> () {
300 let __mi = Self::on_decrement_method_info();
301 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
302 __inner(this.into(), fast, ::core::option::Option::None)
303 }
304}
305
306#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerintfield")]
307impl DebugUIHandlerIntField {
308 #[doc = "`.ctor()` — no args"]
309 pub fn new() -> Self {
310 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
311 panic!(
312 "{}
313::{}
314 failed to instantiate",
315 ::core::stringify!(DebugUIHandlerIntField),
316 ::core::stringify!(new),
317 )
318 });
319 <Self as IDebugUIHandlerIntFieldMethods>::ctor(this);
320 this
321 }
322}
323
324#[cfg(feature = "unity_engine-rendering-ui-debuguihandlerintfield")]
325#[doc(hidden)]
326pub mod prelude {
327 pub use super::{DebugUIHandlerIntField, IDebugUIHandlerIntField, IDebugUIHandlerIntFieldMethods};
328 #[cfg(feature = "system-object")]
329 pub use crate::system::object::IObjectMethods;
330 #[cfg(feature = "unity_engine-behaviour")]
331 pub use crate::unity_engine::behaviour::IBehaviourMethods;
332 #[cfg(feature = "unity_engine-component")]
333 pub use crate::unity_engine::component::IComponentMethods;
334 #[cfg(feature = "unity_engine-monobehaviour")]
335 pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
336 #[cfg(feature = "unity_engine-object_2")]
337 pub use crate::unity_engine::object_2::IObject_2Methods;
338 #[cfg(feature = "unity_engine-rendering-ui-debuguihandlerwidget")]
339 pub use crate::unity_engine::rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidgetMethods;
340 pub use crate::{
341 system::object::IObject,
342 unity_engine::{
343 behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2,
344 rendering::ui::debuguihandlerwidget::IDebugUIHandlerWidget,
345 },
346 };
347}