Skip to main content

engage/generated/tm_pro/
tmp_selectioncaret.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "tm_pro-tmp_selectioncaret-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            event_systems::uibehaviour::{IUIBehaviour, UIBehaviour},
14            monobehaviour::{IMonoBehaviour, MonoBehaviour},
15            object_2::{IObject_2, Object_2},
16            ui::{
17                graphic::{Graphic, IGraphic},
18                maskablegraphic::{IMaskableGraphic, MaskableGraphic},
19            },
20        },
21    };
22
23    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/tm_pro/tmp_selectioncaret/TMP_SelectionCaret.md"))]
24    #[::unity::class(namespace = "TMPro", name = "TMP_SelectionCaret")]
25    #[parent(crate::unity_engine::ui::maskablegraphic::MaskableGraphic)]
26    pub struct TMP_SelectionCaret {}
27}
28
29#[cfg(feature = "tm_pro-tmp_selectioncaret-types")]
30pub use __types::*;
31
32#[cfg(feature = "tm_pro-tmp_selectioncaret")]
33pub trait ITMP_SelectionCaretMethods: ITMP_SelectionCaret {
34    #[doc = "`Cull(crate::unity_engine::rect::Rect, bool)` overload"]
35    fn cull(self, clip_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>, valid_rect: impl ::core::convert::Into<bool>) -> () {
36        unsafe {
37            let __receiver = <TMP_SelectionCaret as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38            {
39                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
40                let __vi = *__vt.get(59usize).unwrap_or_else(|| {
41                    panic!(
42                        "unity: virtual slot {}
43 out of range (vtable len {}
44) on the runtime class behind {}
45 (method `{}
46`)",
47                        59usize,
48                        __vt.len(),
49                        <TMP_SelectionCaret as ::unity::ClassIdentity>::NAME,
50                        "Cull",
51                    )
52                });
53                let __inner: extern "C" fn(TMP_SelectionCaret, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
54                    ::core::mem::transmute(__vi.method_ptr);
55                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
56                __inner(
57                    __receiver,
58                    ::core::convert::Into::into(clip_rect),
59                    ::core::convert::Into::into(valid_rect),
60                    __mi,
61                )
62            }
63        }
64    }
65    #[doc = "`UpdateGeometry()` overload"]
66    fn update_geometry(self) -> () {
67        unsafe {
68            let __receiver = <TMP_SelectionCaret as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69            {
70                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
71                let __vi = *__vt.get(41usize).unwrap_or_else(|| {
72                    panic!(
73                        "unity: virtual slot {}
74 out of range (vtable len {}
75) on the runtime class behind {}
76 (method `{}
77`)",
78                        41usize,
79                        __vt.len(),
80                        <TMP_SelectionCaret as ::unity::ClassIdentity>::NAME,
81                        "UpdateGeometry",
82                    )
83                });
84                let __inner: extern "C" fn(TMP_SelectionCaret, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
85                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
86                __inner(__receiver, __mi)
87            }
88        }
89    }
90    #[doc = "`.ctor()` overload"]
91    fn ctor(self) -> () {
92        unsafe {
93            let __receiver = <TMP_SelectionCaret as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
94            ::unity::il2cpp_call!((::unity::module_base()+0x282a8e0usize)as*mut u8,();
95(TMP_SelectionCaret)__receiver)
96        }
97    }
98}
99
100#[cfg(feature = "tm_pro-tmp_selectioncaret")]
101impl<__T: ITMP_SelectionCaret> ITMP_SelectionCaretMethods for __T {}
102
103#[cfg(feature = "tm_pro-tmp_selectioncaret")]
104impl TMP_SelectionCaret {
105    pub fn cull_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
107    }
108
109    pub fn update_geometry_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
111    }
112
113    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
115    }
116}
117
118#[cfg(feature = "tm_pro-tmp_selectioncaret")]
119impl TMP_SelectionCaret {
120    #[doc = "Direct (non-virtual) call to `TMP_SelectionCaret`'s own `Cull`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
121    pub unsafe fn cull(this: impl ::core::convert::Into<::unity::IlInstance>, clip_rect: crate::unity_engine::rect::Rect, valid_rect: bool) -> () {
122        let __mi = Self::cull_method_info();
123        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rect::Rect, bool, ::unity::OptionalMethod) -> () =
124            ::core::mem::transmute(__mi.method_ptr);
125        __inner(this.into(), clip_rect, valid_rect, ::core::option::Option::None)
126    }
127
128    #[doc = "Direct (non-virtual) call to `TMP_SelectionCaret`'s own `UpdateGeometry`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
129    pub unsafe fn update_geometry(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
130        let __mi = Self::update_geometry_method_info();
131        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
132        __inner(this.into(), ::core::option::Option::None)
133    }
134}
135
136#[cfg(feature = "tm_pro-tmp_selectioncaret")]
137impl TMP_SelectionCaret {
138    #[doc = "`.ctor()` — no args"]
139    pub fn new() -> Self {
140        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
141            panic!(
142                "{}
143::{}
144 failed to instantiate",
145                ::core::stringify!(TMP_SelectionCaret),
146                ::core::stringify!(new),
147            )
148        });
149        <Self as ITMP_SelectionCaretMethods>::ctor(this);
150        this
151    }
152}
153
154#[cfg(feature = "tm_pro-tmp_selectioncaret")]
155#[doc(hidden)]
156pub mod prelude {
157    pub use super::{ITMP_SelectionCaret, ITMP_SelectionCaretMethods, TMP_SelectionCaret};
158    #[cfg(feature = "system-object")]
159    pub use crate::system::object::IObjectMethods;
160    #[cfg(feature = "unity_engine-behaviour")]
161    pub use crate::unity_engine::behaviour::IBehaviourMethods;
162    #[cfg(feature = "unity_engine-component")]
163    pub use crate::unity_engine::component::IComponentMethods;
164    #[cfg(feature = "unity_engine-event_systems-uibehaviour")]
165    pub use crate::unity_engine::event_systems::uibehaviour::IUIBehaviourMethods;
166    #[cfg(feature = "unity_engine-monobehaviour")]
167    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
168    #[cfg(feature = "unity_engine-object_2")]
169    pub use crate::unity_engine::object_2::IObject_2Methods;
170    #[cfg(feature = "unity_engine-ui-graphic")]
171    pub use crate::unity_engine::ui::graphic::IGraphicMethods;
172    #[cfg(feature = "unity_engine-ui-maskablegraphic")]
173    pub use crate::unity_engine::ui::maskablegraphic::IMaskableGraphicMethods;
174    pub use crate::{
175        system::object::IObject,
176        unity_engine::{
177            behaviour::IBehaviour,
178            component::IComponent,
179            event_systems::uibehaviour::IUIBehaviour,
180            monobehaviour::IMonoBehaviour,
181            object_2::IObject_2,
182            ui::{graphic::IGraphic, maskablegraphic::IMaskableGraphic},
183        },
184    };
185}