Skip to main content

engage/generated/unity_engine/
guicontent.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-guicontent-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/guicontent/GUIContent.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "GUIContent")]
12    #[parent(crate::system::object::Object)]
13    pub struct GUIContent {
14        #[offset(16)]
15        #[rename(name = "m_Text")]
16        pub m_text: ::unity::Il2CppString,
17        #[offset(24)]
18        #[rename(name = "m_Image")]
19        pub m_image: crate::unity_engine::texture::Texture,
20        #[offset(32)]
21        #[rename(name = "m_Tooltip")]
22        pub m_tooltip: ::unity::Il2CppString,
23        #[static_field]
24        #[rename(name = "s_Text")]
25        pub s_text: crate::unity_engine::guicontent::GUIContent,
26        #[static_field]
27        #[rename(name = "s_Image")]
28        pub s_image: crate::unity_engine::guicontent::GUIContent,
29        #[static_field]
30        #[rename(name = "s_TextImage")]
31        pub s_text_image: crate::unity_engine::guicontent::GUIContent,
32        #[static_field]
33        #[rename(name = "none")]
34        pub none: crate::unity_engine::guicontent::GUIContent,
35    }
36}
37
38#[cfg(feature = "unity_engine-guicontent-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-guicontent")]
42impl GUIContent {
43    #[doc = "`Temp(::unity::Il2CppString)` overload"]
44    pub fn temp(t: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::guicontent::GUIContent {
45        unsafe {
46            ::unity::il2cpp_call!((::unity::module_base()+0x3c3a780usize)as*mut u8,crate::unity_engine::guicontent::GUIContent;
47(::unity::Il2CppString)::core::convert::Into::into(t))
48        }
49    }
50
51    #[doc = "`ClearStaticCache()` overload"]
52    pub fn clear_static_cache() -> () {
53        unsafe {
54            ::unity::il2cpp_call!((::unity::module_base()+0x3c43520usize)as*mut u8,();
55            )
56        }
57    }
58
59    #[doc = "`.cctor()` overload"]
60    pub fn cctor() -> () {
61        unsafe {
62            ::unity::il2cpp_call!((::unity::module_base()+0x3c43630usize)as*mut u8,();
63            )
64        }
65    }
66}
67
68#[cfg(feature = "unity_engine-guicontent")]
69pub trait IGUIContentMethods: IGUIContent {
70    #[doc = "`get_text()` overload"]
71    fn get_text(self) -> ::unity::Il2CppString {
72        unsafe {
73            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74            ::unity::il2cpp_call!((::unity::module_base()+0x3c43250usize)as*mut u8, ::unity::Il2CppString;
75(GUIContent)__receiver)
76        }
77    }
78    #[doc = "`set_text(::unity::Il2CppString)` overload"]
79    fn set_text(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
80        unsafe {
81            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82            ::unity::il2cpp_call!((::unity::module_base()+0x3c43260usize)as*mut u8,();
83(GUIContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
84        }
85    }
86    #[doc = "`set_image(crate::unity_engine::texture::Texture)` overload"]
87    fn set_image(self, value: impl ::core::convert::Into<crate::unity_engine::texture::Texture>) -> () {
88        unsafe {
89            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90            ::unity::il2cpp_call!((::unity::module_base()+0x3c43270usize)as*mut u8,();
91(GUIContent)__receiver,(crate::unity_engine::texture::Texture)::core::convert::Into::into(value))
92        }
93    }
94    #[doc = "`get_tooltip()` overload"]
95    fn get_tooltip(self) -> ::unity::Il2CppString {
96        unsafe {
97            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98            ::unity::il2cpp_call!((::unity::module_base()+0x3c3d510usize)as*mut u8, ::unity::Il2CppString;
99(GUIContent)__receiver)
100        }
101    }
102    #[doc = "`set_tooltip(::unity::Il2CppString)` overload"]
103    fn set_tooltip(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
104        unsafe {
105            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106            ::unity::il2cpp_call!((::unity::module_base()+0x3c43280usize)as*mut u8,();
107(GUIContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
108        }
109    }
110    #[doc = "`.ctor()` overload"]
111    fn ctor(self) -> () {
112        unsafe {
113            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x3c43290usize)as*mut u8,();
115(GUIContent)__receiver)
116        }
117    }
118    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
119    fn ctor_2(self, text: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
120        unsafe {
121            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122            ::unity::il2cpp_call!((::unity::module_base()+0x3c43320usize)as*mut u8,();
123(GUIContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text))
124        }
125    }
126    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::texture::Texture, ::unity::Il2CppString)` overload"]
127    fn ctor_3(
128        self,
129        text: impl ::core::convert::Into<::unity::Il2CppString>,
130        image: impl ::core::convert::Into<crate::unity_engine::texture::Texture>,
131        tooltip: impl ::core::convert::Into<::unity::Il2CppString>,
132    ) -> () {
133        unsafe {
134            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
135            ::unity::il2cpp_call!((::unity::module_base()+0x3c43390usize)as*mut u8,();
136(GUIContent)__receiver,(::unity::Il2CppString)::core::convert::Into::into(text),(crate::unity_engine::texture::Texture)::core::convert::Into::into(image),(::unity::Il2CppString)::core::convert::Into::into(tooltip))
137        }
138    }
139    #[doc = "`.ctor(crate::unity_engine::guicontent::GUIContent)` overload"]
140    fn ctor_4(self, src: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>) -> () {
141        unsafe {
142            let __receiver = <GUIContent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
143            ::unity::il2cpp_call!((::unity::module_base()+0x3c43460usize)as*mut u8,();
144(GUIContent)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(src))
145        }
146    }
147}
148
149#[cfg(feature = "unity_engine-guicontent")]
150impl<__T: IGUIContent> IGUIContentMethods for __T {}
151
152#[cfg(feature = "unity_engine-guicontent")]
153impl GUIContent {
154    pub fn get_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
155        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
156    }
157
158    pub fn set_text_method_info() -> &'static ::unity::il2cpp::MethodInfo {
159        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
160    }
161
162    pub fn set_image_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
164    }
165
166    pub fn get_tooltip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
168    }
169
170    pub fn set_tooltip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
172    }
173
174    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
176    }
177
178    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
180    }
181
182    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
184    }
185
186    pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
188    }
189
190    pub fn temp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
191        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
192    }
193
194    pub fn clear_static_cache_method_info() -> &'static ::unity::il2cpp::MethodInfo {
195        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
196    }
197
198    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
199        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
200    }
201}
202
203#[cfg(feature = "unity_engine-guicontent")]
204impl GUIContent {
205    #[doc = "`.ctor()` — no args"]
206    pub fn new() -> Self {
207        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
208            panic!(
209                "{}
210::{}
211 failed to instantiate",
212                ::core::stringify!(GUIContent),
213                ::core::stringify!(new),
214            )
215        });
216        <Self as IGUIContentMethods>::ctor(this);
217        this
218    }
219
220    #[doc = "`.ctor(::unity::Il2CppString)` — overload selector"]
221    pub fn new_2(text: ::unity::Il2CppString) -> Self {
222        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
223            panic!(
224                "{}
225::{}
226 failed to instantiate",
227                ::core::stringify!(GUIContent),
228                ::core::stringify!(new_2),
229            )
230        });
231        <Self as IGUIContentMethods>::ctor_2(this, text);
232        this
233    }
234
235    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::texture::Texture, ::unity::Il2CppString)` — overload selector"]
236    pub fn new_3(text: ::unity::Il2CppString, image: crate::unity_engine::texture::Texture, tooltip: ::unity::Il2CppString) -> Self {
237        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
238            panic!(
239                "{}
240::{}
241 failed to instantiate",
242                ::core::stringify!(GUIContent),
243                ::core::stringify!(new_3),
244            )
245        });
246        <Self as IGUIContentMethods>::ctor_3(this, text, image, tooltip);
247        this
248    }
249
250    #[doc = "`.ctor(crate::unity_engine::guicontent::GUIContent)` — overload selector"]
251    pub fn new_4(src: crate::unity_engine::guicontent::GUIContent) -> Self {
252        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
253            panic!(
254                "{}
255::{}
256 failed to instantiate",
257                ::core::stringify!(GUIContent),
258                ::core::stringify!(new_4),
259            )
260        });
261        <Self as IGUIContentMethods>::ctor_4(this, src);
262        this
263    }
264}
265
266#[cfg(feature = "unity_engine-guicontent")]
267#[doc(hidden)]
268pub mod prelude {
269    pub use super::{GUIContent, IGUIContent, IGUIContentMethods};
270    pub use crate::system::object::IObject;
271    #[cfg(feature = "system-object")]
272    pub use crate::system::object::IObjectMethods;
273}