Skip to main content

engage/generated/root/
akmidieventcallbackinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akmidieventcallbackinfo-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        root::{
10            akcallbackinfo::{AkCallbackInfo, IAkCallbackInfo},
11            akeventcallbackinfo::{AkEventCallbackInfo, IAkEventCallbackInfo},
12        },
13        system::object::{IObject, Object},
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/root/akmidieventcallbackinfo/AkMIDIEventCallbackInfo.md"))]
17    #[::unity::class(namespace = "", name = "AkMIDIEventCallbackInfo")]
18    #[parent(crate::root::akeventcallbackinfo::AkEventCallbackInfo)]
19    pub struct AkMIDIEventCallbackInfo {
20        #[offset(40)]
21        #[rename(name = "swigCPtr")]
22        pub swig_c_ptr: ::unity::IntPtr,
23    }
24}
25
26#[cfg(feature = "root-akmidieventcallbackinfo-types")]
27pub use __types::*;
28
29#[cfg(feature = "root-akmidieventcallbackinfo")]
30impl AkMIDIEventCallbackInfo {
31    #[doc = "`getCPtr(crate::root::akmidieventcallbackinfo::AkMIDIEventCallbackInfo)` overload"]
32    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akmidieventcallbackinfo::AkMIDIEventCallbackInfo>) -> ::unity::IntPtr {
33        unsafe {
34            ::unity::il2cpp_call!((::unity::module_base()+0x2f24d70usize)as*mut u8, ::unity::IntPtr;
35(crate::root::akmidieventcallbackinfo::AkMIDIEventCallbackInfo)::core::convert::Into::into(obj))
36        }
37    }
38}
39
40#[cfg(feature = "root-akmidieventcallbackinfo")]
41pub trait IAkMIDIEventCallbackInfoMethods: IAkMIDIEventCallbackInfo {
42    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
43    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
44        unsafe {
45            let __receiver =
46                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2f24c90usize)as*mut u8,();
48(AkMIDIEventCallbackInfo)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
49        }
50    }
51    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
52    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
53        unsafe {
54            let __receiver =
55                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56            {
57                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
58                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
59                    panic!(
60                        "unity: virtual slot {}
61 out of range (vtable len {}
62) on the runtime class behind {}
63 (method `{}
64`)",
65                        5usize,
66                        __vt.len(),
67                        <AkMIDIEventCallbackInfo as ::unity::ClassIdentity>::NAME,
68                        "setCPtr",
69                    )
70                });
71                let __inner: extern "C" fn(AkMIDIEventCallbackInfo, ::unity::IntPtr, ::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(c_ptr), __mi)
75            }
76        }
77    }
78    #[doc = "`Finalize()` overload"]
79    fn finalize(self) -> () {
80        unsafe {
81            let __receiver =
82                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
83            {
84                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
85                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
86                    panic!(
87                        "unity: virtual slot {}
88 out of range (vtable len {}
89) on the runtime class behind {}
90 (method `{}
91`)",
92                        1usize,
93                        __vt.len(),
94                        <AkMIDIEventCallbackInfo as ::unity::ClassIdentity>::NAME,
95                        "Finalize",
96                    )
97                });
98                let __inner: extern "C" fn(AkMIDIEventCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
99                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
100                __inner(__receiver, __mi)
101            }
102        }
103    }
104    #[doc = "`Dispose()` overload"]
105    fn dispose(self) -> () {
106        unsafe {
107            let __receiver =
108                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
109            {
110                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
111                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
112                    panic!(
113                        "unity: virtual slot {}
114 out of range (vtable len {}
115) on the runtime class behind {}
116 (method `{}
117`)",
118                        6usize,
119                        __vt.len(),
120                        <AkMIDIEventCallbackInfo as ::unity::ClassIdentity>::NAME,
121                        "Dispose",
122                    )
123                });
124                let __inner: extern "C" fn(AkMIDIEventCallbackInfo, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
125                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
126                __inner(__receiver, __mi)
127            }
128        }
129    }
130    #[doc = "`get_byChan()` overload"]
131    fn get_by_chan(self) -> u8 {
132        unsafe {
133            let __receiver =
134                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x2f25130usize)as*mut u8,u8;
136(AkMIDIEventCallbackInfo)__receiver)
137        }
138    }
139    #[doc = "`get_byParam1()` overload"]
140    fn get_by_param1(self) -> u8 {
141        unsafe {
142            let __receiver =
143                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
144            ::unity::il2cpp_call!((::unity::module_base()+0x2f251a0usize)as*mut u8,u8;
145(AkMIDIEventCallbackInfo)__receiver)
146        }
147    }
148    #[doc = "`get_byParam2()` overload"]
149    fn get_by_param2(self) -> u8 {
150        unsafe {
151            let __receiver =
152                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153            ::unity::il2cpp_call!((::unity::module_base()+0x2f25210usize)as*mut u8,u8;
154(AkMIDIEventCallbackInfo)__receiver)
155        }
156    }
157    #[doc = "`get_byType()` overload"]
158    fn get_by_type(self) -> crate::root::akmidieventtypes::AkMIDIEventTypes {
159        unsafe {
160            let __receiver =
161                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162            ::unity::il2cpp_call!((::unity::module_base()+0x2f25280usize)as*mut u8,crate::root::akmidieventtypes::AkMIDIEventTypes;
163(AkMIDIEventCallbackInfo)__receiver)
164        }
165    }
166    #[doc = "`get_byOnOffNote()` overload"]
167    fn get_by_on_off_note(self) -> u8 {
168        unsafe {
169            let __receiver =
170                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x2f252f0usize)as*mut u8,u8;
172(AkMIDIEventCallbackInfo)__receiver)
173        }
174    }
175    #[doc = "`get_byVelocity()` overload"]
176    fn get_by_velocity(self) -> u8 {
177        unsafe {
178            let __receiver =
179                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180            ::unity::il2cpp_call!((::unity::module_base()+0x2f25360usize)as*mut u8,u8;
181(AkMIDIEventCallbackInfo)__receiver)
182        }
183    }
184    #[doc = "`get_byCc()` overload"]
185    fn get_by_cc(self) -> crate::root::akmidicctypes::AkMIDICcTypes {
186        unsafe {
187            let __receiver =
188                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            ::unity::il2cpp_call!((::unity::module_base()+0x2f253d0usize)as*mut u8,crate::root::akmidicctypes::AkMIDICcTypes;
190(AkMIDIEventCallbackInfo)__receiver)
191        }
192    }
193    #[doc = "`get_byCcValue()` overload"]
194    fn get_by_cc_value(self) -> u8 {
195        unsafe {
196            let __receiver =
197                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x2f25440usize)as*mut u8,u8;
199(AkMIDIEventCallbackInfo)__receiver)
200        }
201    }
202    #[doc = "`get_byValueLsb()` overload"]
203    fn get_by_value_lsb(self) -> u8 {
204        unsafe {
205            let __receiver =
206                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207            ::unity::il2cpp_call!((::unity::module_base()+0x2f254b0usize)as*mut u8,u8;
208(AkMIDIEventCallbackInfo)__receiver)
209        }
210    }
211    #[doc = "`get_byValueMsb()` overload"]
212    fn get_by_value_msb(self) -> u8 {
213        unsafe {
214            let __receiver =
215                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216            ::unity::il2cpp_call!((::unity::module_base()+0x2f25520usize)as*mut u8,u8;
217(AkMIDIEventCallbackInfo)__receiver)
218        }
219    }
220    #[doc = "`get_byAftertouchNote()` overload"]
221    fn get_by_aftertouch_note(self) -> u8 {
222        unsafe {
223            let __receiver =
224                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225            ::unity::il2cpp_call!((::unity::module_base()+0x2f25590usize)as*mut u8,u8;
226(AkMIDIEventCallbackInfo)__receiver)
227        }
228    }
229    #[doc = "`get_byNoteAftertouchValue()` overload"]
230    fn get_by_note_aftertouch_value(self) -> u8 {
231        unsafe {
232            let __receiver =
233                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x2f25600usize)as*mut u8,u8;
235(AkMIDIEventCallbackInfo)__receiver)
236        }
237    }
238    #[doc = "`get_byChanAftertouchValue()` overload"]
239    fn get_by_chan_aftertouch_value(self) -> u8 {
240        unsafe {
241            let __receiver =
242                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            ::unity::il2cpp_call!((::unity::module_base()+0x2f25670usize)as*mut u8,u8;
244(AkMIDIEventCallbackInfo)__receiver)
245        }
246    }
247    #[doc = "`get_byProgramNum()` overload"]
248    fn get_by_program_num(self) -> u8 {
249        unsafe {
250            let __receiver =
251                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
252            ::unity::il2cpp_call!((::unity::module_base()+0x2f256e0usize)as*mut u8,u8;
253(AkMIDIEventCallbackInfo)__receiver)
254        }
255    }
256    #[doc = "`.ctor()` overload"]
257    fn ctor_2(self) -> () {
258        unsafe {
259            let __receiver =
260                <AkMIDIEventCallbackInfo as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261            ::unity::il2cpp_call!((::unity::module_base()+0x2f25750usize)as*mut u8,();
262(AkMIDIEventCallbackInfo)__receiver)
263        }
264    }
265}
266
267#[cfg(feature = "root-akmidieventcallbackinfo")]
268impl<__T: IAkMIDIEventCallbackInfo> IAkMIDIEventCallbackInfoMethods for __T {}
269
270#[cfg(feature = "root-akmidieventcallbackinfo")]
271impl AkMIDIEventCallbackInfo {
272    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
274    }
275
276    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
278    }
279
280    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
282    }
283
284    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
286    }
287
288    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
290    }
291
292    pub fn get_by_chan_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
294    }
295
296    pub fn get_by_param1_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
298    }
299
300    pub fn get_by_param2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
302    }
303
304    pub fn get_by_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
306    }
307
308    pub fn get_by_on_off_note_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
310    }
311
312    pub fn get_by_velocity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
314    }
315
316    pub fn get_by_cc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
318    }
319
320    pub fn get_by_cc_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
322    }
323
324    pub fn get_by_value_lsb_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
326    }
327
328    pub fn get_by_value_msb_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
330    }
331
332    pub fn get_by_aftertouch_note_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
334    }
335
336    pub fn get_by_note_aftertouch_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
338    }
339
340    pub fn get_by_chan_aftertouch_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
342    }
343
344    pub fn get_by_program_num_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
346    }
347
348    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
350    }
351}
352
353#[cfg(feature = "root-akmidieventcallbackinfo")]
354impl AkMIDIEventCallbackInfo {
355    #[doc = "Direct (non-virtual) call to `AkMIDIEventCallbackInfo`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
356    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
357        let __mi = Self::set_c_ptr_method_info();
358        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
359        __inner(this.into(), c_ptr, ::core::option::Option::None)
360    }
361
362    #[doc = "Direct (non-virtual) call to `AkMIDIEventCallbackInfo`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
363    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
364        let __mi = Self::finalize_method_info();
365        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
366        __inner(this.into(), ::core::option::Option::None)
367    }
368
369    #[doc = "Direct (non-virtual) call to `AkMIDIEventCallbackInfo`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
370    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
371        let __mi = Self::dispose_method_info();
372        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
373        __inner(this.into(), ::core::option::Option::None)
374    }
375}
376
377#[cfg(feature = "root-akmidieventcallbackinfo")]
378impl AkMIDIEventCallbackInfo {
379    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
380    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
381        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
382            panic!(
383                "{}
384::{}
385 failed to instantiate",
386                ::core::stringify!(AkMIDIEventCallbackInfo),
387                ::core::stringify!(new),
388            )
389        });
390        <Self as IAkMIDIEventCallbackInfoMethods>::ctor(this, c_ptr, c_memory_own);
391        this
392    }
393
394    #[doc = "`.ctor()` — no args"]
395    pub fn new_2() -> Self {
396        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
397            panic!(
398                "{}
399::{}
400 failed to instantiate",
401                ::core::stringify!(AkMIDIEventCallbackInfo),
402                ::core::stringify!(new_2),
403            )
404        });
405        <Self as IAkMIDIEventCallbackInfoMethods>::ctor_2(this);
406        this
407    }
408}
409
410#[cfg(feature = "root-akmidieventcallbackinfo")]
411#[doc(hidden)]
412pub mod prelude {
413    pub use super::{AkMIDIEventCallbackInfo, IAkMIDIEventCallbackInfo, IAkMIDIEventCallbackInfoMethods};
414    #[cfg(feature = "root-akcallbackinfo")]
415    pub use crate::root::akcallbackinfo::IAkCallbackInfoMethods;
416    #[cfg(feature = "root-akeventcallbackinfo")]
417    pub use crate::root::akeventcallbackinfo::IAkEventCallbackInfoMethods;
418    #[cfg(feature = "system-object")]
419    pub use crate::system::object::IObjectMethods;
420    pub use crate::{
421        root::{akcallbackinfo::IAkCallbackInfo, akeventcallbackinfo::IAkEventCallbackInfo},
422        system::object::IObject,
423    };
424}