Skip to main content

engage/generated/unity_engine/
guistateobjects.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-guistateobjects-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/guistateobjects/GUIStateObjects.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "GUIStateObjects")]
12    #[parent(crate::system::object::Object)]
13    pub struct GUIStateObjects {
14        #[static_field]
15        #[rename(name = "s_StateCache")]
16        pub s_state_cache: crate::system::collections::generic::dictionary_2::Dictionary_2<i32, crate::system::object::Object>,
17    }
18}
19
20#[cfg(feature = "unity_engine-guistateobjects-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-guistateobjects")]
24impl GUIStateObjects {
25    #[doc = "`GetStateObject(::unity::SystemType, i32)` overload"]
26    pub fn get_state_object(
27        t: impl ::core::convert::Into<::unity::SystemType>,
28        control_id: impl ::core::convert::Into<i32>,
29    ) -> crate::system::object::Object {
30        unsafe {
31            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f010usize)as*mut u8,crate::system::object::Object;
32(::unity::SystemType)::core::convert::Into::into(t),(i32)::core::convert::Into::into(control_id))
33        }
34    }
35
36    #[doc = "`.cctor()` overload"]
37    pub fn cctor() -> () {
38        unsafe {
39            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f130usize)as*mut u8,();
40            )
41        }
42    }
43}
44
45#[cfg(feature = "unity_engine-guistateobjects")]
46impl GUIStateObjects {
47    pub fn get_state_object_method_info() -> &'static ::unity::il2cpp::MethodInfo {
48        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
49    }
50
51    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
52        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
53    }
54}
55
56#[cfg(feature = "unity_engine-guistateobjects")]
57#[doc(hidden)]
58pub mod prelude {
59    pub use super::{GUIStateObjects, IGUIStateObjects};
60    pub use crate::system::object::IObject;
61    #[cfg(feature = "system-object")]
62    pub use crate::system::object::IObjectMethods;
63}