Skip to main content

engage/generated/tm_pro/
caretinfo.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-caretinfo-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/tm_pro/caretinfo/CaretInfo.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct CaretInfo {
17        pub index: i32,
18        pub position: crate::tm_pro::caretposition::CaretPosition,
19    }
20    impl ::unity::ClassIdentity for CaretInfo {
21        const NAME: &'static str = "CaretInfo";
22        const NAMESPACE: &'static str = "TMPro";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for CaretInfo {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34}
35
36#[cfg(feature = "tm_pro-caretinfo-types")]
37pub use __types::*;
38
39#[cfg(feature = "tm_pro-caretinfo")]
40impl CaretInfo {
41    #[doc = "`.ctor(i32, crate::tm_pro::caretposition::CaretPosition)` overload"]
42    pub fn ctor(
43        &mut self,
44        index: impl ::core::convert::Into<i32>,
45        position: impl ::core::convert::Into<crate::tm_pro::caretposition::CaretPosition>,
46    ) -> () {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x2d8b300usize)as*mut u8,();
49(*mut CaretInfo)self as*mut CaretInfo,(i32)::core::convert::Into::into(index),(crate::tm_pro::caretposition::CaretPosition)::core::convert::Into::into(position))
50        }
51    }
52}
53
54#[cfg(feature = "tm_pro-caretinfo")]
55impl CaretInfo {
56    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
58    }
59}
60
61#[cfg(feature = "tm_pro-caretinfo")]
62#[doc(hidden)]
63pub mod prelude {
64    pub use super::CaretInfo;
65    #[cfg(feature = "system-object")]
66    pub use crate::system::object::IObjectMethods;
67    #[cfg(feature = "system-valuetype")]
68    pub use crate::system::valuetype::IValueTypeMethods;
69    pub use crate::system::{object::IObject, valuetype::IValueType};
70}