engage/generated/nn/hid/
touchstate.rs1#[cfg(feature = "nn-hid-touchstate-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/touchstate/TouchState.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct TouchState {
17 pub delta_time_nano_seconds: i64,
18 pub attributes: crate::nn::hid::touchattribute::TouchAttribute,
19 pub finger_id: i32,
20 pub x: i32,
21 pub y: i32,
22 pub diameter_x: i32,
23 pub diameter_y: i32,
24 pub rotation_angle: i32,
25 pub reserved: i32,
26 }
27 impl ::unity::ClassIdentity for TouchState {
28 const NAME: &'static str = "TouchState";
29 const NAMESPACE: &'static str = "nn.hid";
30
31 fn class() -> ::unity::Class {
32 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34 }
35 }
36 impl ::unity::IlType for TouchState {
37 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39 }
40 }
41}
42
43#[cfg(feature = "nn-hid-touchstate-types")]
44pub use __types::*;
45
46#[cfg(feature = "nn-hid-touchstate")]
47impl TouchState {
48 #[doc = "`op_Equality(crate::nn::hid::touchstate::TouchState, crate::nn::hid::touchstate::TouchState)` overload"]
49 pub fn op_equality(
50 lhs: impl ::core::convert::Into<crate::nn::hid::touchstate::TouchState>,
51 rhs: impl ::core::convert::Into<crate::nn::hid::touchstate::TouchState>,
52 ) -> bool {
53 unsafe {
54 ::unity::il2cpp_call!((::unity::module_base()+0x229adf0usize)as*mut u8,bool;
55(crate::nn::hid::touchstate::TouchState)::core::convert::Into::into(lhs),(crate::nn::hid::touchstate::TouchState)::core::convert::Into::into(rhs))
56 }
57 }
58
59 #[doc = "`op_Inequality(crate::nn::hid::touchstate::TouchState, crate::nn::hid::touchstate::TouchState)` overload"]
60 pub fn op_inequality(
61 lhs: impl ::core::convert::Into<crate::nn::hid::touchstate::TouchState>,
62 rhs: impl ::core::convert::Into<crate::nn::hid::touchstate::TouchState>,
63 ) -> bool {
64 unsafe {
65 ::unity::il2cpp_call!((::unity::module_base()+0x229ae80usize)as*mut u8,bool;
66(crate::nn::hid::touchstate::TouchState)::core::convert::Into::into(lhs),(crate::nn::hid::touchstate::TouchState)::core::convert::Into::into(rhs))
67 }
68 }
69}
70
71#[cfg(feature = "nn-hid-touchstate")]
72impl TouchState {
73 #[doc = "`ToString()` overload"]
74 pub fn to_string(&mut self) -> ::unity::Il2CppString {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x229aab0usize)as*mut u8, ::unity::Il2CppString;
77(*mut TouchState)self as*mut TouchState)
78 }
79 }
80
81 #[doc = "`Equals(crate::system::object::Object)` overload"]
82 pub fn equals(&mut self, right: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
83 unsafe {
84 ::unity::il2cpp_call!((::unity::module_base()+0x229af10usize)as*mut u8,bool;
85(*mut TouchState)self as*mut TouchState,(crate::system::object::Object)::core::convert::Into::into(right))
86 }
87 }
88
89 #[doc = "`Equals(crate::nn::hid::touchstate::TouchState)` overload"]
90 pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::nn::hid::touchstate::TouchState>) -> bool {
91 unsafe {
92 ::unity::il2cpp_call!((::unity::module_base()+0x229b030usize)as*mut u8,bool;
93(*mut TouchState)self as*mut TouchState,(crate::nn::hid::touchstate::TouchState)::core::convert::Into::into(other))
94 }
95 }
96
97 #[doc = "`GetHashCode()` overload"]
98 pub fn get_hash_code(&mut self) -> i32 {
99 unsafe {
100 ::unity::il2cpp_call!((::unity::module_base()+0x229b0c0usize)as*mut u8,i32;
101(*mut TouchState)self as*mut TouchState)
102 }
103 }
104}
105
106#[cfg(feature = "nn-hid-touchstate")]
107impl TouchState {
108 pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110 }
111
112 pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114 }
115
116 pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
118 }
119
120 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
122 }
123
124 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
126 }
127
128 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
130 }
131}
132
133#[cfg(feature = "nn-hid-touchstate")]
134#[doc(hidden)]
135pub mod prelude {
136 pub use super::TouchState;
137 #[cfg(feature = "system-object")]
138 pub use crate::system::object::IObjectMethods;
139 #[cfg(feature = "system-valuetype")]
140 pub use crate::system::valuetype::IValueTypeMethods;
141 pub use crate::system::{object::IObject, valuetype::IValueType};
142}