Skip to main content

engage/generated/unity_engine/
rectint.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rectint-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/rectint/RectInt.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct RectInt {
17        pub m_x_min: i32,
18        pub m_y_min: i32,
19        pub m_width: i32,
20        pub m_height: i32,
21    }
22    impl ::unity::ClassIdentity for RectInt {
23        const NAME: &'static str = "RectInt";
24        const NAMESPACE: &'static str = "UnityEngine";
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 RectInt {
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-rectint-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-rectint")]
42impl RectInt {
43    #[doc = "`get_x()` overload"]
44    pub fn get_x(&mut self) -> i32 {
45        unsafe {
46            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b690usize)as*mut u8,i32;
47(*mut RectInt)self as*mut RectInt)
48        }
49    }
50
51    #[doc = "`set_x(i32)` overload"]
52    pub fn set_x(&mut self, value: impl ::core::convert::Into<i32>) -> () {
53        unsafe {
54            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b6a0usize)as*mut u8,();
55(*mut RectInt)self as*mut RectInt,(i32)::core::convert::Into::into(value))
56        }
57    }
58
59    #[doc = "`get_y()` overload"]
60    pub fn get_y(&mut self) -> i32 {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b6b0usize)as*mut u8,i32;
63(*mut RectInt)self as*mut RectInt)
64        }
65    }
66
67    #[doc = "`set_y(i32)` overload"]
68    pub fn set_y(&mut self, value: impl ::core::convert::Into<i32>) -> () {
69        unsafe {
70            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b6c0usize)as*mut u8,();
71(*mut RectInt)self as*mut RectInt,(i32)::core::convert::Into::into(value))
72        }
73    }
74
75    #[doc = "`get_width()` overload"]
76    pub fn get_width(&mut self) -> i32 {
77        unsafe {
78            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b6d0usize)as*mut u8,i32;
79(*mut RectInt)self as*mut RectInt)
80        }
81    }
82
83    #[doc = "`set_width(i32)` overload"]
84    pub fn set_width(&mut self, value: impl ::core::convert::Into<i32>) -> () {
85        unsafe {
86            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b6e0usize)as*mut u8,();
87(*mut RectInt)self as*mut RectInt,(i32)::core::convert::Into::into(value))
88        }
89    }
90
91    #[doc = "`get_height()` overload"]
92    pub fn get_height(&mut self) -> i32 {
93        unsafe {
94            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b6f0usize)as*mut u8,i32;
95(*mut RectInt)self as*mut RectInt)
96        }
97    }
98
99    #[doc = "`set_height(i32)` overload"]
100    pub fn set_height(&mut self, value: impl ::core::convert::Into<i32>) -> () {
101        unsafe {
102            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b700usize)as*mut u8,();
103(*mut RectInt)self as*mut RectInt,(i32)::core::convert::Into::into(value))
104        }
105    }
106
107    #[doc = "`.ctor(i32, i32, i32, i32)` overload"]
108    pub fn ctor(
109        &mut self,
110        x_min: impl ::core::convert::Into<i32>,
111        y_min: impl ::core::convert::Into<i32>,
112        width: impl ::core::convert::Into<i32>,
113        height: impl ::core::convert::Into<i32>,
114    ) -> () {
115        unsafe {
116            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b710usize)as*mut u8,();
117(*mut RectInt)self as*mut RectInt,(i32)::core::convert::Into::into(x_min),(i32)::core::convert::Into::into(y_min),(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height))
118        }
119    }
120
121    #[doc = "`ToString()` overload"]
122    pub fn to_string(&mut self) -> ::unity::Il2CppString {
123        unsafe {
124            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b720usize)as*mut u8, ::unity::Il2CppString;
125(*mut RectInt)self as*mut RectInt)
126        }
127    }
128
129    #[doc = "`Equals(crate::unity_engine::rectint::RectInt)` overload"]
130    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rectint::RectInt>) -> bool {
131        unsafe {
132            ::unity::il2cpp_call!((::unity::module_base()+0x2f7b9b0usize)as*mut u8,bool;
133(*mut RectInt)self as*mut RectInt,(crate::unity_engine::rectint::RectInt)::core::convert::Into::into(other))
134        }
135    }
136}
137
138#[cfg(feature = "unity_engine-rectint")]
139impl RectInt {
140    pub fn get_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
142    }
143
144    pub fn set_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
146    }
147
148    pub fn get_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
150    }
151
152    pub fn set_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
154    }
155
156    pub fn get_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
158    }
159
160    pub fn set_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
162    }
163
164    pub fn get_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
166    }
167
168    pub fn set_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
170    }
171
172    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
174    }
175
176    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
178    }
179
180    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
182    }
183}
184
185#[cfg(feature = "unity_engine-rectint")]
186#[doc(hidden)]
187pub mod prelude {
188    pub use super::RectInt;
189    #[cfg(feature = "system-object")]
190    pub use crate::system::object::IObjectMethods;
191    #[cfg(feature = "system-valuetype")]
192    pub use crate::system::valuetype::IValueTypeMethods;
193    pub use crate::system::{object::IObject, valuetype::IValueType};
194}