engage/generated/unity_engine/
event.rs1#[cfg(feature = "unity_engine-event-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/event/Event.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "Event")]
12 #[parent(crate::system::object::Object)]
13 pub struct Event {
14 #[offset(16)]
15 #[rename(name = "m_Ptr")]
16 pub m_ptr: ::unity::IntPtr,
17 #[static_field]
18 #[rename(name = "s_Current")]
19 pub s_current: crate::unity_engine::event::Event,
20 #[static_field]
21 #[rename(name = "s_MasterEvent")]
22 pub s_master_event: crate::unity_engine::event::Event,
23 }
24}
25
26#[cfg(feature = "unity_engine-event-types")]
27pub use __types::*;
28
29#[cfg(feature = "unity_engine-event")]
30impl Event {
31 #[doc = "`Internal_Create(i32)` overload"]
32 pub fn internal_create(display_index: impl ::core::convert::Into<i32>) -> ::unity::IntPtr {
33 unsafe {
34 ::unity::il2cpp_call!((::unity::module_base()+0x3c37c20usize)as*mut u8, ::unity::IntPtr;
35(i32)::core::convert::Into::into(display_index))
36 }
37 }
38
39 #[doc = "`Internal_Destroy(::unity::IntPtr)` overload"]
40 pub fn internal_destroy(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
41 unsafe {
42 ::unity::il2cpp_call!((::unity::module_base()+0x3c37c70usize)as*mut u8,();
43(::unity::IntPtr)::core::convert::Into::into(ptr))
44 }
45 }
46
47 #[doc = "`PopEvent(crate::unity_engine::event::Event)` overload"]
48 pub fn pop_event(out_event: impl ::core::convert::Into<crate::unity_engine::event::Event>) -> bool {
49 unsafe {
50 ::unity::il2cpp_call!((::unity::module_base()+0x3c37d10usize)as*mut u8,bool;
51(crate::unity_engine::event::Event)::core::convert::Into::into(out_event))
52 }
53 }
54
55 #[doc = "`Internal_SetNativeEvent(::unity::IntPtr)` overload"]
56 pub fn internal_set_native_event(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x3c37d60usize)as*mut u8,();
59(::unity::IntPtr)::core::convert::Into::into(ptr))
60 }
61 }
62
63 #[doc = "`Internal_MakeMasterEventCurrent(i32)` overload"]
64 pub fn internal_make_master_event_current(display_index: impl ::core::convert::Into<i32>) -> () {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x3c37db0usize)as*mut u8,();
67(i32)::core::convert::Into::into(display_index))
68 }
69 }
70
71 #[doc = "`get_current()` overload"]
72 pub fn get_current() -> crate::unity_engine::event::Event {
73 unsafe {
74 ::unity::il2cpp_call!((::unity::module_base()+0x3c381d0usize)as*mut u8,crate::unity_engine::event::Event;
75 )
76 }
77 }
78}
79
80#[cfg(feature = "unity_engine-event")]
81pub trait IEventMethods: IEvent {
82 #[doc = "`get_rawType()` overload"]
83 fn get_raw_type(self) -> crate::unity_engine::eventtype::EventType {
84 unsafe {
85 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x3c377f0usize)as*mut u8,crate::unity_engine::eventtype::EventType;
87(Event)__receiver)
88 }
89 }
90 #[doc = "`get_mousePosition()` overload"]
91 fn get_mouse_position(self) -> crate::unity_engine::vector2::Vector2 {
92 unsafe {
93 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94 ::unity::il2cpp_call!((::unity::module_base()+0x3c37840usize)as*mut u8,crate::unity_engine::vector2::Vector2;
95(Event)__receiver)
96 }
97 }
98 #[doc = "`get_delta()` overload"]
99 fn get_delta(self) -> crate::unity_engine::vector2::Vector2 {
100 unsafe {
101 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102 ::unity::il2cpp_call!((::unity::module_base()+0x3c378f0usize)as*mut u8,crate::unity_engine::vector2::Vector2;
103(Event)__receiver)
104 }
105 }
106 #[doc = "`get_pointerType()` overload"]
107 fn get_pointer_type(self) -> crate::unity_engine::pointertype::PointerType {
108 unsafe {
109 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110 ::unity::il2cpp_call!((::unity::module_base()+0x3c379a0usize)as*mut u8,crate::unity_engine::pointertype::PointerType;
111(Event)__receiver)
112 }
113 }
114 #[doc = "`get_modifiers()` overload"]
115 fn get_modifiers(self) -> crate::unity_engine::eventmodifiers::EventModifiers {
116 unsafe {
117 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118 ::unity::il2cpp_call!((::unity::module_base()+0x3c379f0usize)as*mut u8,crate::unity_engine::eventmodifiers::EventModifiers;
119(Event)__receiver)
120 }
121 }
122 #[doc = "`get_character()` overload"]
123 fn get_character(self) -> u16 {
124 unsafe {
125 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x3c37a40usize)as*mut u8,u16;
127(Event)__receiver)
128 }
129 }
130 #[doc = "`get_keyCode()` overload"]
131 fn get_key_code(self) -> crate::unity_engine::keycode::KeyCode {
132 unsafe {
133 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 ::unity::il2cpp_call!((::unity::module_base()+0x3c37a90usize)as*mut u8,crate::unity_engine::keycode::KeyCode;
135(Event)__receiver)
136 }
137 }
138 #[doc = "`set_displayIndex(i32)` overload"]
139 fn set_display_index(self, value: impl ::core::convert::Into<i32>) -> () {
140 unsafe {
141 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x3c37ae0usize)as*mut u8,();
143(Event)__receiver,(i32)::core::convert::Into::into(value))
144 }
145 }
146 #[doc = "`get_type()` overload"]
147 fn get_type(self) -> crate::unity_engine::eventtype::EventType {
148 unsafe {
149 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150 ::unity::il2cpp_call!((::unity::module_base()+0x3c37b30usize)as*mut u8,crate::unity_engine::eventtype::EventType;
151(Event)__receiver)
152 }
153 }
154 #[doc = "`get_commandName()` overload"]
155 fn get_command_name(self) -> ::unity::Il2CppString {
156 unsafe {
157 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158 ::unity::il2cpp_call!((::unity::module_base()+0x3c37b80usize)as*mut u8, ::unity::Il2CppString;
159(Event)__receiver)
160 }
161 }
162 #[doc = "`Internal_Use()` overload"]
163 fn internal_use(self) -> () {
164 unsafe {
165 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166 ::unity::il2cpp_call!((::unity::module_base()+0x3c37bd0usize)as*mut u8,();
167(Event)__receiver)
168 }
169 }
170 #[doc = "`GetTypeForControl(i32)` overload"]
171 fn get_type_for_control(self, control_id: impl ::core::convert::Into<i32>) -> crate::unity_engine::eventtype::EventType {
172 unsafe {
173 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 ::unity::il2cpp_call!((::unity::module_base()+0x3c37cc0usize)as*mut u8,crate::unity_engine::eventtype::EventType;
175(Event)__receiver,(i32)::core::convert::Into::into(control_id))
176 }
177 }
178 #[doc = "`.ctor()` overload"]
179 fn ctor(self) -> () {
180 unsafe {
181 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 ::unity::il2cpp_call!((::unity::module_base()+0x3c37f60usize)as*mut u8,();
183(Event)__receiver)
184 }
185 }
186 #[doc = "`.ctor(i32)` overload"]
187 fn ctor_2(self, display_index: impl ::core::convert::Into<i32>) -> () {
188 unsafe {
189 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190 ::unity::il2cpp_call!((::unity::module_base()+0x3c37f00usize)as*mut u8,();
191(Event)__receiver,(i32)::core::convert::Into::into(display_index))
192 }
193 }
194 #[doc = "`Finalize()` overload"]
195 fn finalize(self) -> () {
196 unsafe {
197 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198 {
199 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
200 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
201 panic!(
202 "unity: virtual slot {}
203 out of range (vtable len {}
204) on the runtime class behind {}
205 (method `{}
206`)",
207 1usize,
208 __vt.len(),
209 <Event as ::unity::ClassIdentity>::NAME,
210 "Finalize",
211 )
212 });
213 let __inner: extern "C" fn(Event, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
214 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
215 __inner(__receiver, __mi)
216 }
217 }
218 }
219 #[doc = "`get_shift()` overload"]
220 fn get_shift(self) -> bool {
221 unsafe {
222 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x3c38090usize)as*mut u8,bool;
224(Event)__receiver)
225 }
226 }
227 #[doc = "`get_control()` overload"]
228 fn get_control(self) -> bool {
229 unsafe {
230 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231 ::unity::il2cpp_call!((::unity::module_base()+0x3c380e0usize)as*mut u8,bool;
232(Event)__receiver)
233 }
234 }
235 #[doc = "`get_alt()` overload"]
236 fn get_alt(self) -> bool {
237 unsafe {
238 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x3c38130usize)as*mut u8,bool;
240(Event)__receiver)
241 }
242 }
243 #[doc = "`get_command()` overload"]
244 fn get_command(self) -> bool {
245 unsafe {
246 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
247 ::unity::il2cpp_call!((::unity::module_base()+0x3c38180usize)as*mut u8,bool;
248(Event)__receiver)
249 }
250 }
251 #[doc = "`get_isKey()` overload"]
252 fn get_is_key(self) -> bool {
253 unsafe {
254 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 ::unity::il2cpp_call!((::unity::module_base()+0x3c38220usize)as*mut u8,bool;
256(Event)__receiver)
257 }
258 }
259 #[doc = "`get_isMouse()` overload"]
260 fn get_is_mouse(self) -> bool {
261 unsafe {
262 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
263 ::unity::il2cpp_call!((::unity::module_base()+0x3c38270usize)as*mut u8,bool;
264(Event)__receiver)
265 }
266 }
267 #[doc = "`get_isDirectManipulationDevice()` overload"]
268 fn get_is_direct_manipulation_device(self) -> bool {
269 unsafe {
270 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
271 ::unity::il2cpp_call!((::unity::module_base()+0x3c382e0usize)as*mut u8,bool;
272(Event)__receiver)
273 }
274 }
275 #[doc = "`GetHashCode()` overload"]
276 fn get_hash_code(self) -> i32 {
277 unsafe {
278 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
279 {
280 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
281 let __vi = *__vt.get(2usize).unwrap_or_else(|| {
282 panic!(
283 "unity: virtual slot {}
284 out of range (vtable len {}
285) on the runtime class behind {}
286 (method `{}
287`)",
288 2usize,
289 __vt.len(),
290 <Event as ::unity::ClassIdentity>::NAME,
291 "GetHashCode",
292 )
293 });
294 let __inner: extern "C" fn(Event, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
295 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
296 __inner(__receiver, __mi)
297 }
298 }
299 }
300 #[doc = "`Equals(crate::system::object::Object)` overload"]
301 fn equals(self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
302 unsafe {
303 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
304 {
305 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
306 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
307 panic!(
308 "unity: virtual slot {}
309 out of range (vtable len {}
310) on the runtime class behind {}
311 (method `{}
312`)",
313 0usize,
314 __vt.len(),
315 <Event as ::unity::ClassIdentity>::NAME,
316 "Equals",
317 )
318 });
319 let __inner: extern "C" fn(Event, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
320 ::core::mem::transmute(__vi.method_ptr);
321 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
322 __inner(__receiver, ::core::convert::Into::into(obj), __mi)
323 }
324 }
325 }
326 #[doc = "`ToString()` overload"]
327 fn to_string(self) -> ::unity::Il2CppString {
328 unsafe {
329 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
330 {
331 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
332 let __vi = *__vt.get(3usize).unwrap_or_else(|| {
333 panic!(
334 "unity: virtual slot {}
335 out of range (vtable len {}
336) on the runtime class behind {}
337 (method `{}
338`)",
339 3usize,
340 __vt.len(),
341 <Event as ::unity::ClassIdentity>::NAME,
342 "ToString",
343 )
344 });
345 let __inner: extern "C" fn(Event, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
346 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
347 __inner(__receiver, __mi)
348 }
349 }
350 }
351 #[doc = "`Use()` overload"]
352 fn r#use(self) -> () {
353 unsafe {
354 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
355 ::unity::il2cpp_call!((::unity::module_base()+0x3c39230usize)as*mut u8,();
356(Event)__receiver)
357 }
358 }
359 #[doc = "`get_mousePosition_Injected(*mutcrate::unity_engine::vector2::Vector2)` overload"]
360 fn get_mouse_position_injected(self) -> crate::unity_engine::vector2::Vector2 {
361 unsafe {
362 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
363 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
364 ::unity::il2cpp_call!((::unity::module_base()+0x3c378a0usize)as*mut u8,();
365(Event)__receiver,(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr());
366 __out_0.assume_init()
367 }
368 }
369 #[doc = "`get_delta_Injected(*mutcrate::unity_engine::vector2::Vector2)` overload"]
370 fn get_delta_injected(self) -> crate::unity_engine::vector2::Vector2 {
371 unsafe {
372 let __receiver = <Event as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
374 ::unity::il2cpp_call!((::unity::module_base()+0x3c37950usize)as*mut u8,();
375(Event)__receiver,(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr());
376 __out_0.assume_init()
377 }
378 }
379}
380
381#[cfg(feature = "unity_engine-event")]
382impl<__T: IEvent> IEventMethods for __T {}
383
384#[cfg(feature = "unity_engine-event")]
385impl Event {
386 pub fn get_raw_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
388 }
389
390 pub fn get_mouse_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
392 }
393
394 pub fn get_delta_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
396 }
397
398 pub fn get_pointer_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
400 }
401
402 pub fn get_modifiers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
404 }
405
406 pub fn get_character_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
408 }
409
410 pub fn get_key_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
412 }
413
414 pub fn set_display_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
416 }
417
418 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
420 }
421
422 pub fn get_command_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
424 }
425
426 pub fn internal_use_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
428 }
429
430 pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
431 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
432 }
433
434 pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
436 }
437
438 pub fn get_type_for_control_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
440 }
441
442 pub fn pop_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
444 }
445
446 pub fn internal_set_native_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
448 }
449
450 pub fn internal_make_master_event_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
452 }
453
454 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
456 }
457
458 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
460 }
461
462 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
464 }
465
466 pub fn get_shift_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
468 }
469
470 pub fn get_control_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
472 }
473
474 pub fn get_alt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
475 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
476 }
477
478 pub fn get_command_method_info() -> &'static ::unity::il2cpp::MethodInfo {
479 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
480 }
481
482 pub fn get_current_method_info() -> &'static ::unity::il2cpp::MethodInfo {
483 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
484 }
485
486 pub fn get_is_key_method_info() -> &'static ::unity::il2cpp::MethodInfo {
487 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
488 }
489
490 pub fn get_is_mouse_method_info() -> &'static ::unity::il2cpp::MethodInfo {
491 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
492 }
493
494 pub fn get_is_direct_manipulation_device_method_info() -> &'static ::unity::il2cpp::MethodInfo {
495 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
496 }
497
498 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
499 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
500 }
501
502 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
503 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
504 }
505
506 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
507 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
508 }
509
510 pub fn use_method_info() -> &'static ::unity::il2cpp::MethodInfo {
511 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
512 }
513
514 pub fn get_mouse_position_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
515 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
516 }
517
518 pub fn get_delta_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
519 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
520 }
521}
522
523#[cfg(feature = "unity_engine-event")]
524impl Event {
525 #[doc = "Direct (non-virtual) call to `Event`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
526 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
527 let __mi = Self::finalize_method_info();
528 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
529 __inner(this.into(), ::core::option::Option::None)
530 }
531
532 #[doc = "Direct (non-virtual) call to `Event`'s own `GetHashCode`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
533 pub unsafe fn get_hash_code(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
534 let __mi = Self::get_hash_code_method_info();
535 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
536 __inner(this.into(), ::core::option::Option::None)
537 }
538
539 #[doc = "Direct (non-virtual) call to `Event`'s own `Equals`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
540 pub unsafe fn equals(this: impl ::core::convert::Into<::unity::IlInstance>, obj: crate::system::object::Object) -> bool {
541 let __mi = Self::equals_method_info();
542 let __inner: extern "C" fn(::unity::IlInstance, crate::system::object::Object, ::unity::OptionalMethod) -> bool =
543 ::core::mem::transmute(__mi.method_ptr);
544 __inner(this.into(), obj, ::core::option::Option::None)
545 }
546
547 #[doc = "Direct (non-virtual) call to `Event`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
548 pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
549 let __mi = Self::to_string_method_info();
550 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
551 __inner(this.into(), ::core::option::Option::None)
552 }
553}
554
555#[cfg(feature = "unity_engine-event")]
556impl Event {
557 #[doc = "`.ctor()` — no args"]
558 pub fn new() -> Self {
559 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
560 panic!(
561 "{}
562::{}
563 failed to instantiate",
564 ::core::stringify!(Event),
565 ::core::stringify!(new),
566 )
567 });
568 <Self as IEventMethods>::ctor(this);
569 this
570 }
571
572 #[doc = "`.ctor(i32)` — overload selector"]
573 pub fn new_2(display_index: i32) -> Self {
574 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
575 panic!(
576 "{}
577::{}
578 failed to instantiate",
579 ::core::stringify!(Event),
580 ::core::stringify!(new_2),
581 )
582 });
583 <Self as IEventMethods>::ctor_2(this, display_index);
584 this
585 }
586}
587
588#[cfg(feature = "unity_engine-event")]
589#[doc(hidden)]
590pub mod prelude {
591 pub use super::{Event, IEvent, IEventMethods};
592 pub use crate::system::object::IObject;
593 #[cfg(feature = "system-object")]
594 pub use crate::system::object::IObjectMethods;
595}