engage/generated/unity_engine/
touchscreenkeyboard.rs1#[cfg(feature = "unity_engine-touchscreenkeyboard-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/touchscreenkeyboard/TouchScreenKeyboard_Status.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct TouchScreenKeyboard_Status {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for TouchScreenKeyboard_Status {
21 const NAME: &'static str = "TouchScreenKeyboard.Status";
22 const NAMESPACE: &'static str = "UnityEngine";
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 TouchScreenKeyboard_Status {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl TouchScreenKeyboard_Status {
35 pub fn visible() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn done() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn canceled() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn lost_focus() -> Self {
48 Self { value: 3 }
49 }
50 }
51
52 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/touchscreenkeyboard/TouchScreenKeyboard.md"))]
53 #[::unity::class(namespace = "UnityEngine", name = "TouchScreenKeyboard")]
54 #[parent(crate::system::object::Object)]
55 pub struct TouchScreenKeyboard {
56 #[offset(16)]
57 #[rename(name = "m_Ptr")]
58 pub m_ptr: ::unity::IntPtr,
59 }
60}
61
62#[cfg(feature = "unity_engine-touchscreenkeyboard-types")]
63pub use __types::*;
64
65#[cfg(feature = "unity_engine-touchscreenkeyboard")]
66impl TouchScreenKeyboard {
67 #[doc = "`Internal_Destroy(::unity::IntPtr)` overload"]
68 pub fn internal_destroy(ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
69 unsafe {
70 ::unity::il2cpp_call!((::unity::module_base()+0x378ec60usize)as*mut u8,();
71(::unity::IntPtr)::core::convert::Into::into(ptr))
72 }
73 }
74
75 #[doc = "`TouchScreenKeyboard_InternalConstructorHelper(*mutcrate::unity_engine::touchscreenkeyboard_internalconstructorhelperarguments::TouchScreenKeyboard_InternalConstructorHelperArguments, ::unity::Il2CppString, ::unity::Il2CppString)` overload"]
76 pub fn touch_screen_keyboard_internal_constructor_helper(
77 text: impl ::core::convert::Into<::unity::Il2CppString>,
78 text_placeholder: impl ::core::convert::Into<::unity::Il2CppString>,
79 ) -> (
80 ::unity::IntPtr,
81 crate::unity_engine::touchscreenkeyboard_internalconstructorhelperarguments::TouchScreenKeyboard_InternalConstructorHelperArguments,
82 ) {
83 unsafe {
84 let mut __out_0 = ::core::mem::MaybeUninit::<
85 crate::unity_engine::touchscreenkeyboard_internalconstructorhelperarguments::TouchScreenKeyboard_InternalConstructorHelperArguments,
86 >::uninit();
87 let __ret = {
88 ::unity::il2cpp_call!((::unity::module_base()+0x378ef50usize)as*mut u8, ::unity::IntPtr;
89(*mut crate::unity_engine::touchscreenkeyboard_internalconstructorhelperarguments::TouchScreenKeyboard_InternalConstructorHelperArguments)__out_0.as_mut_ptr(),(::unity::Il2CppString)::core::convert::Into::into(text),(::unity::Il2CppString)::core::convert::Into::into(text_placeholder))
90 };
91 (__ret, __out_0.assume_init())
92 }
93 }
94
95 #[doc = "`get_isSupported()` overload"]
96 pub fn get_is_supported() -> bool {
97 unsafe {
98 ::unity::il2cpp_call!((::unity::module_base()+0x378efb0usize)as*mut u8,bool;
99 )
100 }
101 }
102
103 #[doc = "`get_isInPlaceEditingAllowed()` overload"]
104 pub fn get_is_in_place_editing_allowed() -> bool {
105 unsafe {
106 ::unity::il2cpp_call!((::unity::module_base()+0x378f050usize)as*mut u8,bool;
107 )
108 }
109 }
110
111 #[doc = "`Open(::unity::Il2CppString, crate::unity_engine::touchscreenkeyboardtype::TouchScreenKeyboardType, bool, bool, bool, bool, ::unity::Il2CppString, i32)` overload"]
112 pub fn open(
113 text: impl ::core::convert::Into<::unity::Il2CppString>,
114 keyboard_type: impl ::core::convert::Into<crate::unity_engine::touchscreenkeyboardtype::TouchScreenKeyboardType>,
115 autocorrection: impl ::core::convert::Into<bool>,
116 multiline: impl ::core::convert::Into<bool>,
117 secure: impl ::core::convert::Into<bool>,
118 alert: impl ::core::convert::Into<bool>,
119 text_placeholder: impl ::core::convert::Into<::unity::Il2CppString>,
120 character_limit: impl ::core::convert::Into<i32>,
121 ) -> crate::unity_engine::touchscreenkeyboard::TouchScreenKeyboard {
122 unsafe {
123 ::unity::il2cpp_call!((::unity::module_base()+0x378f060usize)as*mut u8,crate::unity_engine::touchscreenkeyboard::TouchScreenKeyboard;
124(::unity::Il2CppString)::core::convert::Into::into(text),(crate::unity_engine::touchscreenkeyboardtype::TouchScreenKeyboardType)::core::convert::Into::into(keyboard_type),(bool)::core::convert::Into::into(autocorrection),(bool)::core::convert::Into::into(multiline),(bool)::core::convert::Into::into(secure),(bool)::core::convert::Into::into(alert),(::unity::Il2CppString)::core::convert::Into::into(text_placeholder),(i32)::core::convert::Into::into(character_limit))
125 }
126 }
127
128 #[doc = "`set_hideInput(bool)` overload"]
129 pub fn set_hide_input(value: impl ::core::convert::Into<bool>) -> () {
130 unsafe {
131 ::unity::il2cpp_call!((::unity::module_base()+0x378f1c0usize)as*mut u8,();
132(bool)::core::convert::Into::into(value))
133 }
134 }
135
136 #[doc = "`GetSelection(*muti32, *muti32)` overload"]
137 pub fn get_selection_2() -> (i32, i32) {
138 unsafe {
139 let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
140 let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
141 ::unity::il2cpp_call!((::unity::module_base()+0x378f450usize)as*mut u8,();
142(*mut i32)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr());
143 (__out_0.assume_init(), __out_1.assume_init())
144 }
145 }
146
147 #[doc = "`SetSelection(i32, i32)` overload"]
148 pub fn set_selection_2(start: impl ::core::convert::Into<i32>, length: impl ::core::convert::Into<i32>) -> () {
149 unsafe {
150 ::unity::il2cpp_call!((::unity::module_base()+0x378f590usize)as*mut u8,();
151(i32)::core::convert::Into::into(start),(i32)::core::convert::Into::into(length))
152 }
153 }
154}
155
156#[cfg(feature = "unity_engine-touchscreenkeyboard")]
157pub trait ITouchScreenKeyboardMethods: ITouchScreenKeyboard {
158 #[doc = "`Destroy()` overload"]
159 fn destroy(self) -> () {
160 unsafe {
161 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x378ecb0usize)as*mut u8,();
163(TouchScreenKeyboard)__receiver)
164 }
165 }
166 #[doc = "`Finalize()` overload"]
167 fn finalize(self) -> () {
168 unsafe {
169 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 {
171 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
172 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
173 panic!(
174 "unity: virtual slot {}
175 out of range (vtable len {}
176) on the runtime class behind {}
177 (method `{}
178`)",
179 1usize,
180 __vt.len(),
181 <TouchScreenKeyboard as ::unity::ClassIdentity>::NAME,
182 "Finalize",
183 )
184 });
185 let __inner: extern "C" fn(TouchScreenKeyboard, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
186 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
187 __inner(__receiver, __mi)
188 }
189 }
190 }
191 #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::touchscreenkeyboardtype::TouchScreenKeyboardType, bool, bool, bool, bool, ::unity::Il2CppString, i32)` overload"]
192 fn ctor(
193 self,
194 text: impl ::core::convert::Into<::unity::Il2CppString>,
195 keyboard_type: impl ::core::convert::Into<crate::unity_engine::touchscreenkeyboardtype::TouchScreenKeyboardType>,
196 autocorrection: impl ::core::convert::Into<bool>,
197 multiline: impl ::core::convert::Into<bool>,
198 secure: impl ::core::convert::Into<bool>,
199 alert: impl ::core::convert::Into<bool>,
200 text_placeholder: impl ::core::convert::Into<::unity::Il2CppString>,
201 character_limit: impl ::core::convert::Into<i32>,
202 ) -> () {
203 unsafe {
204 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205 ::unity::il2cpp_call!((::unity::module_base()+0x378ede0usize)as*mut u8,();
206(TouchScreenKeyboard)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text),(crate::unity_engine::touchscreenkeyboardtype::TouchScreenKeyboardType)::core::convert::Into::into(keyboard_type),(bool)::core::convert::Into::into(autocorrection),(bool)::core::convert::Into::into(multiline),(bool)::core::convert::Into::into(secure),(bool)::core::convert::Into::into(alert),(::unity::Il2CppString)::core::convert::Into::into(text_placeholder),(i32)::core::convert::Into::into(character_limit))
207 }
208 }
209 #[doc = "`get_text()` overload"]
210 fn get_text(self) -> ::unity::Il2CppString {
211 unsafe {
212 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213 ::unity::il2cpp_call!((::unity::module_base()+0x378f120usize)as*mut u8, ::unity::Il2CppString;
214(TouchScreenKeyboard)__receiver)
215 }
216 }
217 #[doc = "`set_text(::unity::Il2CppString)` overload"]
218 fn set_text(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
219 unsafe {
220 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221 ::unity::il2cpp_call!((::unity::module_base()+0x378f170usize)as*mut u8,();
222(TouchScreenKeyboard)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
223 }
224 }
225 #[doc = "`get_active()` overload"]
226 fn get_active(self) -> bool {
227 unsafe {
228 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229 ::unity::il2cpp_call!((::unity::module_base()+0x378f210usize)as*mut u8,bool;
230(TouchScreenKeyboard)__receiver)
231 }
232 }
233 #[doc = "`set_active(bool)` overload"]
234 fn set_active(self, value: impl ::core::convert::Into<bool>) -> () {
235 unsafe {
236 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237 ::unity::il2cpp_call!((::unity::module_base()+0x378f260usize)as*mut u8,();
238(TouchScreenKeyboard)__receiver,(bool)::core::convert::Into::into(value))
239 }
240 }
241 #[doc = "`get_status()` overload"]
242 fn get_status(self) -> crate::unity_engine::touchscreenkeyboard::TouchScreenKeyboard_Status {
243 unsafe {
244 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245 ::unity::il2cpp_call!((::unity::module_base()+0x378f2b0usize)as*mut u8,crate::unity_engine::touchscreenkeyboard::TouchScreenKeyboard_Status;
246(TouchScreenKeyboard)__receiver)
247 }
248 }
249 #[doc = "`set_characterLimit(i32)` overload"]
250 fn set_character_limit(self, value: impl ::core::convert::Into<i32>) -> () {
251 unsafe {
252 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253 ::unity::il2cpp_call!((::unity::module_base()+0x378f300usize)as*mut u8,();
254(TouchScreenKeyboard)__receiver,(i32)::core::convert::Into::into(value))
255 }
256 }
257 #[doc = "`get_canGetSelection()` overload"]
258 fn get_can_get_selection(self) -> bool {
259 unsafe {
260 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261 ::unity::il2cpp_call!((::unity::module_base()+0x378f350usize)as*mut u8,bool;
262(TouchScreenKeyboard)__receiver)
263 }
264 }
265 #[doc = "`get_canSetSelection()` overload"]
266 fn get_can_set_selection(self) -> bool {
267 unsafe {
268 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269 ::unity::il2cpp_call!((::unity::module_base()+0x378f3a0usize)as*mut u8,bool;
270(TouchScreenKeyboard)__receiver)
271 }
272 }
273 #[doc = "`get_selection()` overload"]
274 fn get_selection(self) -> crate::unity_engine::rangeint::RangeInt {
275 unsafe {
276 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277 ::unity::il2cpp_call!((::unity::module_base()+0x378f3f0usize)as*mut u8,crate::unity_engine::rangeint::RangeInt;
278(TouchScreenKeyboard)__receiver)
279 }
280 }
281 #[doc = "`set_selection(crate::unity_engine::rangeint::RangeInt)` overload"]
282 fn set_selection(self, value: impl ::core::convert::Into<crate::unity_engine::rangeint::RangeInt>) -> () {
283 unsafe {
284 let __receiver = <TouchScreenKeyboard as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285 ::unity::il2cpp_call!((::unity::module_base()+0x378f4a0usize)as*mut u8,();
286(TouchScreenKeyboard)__receiver,(crate::unity_engine::rangeint::RangeInt)::core::convert::Into::into(value))
287 }
288 }
289}
290
291#[cfg(feature = "unity_engine-touchscreenkeyboard")]
292impl<__T: ITouchScreenKeyboard> ITouchScreenKeyboardMethods for __T {}
293
294#[cfg(feature = "unity_engine-touchscreenkeyboard")]
295impl TouchScreenKeyboard {
296 pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
298 }
299
300 pub fn destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
302 }
303
304 pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
306 }
307
308 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
310 }
311
312 pub fn touch_screen_keyboard_internal_constructor_helper_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
314 }
315
316 pub fn get_is_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
318 }
319
320 pub fn get_is_in_place_editing_allowed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
322 }
323
324 pub fn open_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
326 }
327
328 pub fn get_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
330 }
331
332 pub fn set_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
334 }
335
336 pub fn set_hide_input_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
338 }
339
340 pub fn get_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
342 }
343
344 pub fn set_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
346 }
347
348 pub fn get_status_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
350 }
351
352 pub fn set_character_limit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
354 }
355
356 pub fn get_can_get_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
358 }
359
360 pub fn get_can_set_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
362 }
363
364 pub fn get_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
366 }
367
368 pub fn set_selection_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
370 }
371
372 pub fn get_selection_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
374 }
375
376 pub fn set_selection_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
378 }
379}
380
381#[cfg(feature = "unity_engine-touchscreenkeyboard")]
382impl TouchScreenKeyboard {
383 #[doc = "Direct (non-virtual) call to `TouchScreenKeyboard`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
384 pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
385 let __mi = Self::finalize_method_info();
386 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
387 __inner(this.into(), ::core::option::Option::None)
388 }
389}
390
391#[cfg(feature = "unity_engine-touchscreenkeyboard")]
392impl TouchScreenKeyboard {
393 #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::touchscreenkeyboardtype::TouchScreenKeyboardType, bool, bool, bool, bool, ::unity::Il2CppString, i32)` — overload selector"]
394 pub fn new(
395 text: ::unity::Il2CppString,
396 keyboard_type: crate::unity_engine::touchscreenkeyboardtype::TouchScreenKeyboardType,
397 autocorrection: bool,
398 multiline: bool,
399 secure: bool,
400 alert: bool,
401 text_placeholder: ::unity::Il2CppString,
402 character_limit: i32,
403 ) -> Self {
404 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
405 panic!(
406 "{}
407::{}
408 failed to instantiate",
409 ::core::stringify!(TouchScreenKeyboard),
410 ::core::stringify!(new),
411 )
412 });
413 <Self as ITouchScreenKeyboardMethods>::ctor(
414 this,
415 text,
416 keyboard_type,
417 autocorrection,
418 multiline,
419 secure,
420 alert,
421 text_placeholder,
422 character_limit,
423 );
424 this
425 }
426}
427
428#[cfg(feature = "unity_engine-touchscreenkeyboard")]
429#[doc(hidden)]
430pub mod prelude {
431 pub use super::{ITouchScreenKeyboard, ITouchScreenKeyboardMethods, TouchScreenKeyboard, TouchScreenKeyboard_Status};
432 #[cfg(feature = "system-object")]
433 pub use crate::system::object::IObjectMethods;
434 #[cfg(feature = "system-enum")]
435 pub use crate::system::r#enum::IEnumMethods;
436 #[cfg(feature = "system-valuetype")]
437 pub use crate::system::valuetype::IValueTypeMethods;
438 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
439}