Skip to main content

engage/generated/root/
akimagesourcesettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "root-akimagesourcesettings-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/root/akimagesourcesettings/AkImageSourceSettings.md"))]
11    #[::unity::class(namespace = "", name = "AkImageSourceSettings")]
12    #[parent(crate::system::object::Object)]
13    pub struct AkImageSourceSettings {
14        #[offset(16)]
15        #[rename(name = "swigCPtr")]
16        pub swig_c_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "swigCMemOwn")]
19        pub swig_c_mem_own: bool,
20    }
21}
22
23#[cfg(feature = "root-akimagesourcesettings-types")]
24pub use __types::*;
25
26#[cfg(feature = "root-akimagesourcesettings")]
27impl AkImageSourceSettings {
28    #[doc = "`getCPtr(crate::root::akimagesourcesettings::AkImageSourceSettings)` overload"]
29    pub fn get_c_ptr(obj: impl ::core::convert::Into<crate::root::akimagesourcesettings::AkImageSourceSettings>) -> ::unity::IntPtr {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x2f20140usize)as*mut u8, ::unity::IntPtr;
32(crate::root::akimagesourcesettings::AkImageSourceSettings)::core::convert::Into::into(obj))
33        }
34    }
35}
36
37#[cfg(feature = "root-akimagesourcesettings")]
38pub trait IAkImageSourceSettingsMethods: IAkImageSourceSettings {
39    #[doc = "`.ctor(::unity::IntPtr, bool)` overload"]
40    fn ctor(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>, c_memory_own: impl ::core::convert::Into<bool>) -> () {
41        unsafe {
42            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43            ::unity::il2cpp_call!((::unity::module_base()+0x2f20100usize)as*mut u8,();
44(AkImageSourceSettings)__receiver,(::unity::IntPtr)::core::convert::Into::into(c_ptr),(bool)::core::convert::Into::into(c_memory_own))
45        }
46    }
47    #[doc = "`setCPtr(::unity::IntPtr)` overload"]
48    fn set_c_ptr(self, c_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
49        unsafe {
50            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
51            {
52                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
53                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
54                    panic!(
55                        "unity: virtual slot {}
56 out of range (vtable len {}
57) on the runtime class behind {}
58 (method `{}
59`)",
60                        5usize,
61                        __vt.len(),
62                        <AkImageSourceSettings as ::unity::ClassIdentity>::NAME,
63                        "setCPtr",
64                    )
65                });
66                let __inner: extern "C" fn(AkImageSourceSettings, ::unity::IntPtr, ::unity::OptionalMethod) -> () =
67                    ::core::mem::transmute(__vi.method_ptr);
68                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
69                __inner(__receiver, ::core::convert::Into::into(c_ptr), __mi)
70            }
71        }
72    }
73    #[doc = "`Finalize()` overload"]
74    fn finalize(self) -> () {
75        unsafe {
76            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
77            {
78                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
79                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
80                    panic!(
81                        "unity: virtual slot {}
82 out of range (vtable len {}
83) on the runtime class behind {}
84 (method `{}
85`)",
86                        1usize,
87                        __vt.len(),
88                        <AkImageSourceSettings as ::unity::ClassIdentity>::NAME,
89                        "Finalize",
90                    )
91                });
92                let __inner: extern "C" fn(AkImageSourceSettings, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
93                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94                __inner(__receiver, __mi)
95            }
96        }
97    }
98    #[doc = "`Dispose()` overload"]
99    fn dispose(self) -> () {
100        unsafe {
101            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            {
103                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
104                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
105                    panic!(
106                        "unity: virtual slot {}
107 out of range (vtable len {}
108) on the runtime class behind {}
109 (method `{}
110`)",
111                        6usize,
112                        __vt.len(),
113                        <AkImageSourceSettings as ::unity::ClassIdentity>::NAME,
114                        "Dispose",
115                    )
116                });
117                let __inner: extern "C" fn(AkImageSourceSettings, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
118                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
119                __inner(__receiver, __mi)
120            }
121        }
122    }
123    #[doc = "`.ctor()` overload"]
124    fn ctor_2(self) -> () {
125        unsafe {
126            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
127            ::unity::il2cpp_call!((::unity::module_base()+0x2f203d0usize)as*mut u8,();
128(AkImageSourceSettings)__receiver)
129        }
130    }
131    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, f32, f32)` overload"]
132    fn ctor_3(
133        self,
134        in_source_position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>,
135        in_f_distance_scaling_factor: impl ::core::convert::Into<f32>,
136        in_f_level: impl ::core::convert::Into<f32>,
137    ) -> () {
138        unsafe {
139            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            ::unity::il2cpp_call!((::unity::module_base()+0x2f20460usize)as*mut u8,();
141(AkImageSourceSettings)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(in_source_position),(f32)::core::convert::Into::into(in_f_distance_scaling_factor),(f32)::core::convert::Into::into(in_f_level))
142        }
143    }
144    #[doc = "`SetOneTexture(u32)` overload"]
145    fn set_one_texture(self, in_texture: impl ::core::convert::Into<u32>) -> () {
146        unsafe {
147            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!((::unity::module_base()+0x2f20530usize)as*mut u8,();
149(AkImageSourceSettings)__receiver,(u32)::core::convert::Into::into(in_texture))
150        }
151    }
152    #[doc = "`SetName(::unity::Il2CppString)` overload"]
153    fn set_name(self, in_p_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
154        unsafe {
155            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156            ::unity::il2cpp_call!((::unity::module_base()+0x2f205b0usize)as*mut u8,();
157(AkImageSourceSettings)__receiver,(::unity::Il2CppString)::core::convert::Into::into(in_p_name))
158        }
159    }
160    #[doc = "`set_params_(crate::root::akimagesourceparams::AkImageSourceParams)` overload"]
161    fn set_params(self, value: impl ::core::convert::Into<crate::root::akimagesourceparams::AkImageSourceParams>) -> () {
162        unsafe {
163            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164            ::unity::il2cpp_call!((::unity::module_base()+0x2f20630usize)as*mut u8,();
165(AkImageSourceSettings)__receiver,(crate::root::akimagesourceparams::AkImageSourceParams)::core::convert::Into::into(value))
166        }
167    }
168    #[doc = "`get_params_()` overload"]
169    fn get_params(self) -> crate::root::akimagesourceparams::AkImageSourceParams {
170        unsafe {
171            let __receiver = <AkImageSourceSettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            ::unity::il2cpp_call!((::unity::module_base()+0x2f206f0usize)as*mut u8,crate::root::akimagesourceparams::AkImageSourceParams;
173(AkImageSourceSettings)__receiver)
174        }
175    }
176}
177
178#[cfg(feature = "root-akimagesourcesettings")]
179impl<__T: IAkImageSourceSettings> IAkImageSourceSettingsMethods for __T {}
180
181#[cfg(feature = "root-akimagesourcesettings")]
182impl AkImageSourceSettings {
183    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
185    }
186
187    pub fn get_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
189    }
190
191    pub fn set_c_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
193    }
194
195    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
197    }
198
199    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
201    }
202
203    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
205    }
206
207    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
209    }
210
211    pub fn set_one_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
213    }
214
215    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
217    }
218
219    pub fn set_params_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
221    }
222
223    pub fn get_params_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
225    }
226}
227
228#[cfg(feature = "root-akimagesourcesettings")]
229impl AkImageSourceSettings {
230    #[doc = "Direct (non-virtual) call to `AkImageSourceSettings`'s own `setCPtr`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
231    pub unsafe fn set_c_ptr(this: impl ::core::convert::Into<::unity::IlInstance>, c_ptr: ::unity::IntPtr) -> () {
232        let __mi = Self::set_c_ptr_method_info();
233        let __inner: extern "C" fn(::unity::IlInstance, ::unity::IntPtr, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
234        __inner(this.into(), c_ptr, ::core::option::Option::None)
235    }
236
237    #[doc = "Direct (non-virtual) call to `AkImageSourceSettings`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
238    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
239        let __mi = Self::finalize_method_info();
240        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
241        __inner(this.into(), ::core::option::Option::None)
242    }
243
244    #[doc = "Direct (non-virtual) call to `AkImageSourceSettings`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
245    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
246        let __mi = Self::dispose_method_info();
247        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
248        __inner(this.into(), ::core::option::Option::None)
249    }
250}
251
252#[cfg(feature = "root-akimagesourcesettings")]
253impl AkImageSourceSettings {
254    #[doc = "`.ctor(::unity::IntPtr, bool)` — overload selector"]
255    pub fn new(c_ptr: ::unity::IntPtr, c_memory_own: bool) -> Self {
256        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
257            panic!(
258                "{}
259::{}
260 failed to instantiate",
261                ::core::stringify!(AkImageSourceSettings),
262                ::core::stringify!(new),
263            )
264        });
265        <Self as IAkImageSourceSettingsMethods>::ctor(this, c_ptr, c_memory_own);
266        this
267    }
268
269    #[doc = "`.ctor()` — no args"]
270    pub fn new_2() -> Self {
271        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
272            panic!(
273                "{}
274::{}
275 failed to instantiate",
276                ::core::stringify!(AkImageSourceSettings),
277                ::core::stringify!(new_2),
278            )
279        });
280        <Self as IAkImageSourceSettingsMethods>::ctor_2(this);
281        this
282    }
283
284    #[doc = "`.ctor(crate::unity_engine::vector3::Vector3, f32, f32)` — overload selector"]
285    pub fn new_3(in_source_position: crate::unity_engine::vector3::Vector3, in_f_distance_scaling_factor: f32, in_f_level: f32) -> Self {
286        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
287            panic!(
288                "{}
289::{}
290 failed to instantiate",
291                ::core::stringify!(AkImageSourceSettings),
292                ::core::stringify!(new_3),
293            )
294        });
295        <Self as IAkImageSourceSettingsMethods>::ctor_3(this, in_source_position, in_f_distance_scaling_factor, in_f_level);
296        this
297    }
298}
299
300#[cfg(feature = "root-akimagesourcesettings")]
301#[doc(hidden)]
302pub mod prelude {
303    pub use super::{AkImageSourceSettings, IAkImageSourceSettings, IAkImageSourceSettingsMethods};
304    pub use crate::system::object::IObject;
305    #[cfg(feature = "system-object")]
306    pub use crate::system::object::IObjectMethods;
307}