Skip to main content

engage/generated/combat/
sharedcanvas.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "combat-sharedcanvas-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            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/combat/sharedcanvas/SharedCanvas.md"))]
19    #[::unity::class(namespace = "Combat", name = "SharedCanvas")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct SharedCanvas {
22        #[static_field]
23        #[rename(name = "s_this")]
24        pub s_this: crate::combat::sharedcanvas::SharedCanvas,
25        #[offset(24)]
26        #[rename(name = "m_Canvas")]
27        pub m_canvas: crate::unity_engine::canvas::Canvas,
28        #[offset(32)]
29        #[rename(name = "m_bShown")]
30        pub m_b_shown: crate::combat::editorprefs_bool::EditorPrefs_Bool,
31    }
32}
33
34#[cfg(feature = "combat-sharedcanvas-types")]
35pub use __types::*;
36
37#[cfg(feature = "combat-sharedcanvas")]
38impl SharedCanvas {
39    #[doc = "`get_Instance()` overload"]
40    pub fn get_instance() -> crate::combat::sharedcanvas::SharedCanvas {
41        unsafe {
42            ::unity::il2cpp_call!((::unity::module_base()+0x21aa5d0usize)as*mut u8,crate::combat::sharedcanvas::SharedCanvas;
43            )
44        }
45    }
46
47    #[doc = "`get_Canvas()` overload"]
48    pub fn get_canvas() -> crate::unity_engine::canvas::Canvas {
49        unsafe {
50            ::unity::il2cpp_call!((::unity::module_base()+0x21aa620usize)as*mut u8,crate::unity_engine::canvas::Canvas;
51            )
52        }
53    }
54
55    #[doc = "`ReplaceInputModule()` overload"]
56    pub fn replace_input_module() -> bool {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x21aa860usize)as*mut u8,bool;
59            )
60        }
61    }
62
63    #[doc = "`get_IsShown()` overload"]
64    pub fn get_is_shown() -> bool {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x21aac80usize)as*mut u8,bool;
67            )
68        }
69    }
70
71    #[doc = "`FromLeft(i32)` overload"]
72    pub fn from_left(margin: impl ::core::convert::Into<i32>) -> i32 {
73        unsafe {
74            ::unity::il2cpp_call!((::unity::module_base()+0x21ab170usize)as*mut u8,i32;
75(i32)::core::convert::Into::into(margin))
76        }
77    }
78
79    #[doc = "`FromRight(i32)` overload"]
80    pub fn from_right(margin: impl ::core::convert::Into<i32>) -> i32 {
81        unsafe {
82            ::unity::il2cpp_call!((::unity::module_base()+0x21ab1a0usize)as*mut u8,i32;
83(i32)::core::convert::Into::into(margin))
84        }
85    }
86
87    #[doc = "`FromTop(i32)` overload"]
88    pub fn from_top(margin: impl ::core::convert::Into<i32>) -> i32 {
89        unsafe {
90            ::unity::il2cpp_call!((::unity::module_base()+0x21ab1e0usize)as*mut u8,i32;
91(i32)::core::convert::Into::into(margin))
92        }
93    }
94
95    #[doc = "`FromBottom(i32)` overload"]
96    pub fn from_bottom(margin: impl ::core::convert::Into<i32>) -> i32 {
97        unsafe {
98            ::unity::il2cpp_call!((::unity::module_base()+0x21ab220usize)as*mut u8,i32;
99(i32)::core::convert::Into::into(margin))
100        }
101    }
102
103    #[doc = "`X(f32, f32)` overload"]
104    pub fn x(value: impl ::core::convert::Into<f32>, div: impl ::core::convert::Into<f32>) -> f32 {
105        unsafe {
106            ::unity::il2cpp_call!((::unity::module_base()+0x21ab250usize)as*mut u8,f32;
107(f32)::core::convert::Into::into(value),(f32)::core::convert::Into::into(div))
108        }
109    }
110
111    #[doc = "`Y(f32, f32)` overload"]
112    pub fn y(value: impl ::core::convert::Into<f32>, div: impl ::core::convert::Into<f32>) -> f32 {
113        unsafe {
114            ::unity::il2cpp_call!((::unity::module_base()+0x21ab2b0usize)as*mut u8,f32;
115(f32)::core::convert::Into::into(value),(f32)::core::convert::Into::into(div))
116        }
117    }
118
119    #[doc = "`XY(i32, i32)` overload"]
120    pub fn xy(x: impl ::core::convert::Into<i32>, y: impl ::core::convert::Into<i32>) -> crate::unity_engine::vector2::Vector2 {
121        unsafe {
122            ::unity::il2cpp_call!((::unity::module_base()+0x21ab310usize)as*mut u8,crate::unity_engine::vector2::Vector2;
123(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y))
124        }
125    }
126}
127
128#[cfg(feature = "combat-sharedcanvas")]
129pub trait ISharedCanvasMethods: ISharedCanvas {
130    #[doc = "`Awake()` overload"]
131    fn awake(self) -> () {
132        unsafe {
133            let __receiver = <SharedCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134            ::unity::il2cpp_call!((::unity::module_base()+0x21aa7b0usize)as*mut u8,();
135(SharedCanvas)__receiver)
136        }
137    }
138    #[doc = "`OnDestroy()` overload"]
139    fn on_destroy(self) -> () {
140        unsafe {
141            let __receiver = <SharedCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            ::unity::il2cpp_call!((::unity::module_base()+0x21aaa10usize)as*mut u8,();
143(SharedCanvas)__receiver)
144        }
145    }
146    #[doc = "`ForceDestroyCanvas()` overload"]
147    fn force_destroy_canvas(self) -> () {
148        unsafe {
149            let __receiver = <SharedCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x21aab40usize)as*mut u8,();
151(SharedCanvas)__receiver)
152        }
153    }
154    #[doc = "`Show(bool)` overload"]
155    fn show(self, v: impl ::core::convert::Into<bool>) -> () {
156        unsafe {
157            let __receiver = <SharedCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
158            ::unity::il2cpp_call!((::unity::module_base()+0x21aad70usize)as*mut u8,();
159(SharedCanvas)__receiver,(bool)::core::convert::Into::into(v))
160        }
161    }
162    #[doc = "`Reconnect()` overload"]
163    fn reconnect(self) -> () {
164        unsafe {
165            let __receiver = <SharedCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
166            ::unity::il2cpp_call!((::unity::module_base()+0x21aae20usize)as*mut u8,();
167(SharedCanvas)__receiver)
168        }
169    }
170    #[doc = "`ClearCanvas()` overload"]
171    fn clear_canvas(self) -> () {
172        unsafe {
173            let __receiver = <SharedCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x21ab020usize)as*mut u8,();
175(SharedCanvas)__receiver)
176        }
177    }
178    #[doc = "`.ctor()` overload"]
179    fn ctor(self) -> () {
180        unsafe {
181            let __receiver = <SharedCanvas as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x21ab3c0usize)as*mut u8,();
183(SharedCanvas)__receiver)
184        }
185    }
186}
187
188#[cfg(feature = "combat-sharedcanvas")]
189impl<__T: ISharedCanvas> ISharedCanvasMethods for __T {}
190
191#[cfg(feature = "combat-sharedcanvas")]
192impl SharedCanvas {
193    pub fn get_instance_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
195    }
196
197    pub fn get_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
199    }
200
201    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
203    }
204
205    pub fn on_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
207    }
208
209    pub fn force_destroy_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
211    }
212
213    pub fn replace_input_module_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
215    }
216
217    pub fn get_is_shown_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
219    }
220
221    pub fn show_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
223    }
224
225    pub fn reconnect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
227    }
228
229    pub fn clear_canvas_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
231    }
232
233    pub fn from_left_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
235    }
236
237    pub fn from_right_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
239    }
240
241    pub fn from_top_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
243    }
244
245    pub fn from_bottom_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
247    }
248
249    pub fn x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
251    }
252
253    pub fn y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
254        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
255    }
256
257    pub fn xy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
259    }
260
261    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
263    }
264}
265
266#[cfg(feature = "combat-sharedcanvas")]
267impl SharedCanvas {
268    #[doc = "`.ctor()` — no args"]
269    pub fn new() -> Self {
270        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
271            panic!(
272                "{}
273::{}
274 failed to instantiate",
275                ::core::stringify!(SharedCanvas),
276                ::core::stringify!(new),
277            )
278        });
279        <Self as ISharedCanvasMethods>::ctor(this);
280        this
281    }
282}
283
284#[cfg(feature = "combat-sharedcanvas")]
285#[doc(hidden)]
286pub mod prelude {
287    pub use super::{ISharedCanvas, ISharedCanvasMethods, SharedCanvas};
288    #[cfg(feature = "system-object")]
289    pub use crate::system::object::IObjectMethods;
290    #[cfg(feature = "unity_engine-behaviour")]
291    pub use crate::unity_engine::behaviour::IBehaviourMethods;
292    #[cfg(feature = "unity_engine-component")]
293    pub use crate::unity_engine::component::IComponentMethods;
294    #[cfg(feature = "unity_engine-monobehaviour")]
295    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
296    #[cfg(feature = "unity_engine-object_2")]
297    pub use crate::unity_engine::object_2::IObject_2Methods;
298    pub use crate::{
299        system::object::IObject,
300        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
301    };
302}