engage/generated/unity_engine/u2d/
spritechannelinfo.rs1#[cfg(feature = "unity_engine-u2d-spritechannelinfo-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/u2d/spritechannelinfo/SpriteChannelInfo.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct SpriteChannelInfo {
17 pub m_buffer: ::unity::IntPtr,
18 pub m_count: i32,
19 pub m_offset: i32,
20 pub m_stride: i32,
21 }
22 impl ::unity::ClassIdentity for SpriteChannelInfo {
23 const NAME: &'static str = "SpriteChannelInfo";
24 const NAMESPACE: &'static str = "UnityEngine.U2D";
25
26 fn class() -> ::unity::Class {
27 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29 }
30 }
31 impl ::unity::IlType for SpriteChannelInfo {
32 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34 }
35 }
36}
37
38#[cfg(feature = "unity_engine-u2d-spritechannelinfo-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-u2d-spritechannelinfo")]
42impl SpriteChannelInfo {
43 #[doc = "`get_count()` overload"]
44 pub fn get_count(&mut self) -> i32 {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x2f994a0usize)as*mut u8,i32;
47(*mut SpriteChannelInfo)self as*mut SpriteChannelInfo)
48 }
49 }
50
51 #[doc = "`get_offset()` overload"]
52 pub fn get_offset(&mut self) -> i32 {
53 unsafe {
54 ::unity::il2cpp_call!((::unity::module_base()+0x2f994b0usize)as*mut u8,i32;
55(*mut SpriteChannelInfo)self as*mut SpriteChannelInfo)
56 }
57 }
58
59 #[doc = "`get_stride()` overload"]
60 pub fn get_stride(&mut self) -> i32 {
61 unsafe {
62 ::unity::il2cpp_call!((::unity::module_base()+0x2f994c0usize)as*mut u8,i32;
63(*mut SpriteChannelInfo)self as*mut SpriteChannelInfo)
64 }
65 }
66}
67
68#[cfg(feature = "unity_engine-u2d-spritechannelinfo")]
69impl SpriteChannelInfo {
70 pub fn get_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
71 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
72 }
73
74 pub fn get_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
76 }
77
78 pub fn get_stride_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
80 }
81}
82
83#[cfg(feature = "unity_engine-u2d-spritechannelinfo")]
84#[doc(hidden)]
85pub mod prelude {
86 pub use super::SpriteChannelInfo;
87 #[cfg(feature = "system-object")]
88 pub use crate::system::object::IObjectMethods;
89 #[cfg(feature = "system-valuetype")]
90 pub use crate::system::valuetype::IValueTypeMethods;
91 pub use crate::system::{object::IObject, valuetype::IValueType};
92}