engage/generated/nn/hid/
gesturepoint.rs1#[cfg(feature = "nn-hid-gesturepoint-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/nn/hid/gesturepoint/GesturePoint.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct GesturePoint {
17 pub x: i32,
18 pub y: i32,
19 }
20 impl ::unity::ClassIdentity for GesturePoint {
21 const NAME: &'static str = "GesturePoint";
22 const NAMESPACE: &'static str = "nn.hid";
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 GesturePoint {
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 = "nn-hid-gesturepoint-types")]
37pub use __types::*;
38
39#[cfg(feature = "nn-hid-gesturepoint")]
40impl GesturePoint {
41 #[doc = "`op_Equality(crate::nn::hid::gesturepoint::GesturePoint, crate::nn::hid::gesturepoint::GesturePoint)` overload"]
42 pub fn op_equality(
43 lhs: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>,
44 rhs: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>,
45 ) -> bool {
46 unsafe {
47 ::unity::il2cpp_call!((::unity::module_base()+0x2521ab0usize)as*mut u8,bool;
48(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(lhs),(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(rhs))
49 }
50 }
51
52 #[doc = "`op_Inequality(crate::nn::hid::gesturepoint::GesturePoint, crate::nn::hid::gesturepoint::GesturePoint)` overload"]
53 pub fn op_inequality(
54 lhs: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>,
55 rhs: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>,
56 ) -> bool {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x2521ad0usize)as*mut u8,bool;
59(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(lhs),(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(rhs))
60 }
61 }
62}
63
64#[cfg(feature = "nn-hid-gesturepoint")]
65impl GesturePoint {
66 #[doc = "`ToString()` overload"]
67 pub fn to_string(&mut self) -> ::unity::Il2CppString {
68 unsafe {
69 ::unity::il2cpp_call!((::unity::module_base()+0x2521a00usize)as*mut u8, ::unity::Il2CppString;
70(*mut GesturePoint)self as*mut GesturePoint)
71 }
72 }
73
74 #[doc = "`Equals(crate::system::object::Object)` overload"]
75 pub fn equals(&mut self, right: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
76 unsafe {
77 ::unity::il2cpp_call!((::unity::module_base()+0x2521af0usize)as*mut u8,bool;
78(*mut GesturePoint)self as*mut GesturePoint,(crate::system::object::Object)::core::convert::Into::into(right))
79 }
80 }
81
82 #[doc = "`Equals(crate::nn::hid::gesturepoint::GesturePoint)` overload"]
83 pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::nn::hid::gesturepoint::GesturePoint>) -> bool {
84 unsafe {
85 ::unity::il2cpp_call!((::unity::module_base()+0x2521b90usize)as*mut u8,bool;
86(*mut GesturePoint)self as*mut GesturePoint,(crate::nn::hid::gesturepoint::GesturePoint)::core::convert::Into::into(other))
87 }
88 }
89
90 #[doc = "`GetHashCode()` overload"]
91 pub fn get_hash_code(&mut self) -> i32 {
92 unsafe {
93 ::unity::il2cpp_call!((::unity::module_base()+0x2521bb0usize)as*mut u8,i32;
94(*mut GesturePoint)self as*mut GesturePoint)
95 }
96 }
97}
98
99#[cfg(feature = "nn-hid-gesturepoint")]
100impl GesturePoint {
101 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103 }
104
105 pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
107 }
108
109 pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
111 }
112
113 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
115 }
116
117 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
119 }
120
121 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
123 }
124}
125
126#[cfg(feature = "nn-hid-gesturepoint")]
127#[doc(hidden)]
128pub mod prelude {
129 pub use super::GesturePoint;
130 #[cfg(feature = "system-object")]
131 pub use crate::system::object::IObjectMethods;
132 #[cfg(feature = "system-valuetype")]
133 pub use crate::system::valuetype::IValueTypeMethods;
134 pub use crate::system::{object::IObject, valuetype::IValueType};
135}