Skip to main content

engage/generated/unity_engine/
guistyle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-guistyle-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/guistyle/GUIStyle.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "GUIStyle")]
12    #[parent(crate::system::object::Object)]
13    pub struct GUIStyle {
14        #[offset(16)]
15        #[rename(name = "m_Ptr")]
16        pub m_ptr: ::unity::IntPtr,
17        #[offset(24)]
18        #[rename(name = "m_Normal")]
19        pub m_normal: crate::unity_engine::guistylestate::GUIStyleState,
20        #[offset(32)]
21        #[rename(name = "m_Hover")]
22        pub m_hover: crate::unity_engine::guistylestate::GUIStyleState,
23        #[offset(40)]
24        #[rename(name = "m_Active")]
25        pub m_active: crate::unity_engine::guistylestate::GUIStyleState,
26        #[offset(48)]
27        #[rename(name = "m_Focused")]
28        pub m_focused: crate::unity_engine::guistylestate::GUIStyleState,
29        #[offset(56)]
30        #[rename(name = "m_OnNormal")]
31        pub m_on_normal: crate::unity_engine::guistylestate::GUIStyleState,
32        #[offset(64)]
33        #[rename(name = "m_OnHover")]
34        pub m_on_hover: crate::unity_engine::guistylestate::GUIStyleState,
35        #[offset(72)]
36        #[rename(name = "m_OnActive")]
37        pub m_on_active: crate::unity_engine::guistylestate::GUIStyleState,
38        #[offset(80)]
39        #[rename(name = "m_OnFocused")]
40        pub m_on_focused: crate::unity_engine::guistylestate::GUIStyleState,
41        #[offset(88)]
42        #[rename(name = "m_Border")]
43        pub m_border: crate::unity_engine::rectoffset::RectOffset,
44        #[offset(96)]
45        #[rename(name = "m_Padding")]
46        pub m_padding: crate::unity_engine::rectoffset::RectOffset,
47        #[offset(104)]
48        #[rename(name = "m_Margin")]
49        pub m_margin: crate::unity_engine::rectoffset::RectOffset,
50        #[offset(112)]
51        #[rename(name = "m_Overflow")]
52        pub m_overflow: crate::unity_engine::rectoffset::RectOffset,
53        #[offset(120)]
54        #[rename(name = "m_Name")]
55        pub m_name: ::unity::Il2CppString,
56        #[static_field]
57        #[rename(name = "showKeyboardFocus")]
58        pub show_keyboard_focus: bool,
59        #[static_field]
60        #[rename(name = "s_None")]
61        pub s_none: crate::unity_engine::guistyle::GUIStyle,
62    }
63}
64
65#[cfg(feature = "unity_engine-guistyle-types")]
66pub use __types::*;
67
68#[cfg(feature = "unity_engine-guistyle")]
69impl GUIStyle {
70    #[doc = "`Internal_Create(crate::unity_engine::guistyle::GUIStyle)` overload"]
71    pub fn internal_create(self_: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>) -> ::unity::IntPtr {
72        unsafe {
73            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f640usize)as*mut u8, ::unity::IntPtr;
74(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(self_))
75        }
76    }
77
78    #[doc = "`Internal_Copy(crate::unity_engine::guistyle::GUIStyle, crate::unity_engine::guistyle::GUIStyle)` overload"]
79    pub fn internal_copy(
80        self_: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
81        other: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
82    ) -> ::unity::IntPtr {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f690usize)as*mut u8, ::unity::IntPtr;
85(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(self_),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(other))
86        }
87    }
88
89    #[doc = "`Internal_Destroy(::unity::IntPtr)` overload"]
90    pub fn internal_destroy(self_: impl ::core::convert::Into<::unity::IntPtr>) -> () {
91        unsafe {
92            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f6e0usize)as*mut u8,();
93(::unity::IntPtr)::core::convert::Into::into(self_))
94        }
95    }
96
97    #[doc = "`SetMouseTooltip(::unity::Il2CppString, crate::unity_engine::rect::Rect)` overload"]
98    pub fn set_mouse_tooltip(
99        tooltip: impl ::core::convert::Into<::unity::Il2CppString>,
100        screen_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
101    ) -> () {
102        unsafe {
103            ::unity::il2cpp_call!((::unity::module_base()+0x3c3d5d0usize)as*mut u8,();
104(::unity::Il2CppString)::core::convert::Into::into(tooltip),(crate::unity_engine::rect::Rect)::core::convert::Into::into(screen_rect))
105        }
106    }
107
108    #[doc = "`IsTooltipActive(::unity::Il2CppString)` overload"]
109    pub fn is_tooltip_active(tooltip: impl ::core::convert::Into<::unity::Il2CppString>) -> bool {
110        unsafe {
111            ::unity::il2cpp_call!((::unity::module_base()+0x3c3d580usize)as*mut u8,bool;
112(::unity::Il2CppString)::core::convert::Into::into(tooltip))
113        }
114    }
115
116    #[doc = "`SetDefaultFont(crate::unity_engine::font::Font)` overload"]
117    pub fn set_default_font(font: impl ::core::convert::Into<crate::unity_engine::font::Font>) -> () {
118        unsafe {
119            ::unity::il2cpp_call!((::unity::module_base()+0x3c4baa0usize)as*mut u8,();
120(crate::unity_engine::font::Font)::core::convert::Into::into(font))
121        }
122    }
123
124    #[doc = "`get_none()` overload"]
125    pub fn get_none() -> crate::unity_engine::guistyle::GUIStyle {
126        unsafe {
127            ::unity::il2cpp_call!((::unity::module_base()+0x3c3f4f0usize)as*mut u8,crate::unity_engine::guistyle::GUIStyle;
128            )
129        }
130    }
131
132    #[doc = "`.cctor()` overload"]
133    pub fn cctor() -> () {
134        unsafe {
135            ::unity::il2cpp_call!((::unity::module_base()+0x3c50480usize)as*mut u8,();
136            )
137        }
138    }
139
140    #[doc = "`SetMouseTooltip_Injected(::unity::Il2CppString, *mutcrate::unity_engine::rect::Rect)` overload"]
141    pub fn set_mouse_tooltip_injected(tooltip: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::rect::Rect {
142        unsafe {
143            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rect::Rect>::uninit();
144            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fd10usize)as*mut u8,();
145(::unity::Il2CppString)::core::convert::Into::into(tooltip),(*mut crate::unity_engine::rect::Rect)__out_0.as_mut_ptr());
146            __out_0.assume_init()
147        }
148    }
149}
150
151#[cfg(feature = "unity_engine-guistyle")]
152pub trait IGUIStyleMethods: IGUIStyle {
153    #[doc = "`get_rawName()` overload"]
154    fn get_raw_name(self) -> ::unity::Il2CppString {
155        unsafe {
156            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
157            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f1d0usize)as*mut u8, ::unity::Il2CppString;
158(GUIStyle)__receiver)
159        }
160    }
161    #[doc = "`set_rawName(::unity::Il2CppString)` overload"]
162    fn set_raw_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
163        unsafe {
164            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f220usize)as*mut u8,();
166(GUIStyle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
167        }
168    }
169    #[doc = "`set_font(crate::unity_engine::font::Font)` overload"]
170    fn set_font(self, value: impl ::core::convert::Into<crate::unity_engine::font::Font>) -> () {
171        unsafe {
172            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f270usize)as*mut u8,();
174(GUIStyle)__receiver,(crate::unity_engine::font::Font)::core::convert::Into::into(value))
175        }
176    }
177    #[doc = "`get_imagePosition()` overload"]
178    fn get_image_position(self) -> crate::unity_engine::imageposition::ImagePosition {
179        unsafe {
180            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
181            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f2c0usize)as*mut u8,crate::unity_engine::imageposition::ImagePosition;
182(GUIStyle)__receiver)
183        }
184    }
185    #[doc = "`set_alignment(crate::unity_engine::textanchor::TextAnchor)` overload"]
186    fn set_alignment(self, value: impl ::core::convert::Into<crate::unity_engine::textanchor::TextAnchor>) -> () {
187        unsafe {
188            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f310usize)as*mut u8,();
190(GUIStyle)__receiver,(crate::unity_engine::textanchor::TextAnchor)::core::convert::Into::into(value))
191        }
192    }
193    #[doc = "`get_wordWrap()` overload"]
194    fn get_word_wrap(self) -> bool {
195        unsafe {
196            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f360usize)as*mut u8,bool;
198(GUIStyle)__receiver)
199        }
200    }
201    #[doc = "`set_clipping(crate::unity_engine::textclipping::TextClipping)` overload"]
202    fn set_clipping(self, value: impl ::core::convert::Into<crate::unity_engine::textclipping::TextClipping>) -> () {
203        unsafe {
204            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
205            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f3b0usize)as*mut u8,();
206(GUIStyle)__receiver,(crate::unity_engine::textclipping::TextClipping)::core::convert::Into::into(value))
207        }
208    }
209    #[doc = "`set_contentOffset(crate::unity_engine::vector2::Vector2)` overload"]
210    fn set_content_offset(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
211        unsafe {
212            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
213            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f400usize)as*mut u8,();
214(GUIStyle)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
215        }
216    }
217    #[doc = "`get_fixedWidth()` overload"]
218    fn get_fixed_width(self) -> f32 {
219        unsafe {
220            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
221            ::unity::il2cpp_call!((::unity::module_base()+0x3c3f010usize)as*mut u8,f32;
222(GUIStyle)__receiver)
223        }
224    }
225    #[doc = "`get_fixedHeight()` overload"]
226    fn get_fixed_height(self) -> f32 {
227        unsafe {
228            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
229            ::unity::il2cpp_call!((::unity::module_base()+0x3c3f060usize)as*mut u8,f32;
230(GUIStyle)__receiver)
231        }
232    }
233    #[doc = "`set_fixedHeight(f32)` overload"]
234    fn set_fixed_height(self, value: impl ::core::convert::Into<f32>) -> () {
235        unsafe {
236            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
237            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f4b0usize)as*mut u8,();
238(GUIStyle)__receiver,(f32)::core::convert::Into::into(value))
239        }
240    }
241    #[doc = "`get_stretchWidth()` overload"]
242    fn get_stretch_width(self) -> bool {
243        unsafe {
244            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
245            ::unity::il2cpp_call!((::unity::module_base()+0x3c46060usize)as*mut u8,bool;
246(GUIStyle)__receiver)
247        }
248    }
249    #[doc = "`set_stretchWidth(bool)` overload"]
250    fn set_stretch_width(self, value: impl ::core::convert::Into<bool>) -> () {
251        unsafe {
252            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
253            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f500usize)as*mut u8,();
254(GUIStyle)__receiver,(bool)::core::convert::Into::into(value))
255        }
256    }
257    #[doc = "`get_stretchHeight()` overload"]
258    fn get_stretch_height(self) -> bool {
259        unsafe {
260            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
261            ::unity::il2cpp_call!((::unity::module_base()+0x3c460b0usize)as*mut u8,bool;
262(GUIStyle)__receiver)
263        }
264    }
265    #[doc = "`set_stretchHeight(bool)` overload"]
266    fn set_stretch_height(self, value: impl ::core::convert::Into<bool>) -> () {
267        unsafe {
268            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
269            ::unity::il2cpp_call!((::unity::module_base()+0x3c4ed40usize)as*mut u8,();
270(GUIStyle)__receiver,(bool)::core::convert::Into::into(value))
271        }
272    }
273    #[doc = "`get_fontSize()` overload"]
274    fn get_font_size(self) -> i32 {
275        unsafe {
276            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f550usize)as*mut u8,i32;
278(GUIStyle)__receiver)
279        }
280    }
281    #[doc = "`set_fontSize(i32)` overload"]
282    fn set_font_size(self, value: impl ::core::convert::Into<i32>) -> () {
283        unsafe {
284            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
285            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f5a0usize)as*mut u8,();
286(GUIStyle)__receiver,(i32)::core::convert::Into::into(value))
287        }
288    }
289    #[doc = "`set_fontStyle(crate::unity_engine::fontstyle::FontStyle)` overload"]
290    fn set_font_style(self, value: impl ::core::convert::Into<crate::unity_engine::fontstyle::FontStyle>) -> () {
291        unsafe {
292            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
293            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f5f0usize)as*mut u8,();
294(GUIStyle)__receiver,(crate::unity_engine::fontstyle::FontStyle)::core::convert::Into::into(value))
295        }
296    }
297    #[doc = "`GetStyleStatePtr(i32)` overload"]
298    fn get_style_state_ptr(self, idx: impl ::core::convert::Into<i32>) -> ::unity::IntPtr {
299        unsafe {
300            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
301            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f730usize)as*mut u8, ::unity::IntPtr;
302(GUIStyle)__receiver,(i32)::core::convert::Into::into(idx))
303        }
304    }
305    #[doc = "`AssignStyleState(i32, ::unity::IntPtr)` overload"]
306    fn assign_style_state(self, idx: impl ::core::convert::Into<i32>, src_style_state: impl ::core::convert::Into<::unity::IntPtr>) -> () {
307        unsafe {
308            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f780usize)as*mut u8,();
310(GUIStyle)__receiver,(i32)::core::convert::Into::into(idx),(::unity::IntPtr)::core::convert::Into::into(src_style_state))
311        }
312    }
313    #[doc = "`GetRectOffsetPtr(i32)` overload"]
314    fn get_rect_offset_ptr(self, idx: impl ::core::convert::Into<i32>) -> ::unity::IntPtr {
315        unsafe {
316            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
317            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f7e0usize)as*mut u8, ::unity::IntPtr;
318(GUIStyle)__receiver,(i32)::core::convert::Into::into(idx))
319        }
320    }
321    #[doc = "`Internal_Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, bool, bool, bool, bool)` overload"]
322    fn internal_draw(
323        self,
324        screen_rect: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
325        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
326        is_hover: impl ::core::convert::Into<bool>,
327        is_active: impl ::core::convert::Into<bool>,
328        on: impl ::core::convert::Into<bool>,
329        has_keyboard_focus: impl ::core::convert::Into<bool>,
330    ) -> () {
331        unsafe {
332            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
333            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f830usize)as*mut u8,();
334(GUIStyle)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(screen_rect),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(bool)::core::convert::Into::into(is_hover),(bool)::core::convert::Into::into(is_active),(bool)::core::convert::Into::into(on),(bool)::core::convert::Into::into(has_keyboard_focus))
335        }
336    }
337    #[doc = "`Internal_Draw2(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32, bool)` overload"]
338    fn internal_draw2(
339        self,
340        position: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
341        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
342        control_id: impl ::core::convert::Into<i32>,
343        on: impl ::core::convert::Into<bool>,
344    ) -> () {
345        unsafe {
346            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
347            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f960usize)as*mut u8,();
348(GUIStyle)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(position),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(i32)::core::convert::Into::into(control_id),(bool)::core::convert::Into::into(on))
349        }
350    }
351    #[doc = "`Internal_CalcSize(crate::unity_engine::guicontent::GUIContent)` overload"]
352    fn internal_calc_size(
353        self,
354        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
355    ) -> crate::unity_engine::vector2::Vector2 {
356        unsafe {
357            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
358            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fa50usize)as*mut u8,crate::unity_engine::vector2::Vector2;
359(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content))
360        }
361    }
362    #[doc = "`Internal_CalcSizeWithConstraints(crate::unity_engine::guicontent::GUIContent, crate::unity_engine::vector2::Vector2)` overload"]
363    fn internal_calc_size_with_constraints(
364        self,
365        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
366        max_size: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
367    ) -> crate::unity_engine::vector2::Vector2 {
368        unsafe {
369            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
370            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fb10usize)as*mut u8,crate::unity_engine::vector2::Vector2;
371(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(max_size))
372        }
373    }
374    #[doc = "`Internal_CalcHeight(crate::unity_engine::guicontent::GUIContent, f32)` overload"]
375    fn internal_calc_height(
376        self,
377        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
378        width: impl ::core::convert::Into<f32>,
379    ) -> f32 {
380        unsafe {
381            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
382            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fbf0usize)as*mut u8,f32;
383(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(f32)::core::convert::Into::into(width))
384        }
385    }
386    #[doc = "`Internal_CalcMinMaxWidth(crate::unity_engine::guicontent::GUIContent)` overload"]
387    fn internal_calc_min_max_width(
388        self,
389        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
390    ) -> crate::unity_engine::vector2::Vector2 {
391        unsafe {
392            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
393            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fc50usize)as*mut u8,crate::unity_engine::vector2::Vector2;
394(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content))
395        }
396    }
397    #[doc = "`.ctor()` overload"]
398    fn ctor(self) -> () {
399        unsafe {
400            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
401            ::unity::il2cpp_call!((::unity::module_base()+0x3c4ce10usize)as*mut u8,();
402(GUIStyle)__receiver)
403        }
404    }
405    #[doc = "`.ctor(crate::unity_engine::guistyle::GUIStyle)` overload"]
406    fn ctor_2(self, other: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>) -> () {
407        unsafe {
408            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
409            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fd60usize)as*mut u8,();
410(GUIStyle)__receiver,(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(other))
411        }
412    }
413    #[doc = "`Finalize()` overload"]
414    fn finalize(self) -> () {
415        unsafe {
416            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
417            {
418                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
419                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
420                    panic!(
421                        "unity: virtual slot {}
422 out of range (vtable len {}
423) on the runtime class behind {}
424 (method `{}
425`)",
426                        1usize,
427                        __vt.len(),
428                        <GUIStyle as ::unity::ClassIdentity>::NAME,
429                        "Finalize",
430                    )
431                });
432                let __inner: extern "C" fn(GUIStyle, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
433                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
434                __inner(__receiver, __mi)
435            }
436        }
437    }
438    #[doc = "`get_name()` overload"]
439    fn get_name(self) -> ::unity::Il2CppString {
440        unsafe {
441            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
442            ::unity::il2cpp_call!((::unity::module_base()+0x3c3de80usize)as*mut u8, ::unity::Il2CppString;
443(GUIStyle)__receiver)
444        }
445    }
446    #[doc = "`set_name(::unity::Il2CppString)` overload"]
447    fn set_name(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
448        unsafe {
449            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
450            ::unity::il2cpp_call!((::unity::module_base()+0x3c4cec0usize)as*mut u8,();
451(GUIStyle)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
452        }
453    }
454    #[doc = "`get_normal()` overload"]
455    fn get_normal(self) -> crate::unity_engine::guistylestate::GUIStyleState {
456        unsafe {
457            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
458            ::unity::il2cpp_call!((::unity::module_base()+0x3c4ed90usize)as*mut u8,crate::unity_engine::guistylestate::GUIStyleState;
459(GUIStyle)__receiver)
460        }
461    }
462    #[doc = "`set_normal(crate::unity_engine::guistylestate::GUIStyleState)` overload"]
463    fn set_normal(self, value: impl ::core::convert::Into<crate::unity_engine::guistylestate::GUIStyleState>) -> () {
464        unsafe {
465            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
466            ::unity::il2cpp_call!((::unity::module_base()+0x3c50010usize)as*mut u8,();
467(GUIStyle)__receiver,(crate::unity_engine::guistylestate::GUIStyleState)::core::convert::Into::into(value))
468        }
469    }
470    #[doc = "`get_margin()` overload"]
471    fn get_margin(self) -> crate::unity_engine::rectoffset::RectOffset {
472        unsafe {
473            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
474            ::unity::il2cpp_call!((::unity::module_base()+0x3c40fb0usize)as*mut u8,crate::unity_engine::rectoffset::RectOffset;
475(GUIStyle)__receiver)
476        }
477    }
478    #[doc = "`get_padding()` overload"]
479    fn get_padding(self) -> crate::unity_engine::rectoffset::RectOffset {
480        unsafe {
481            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
482            ::unity::il2cpp_call!((::unity::module_base()+0x3c47b50usize)as*mut u8,crate::unity_engine::rectoffset::RectOffset;
483(GUIStyle)__receiver)
484        }
485    }
486    #[doc = "`Draw(crate::unity_engine::rect::Rect, bool, bool, bool, bool)` overload"]
487    fn draw(
488        self,
489        position: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
490        is_hover: impl ::core::convert::Into<bool>,
491        is_active: impl ::core::convert::Into<bool>,
492        on: impl ::core::convert::Into<bool>,
493        has_keyboard_focus: impl ::core::convert::Into<bool>,
494    ) -> () {
495        unsafe {
496            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
497            ::unity::il2cpp_call!((::unity::module_base()+0x3c41070usize)as*mut u8,();
498(GUIStyle)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(position),(bool)::core::convert::Into::into(is_hover),(bool)::core::convert::Into::into(is_active),(bool)::core::convert::Into::into(on),(bool)::core::convert::Into::into(has_keyboard_focus))
499        }
500    }
501    #[doc = "`Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, bool, bool, bool, bool)` overload"]
502    fn draw_2(
503        self,
504        position: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
505        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
506        is_hover: impl ::core::convert::Into<bool>,
507        is_active: impl ::core::convert::Into<bool>,
508        on: impl ::core::convert::Into<bool>,
509        has_keyboard_focus: impl ::core::convert::Into<bool>,
510    ) -> () {
511        unsafe {
512            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
513            ::unity::il2cpp_call!((::unity::module_base()+0x3c3d470usize)as*mut u8,();
514(GUIStyle)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(position),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(bool)::core::convert::Into::into(is_hover),(bool)::core::convert::Into::into(is_active),(bool)::core::convert::Into::into(on),(bool)::core::convert::Into::into(has_keyboard_focus))
515        }
516    }
517    #[doc = "`Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32)` overload"]
518    fn draw_3(
519        self,
520        position: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
521        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
522        control_id: impl ::core::convert::Into<i32>,
523    ) -> () {
524        unsafe {
525            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
526            ::unity::il2cpp_call!((::unity::module_base()+0x3c3f630usize)as*mut u8,();
527(GUIStyle)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(position),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(i32)::core::convert::Into::into(control_id))
528        }
529    }
530    #[doc = "`Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32, bool, bool)` overload"]
531    fn draw_4(
532        self,
533        position: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
534        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
535        control_id: impl ::core::convert::Into<i32>,
536        on: impl ::core::convert::Into<bool>,
537        hover: impl ::core::convert::Into<bool>,
538    ) -> () {
539        unsafe {
540            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
541            ::unity::il2cpp_call!((::unity::module_base()+0x3c3c280usize)as*mut u8,();
542(GUIStyle)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(position),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(i32)::core::convert::Into::into(control_id),(bool)::core::convert::Into::into(on),(bool)::core::convert::Into::into(hover))
543        }
544    }
545    #[doc = "`Draw(crate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32, bool, bool, bool, bool)` overload"]
546    fn draw_5(
547        self,
548        position: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
549        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
550        control_id: impl ::core::convert::Into<i32>,
551        is_hover: impl ::core::convert::Into<bool>,
552        is_active: impl ::core::convert::Into<bool>,
553        on: impl ::core::convert::Into<bool>,
554        has_keyboard_focus: impl ::core::convert::Into<bool>,
555    ) -> () {
556        unsafe {
557            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
558            ::unity::il2cpp_call!((::unity::module_base()+0x3c50070usize)as*mut u8,();
559(GUIStyle)__receiver,(crate::unity_engine::rect::Rect)::core::convert::Into::into(position),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(i32)::core::convert::Into::into(control_id),(bool)::core::convert::Into::into(is_hover),(bool)::core::convert::Into::into(is_active),(bool)::core::convert::Into::into(on),(bool)::core::convert::Into::into(has_keyboard_focus))
560        }
561    }
562    #[doc = "`CalcSize(crate::unity_engine::guicontent::GUIContent)` overload"]
563    fn calc_size(self, content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>) -> crate::unity_engine::vector2::Vector2 {
564        unsafe {
565            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
566            ::unity::il2cpp_call!((::unity::module_base()+0x3c50230usize)as*mut u8,crate::unity_engine::vector2::Vector2;
567(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content))
568        }
569    }
570    #[doc = "`CalcSizeWithConstraints(crate::unity_engine::guicontent::GUIContent, crate::unity_engine::vector2::Vector2)` overload"]
571    fn calc_size_with_constraints(
572        self,
573        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
574        constraints: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
575    ) -> crate::unity_engine::vector2::Vector2 {
576        unsafe {
577            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
578            ::unity::il2cpp_call!((::unity::module_base()+0x3c4ac40usize)as*mut u8,crate::unity_engine::vector2::Vector2;
579(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(constraints))
580        }
581    }
582    #[doc = "`CalcHeight(crate::unity_engine::guicontent::GUIContent, f32)` overload"]
583    fn calc_height(
584        self,
585        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
586        width: impl ::core::convert::Into<f32>,
587    ) -> f32 {
588        unsafe {
589            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
590            ::unity::il2cpp_call!((::unity::module_base()+0x3c50290usize)as*mut u8,f32;
591(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(f32)::core::convert::Into::into(width))
592        }
593    }
594    #[doc = "`get_isHeightDependantOnWidth()` overload"]
595    fn get_is_height_dependant_on_width(self) -> bool {
596        unsafe {
597            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
598            ::unity::il2cpp_call!((::unity::module_base()+0x3c4aa60usize)as*mut u8,bool;
599(GUIStyle)__receiver)
600        }
601    }
602    #[doc = "`CalcMinMaxWidth(crate::unity_engine::guicontent::GUIContent, *mutf32, *mutf32)` overload"]
603    fn calc_min_max_width(self, content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>) -> (f32, f32) {
604        unsafe {
605            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
606            let mut __out_0 = ::core::mem::MaybeUninit::<f32>::uninit();
607            let mut __out_1 = ::core::mem::MaybeUninit::<f32>::uninit();
608            ::unity::il2cpp_call!((::unity::module_base()+0x3c502f0usize)as*mut u8,();
609(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(*mut f32)__out_0.as_mut_ptr(),(*mut f32)__out_1.as_mut_ptr());
610            (__out_0.assume_init(), __out_1.assume_init())
611        }
612    }
613    #[doc = "`ToString()` overload"]
614    fn to_string(self) -> ::unity::Il2CppString {
615        unsafe {
616            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
617            {
618                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
619                let __vi = *__vt.get(3usize).unwrap_or_else(|| {
620                    panic!(
621                        "unity: virtual slot {}
622 out of range (vtable len {}
623) on the runtime class behind {}
624 (method `{}
625`)",
626                        3usize,
627                        __vt.len(),
628                        <GUIStyle as ::unity::ClassIdentity>::NAME,
629                        "ToString",
630                    )
631                });
632                let __inner: extern "C" fn(GUIStyle, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
633                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
634                __inner(__receiver, __mi)
635            }
636        }
637    }
638    #[doc = "`set_contentOffset_Injected(*mutcrate::unity_engine::vector2::Vector2)` overload"]
639    fn set_content_offset_injected(self) -> crate::unity_engine::vector2::Vector2 {
640        unsafe {
641            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
642            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
643            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f460usize)as*mut u8,();
644(GUIStyle)__receiver,(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr());
645            __out_0.assume_init()
646        }
647    }
648    #[doc = "`Internal_Draw_Injected(*mutcrate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, bool, bool, bool, bool)` overload"]
649    fn internal_draw_injected(
650        self,
651        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
652        is_hover: impl ::core::convert::Into<bool>,
653        is_active: impl ::core::convert::Into<bool>,
654        on: impl ::core::convert::Into<bool>,
655        has_keyboard_focus: impl ::core::convert::Into<bool>,
656    ) -> crate::unity_engine::rect::Rect {
657        unsafe {
658            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
659            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rect::Rect>::uninit();
660            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f8d0usize)as*mut u8,();
661(GUIStyle)__receiver,(*mut crate::unity_engine::rect::Rect)__out_0.as_mut_ptr(),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(bool)::core::convert::Into::into(is_hover),(bool)::core::convert::Into::into(is_active),(bool)::core::convert::Into::into(on),(bool)::core::convert::Into::into(has_keyboard_focus));
662            __out_0.assume_init()
663        }
664    }
665    #[doc = "`Internal_Draw2_Injected(*mutcrate::unity_engine::rect::Rect, crate::unity_engine::guicontent::GUIContent, i32, bool)` overload"]
666    fn internal_draw2_injected(
667        self,
668        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
669        control_id: impl ::core::convert::Into<i32>,
670        on: impl ::core::convert::Into<bool>,
671    ) -> crate::unity_engine::rect::Rect {
672        unsafe {
673            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
674            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rect::Rect>::uninit();
675            ::unity::il2cpp_call!((::unity::module_base()+0x3c4f9e0usize)as*mut u8,();
676(GUIStyle)__receiver,(*mut crate::unity_engine::rect::Rect)__out_0.as_mut_ptr(),(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(i32)::core::convert::Into::into(control_id),(bool)::core::convert::Into::into(on));
677            __out_0.assume_init()
678        }
679    }
680    #[doc = "`Internal_CalcSize_Injected(crate::unity_engine::guicontent::GUIContent, *mutcrate::unity_engine::vector2::Vector2)` overload"]
681    fn internal_calc_size_injected(
682        self,
683        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
684    ) -> crate::unity_engine::vector2::Vector2 {
685        unsafe {
686            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
687            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
688            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fab0usize)as*mut u8,();
689(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr());
690            __out_0.assume_init()
691        }
692    }
693    #[doc = "`Internal_CalcSizeWithConstraints_Injected(crate::unity_engine::guicontent::GUIContent, *mutcrate::unity_engine::vector2::Vector2, *mutcrate::unity_engine::vector2::Vector2)` overload"]
694    fn internal_calc_size_with_constraints_injected(
695        self,
696        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
697    ) -> (crate::unity_engine::vector2::Vector2, crate::unity_engine::vector2::Vector2) {
698        unsafe {
699            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
700            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
701            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
702            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fb80usize)as*mut u8,();
703(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr(),(*mut crate::unity_engine::vector2::Vector2)__out_1.as_mut_ptr());
704            (__out_0.assume_init(), __out_1.assume_init())
705        }
706    }
707    #[doc = "`Internal_CalcMinMaxWidth_Injected(crate::unity_engine::guicontent::GUIContent, *mutcrate::unity_engine::vector2::Vector2)` overload"]
708    fn internal_calc_min_max_width_injected(
709        self,
710        content: impl ::core::convert::Into<crate::unity_engine::guicontent::GUIContent>,
711    ) -> crate::unity_engine::vector2::Vector2 {
712        unsafe {
713            let __receiver = <GUIStyle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
714            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::vector2::Vector2>::uninit();
715            ::unity::il2cpp_call!((::unity::module_base()+0x3c4fcb0usize)as*mut u8,();
716(GUIStyle)__receiver,(crate::unity_engine::guicontent::GUIContent)::core::convert::Into::into(content),(*mut crate::unity_engine::vector2::Vector2)__out_0.as_mut_ptr());
717            __out_0.assume_init()
718        }
719    }
720}
721
722#[cfg(feature = "unity_engine-guistyle")]
723impl<__T: IGUIStyle> IGUIStyleMethods for __T {}
724
725#[cfg(feature = "unity_engine-guistyle")]
726impl GUIStyle {
727    pub fn get_raw_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
728        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
729    }
730
731    pub fn set_raw_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
732        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
733    }
734
735    pub fn set_font_method_info() -> &'static ::unity::il2cpp::MethodInfo {
736        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
737    }
738
739    pub fn get_image_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
740        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
741    }
742
743    pub fn set_alignment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
744        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
745    }
746
747    pub fn get_word_wrap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
748        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
749    }
750
751    pub fn set_clipping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
752        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
753    }
754
755    pub fn set_content_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
756        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
757    }
758
759    pub fn get_fixed_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
760        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
761    }
762
763    pub fn get_fixed_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
764        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
765    }
766
767    pub fn set_fixed_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
768        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
769    }
770
771    pub fn get_stretch_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
772        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
773    }
774
775    pub fn set_stretch_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
776        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
777    }
778
779    pub fn get_stretch_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
780        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
781    }
782
783    pub fn set_stretch_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
784        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
785    }
786
787    pub fn get_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
788        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
789    }
790
791    pub fn set_font_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
792        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
793    }
794
795    pub fn set_font_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
796        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
797    }
798
799    pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
800        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
801    }
802
803    pub fn internal_copy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
804        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
805    }
806
807    pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
808        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
809    }
810
811    pub fn get_style_state_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
812        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
813    }
814
815    pub fn assign_style_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
816        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
817    }
818
819    pub fn get_rect_offset_ptr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
820        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
821    }
822
823    pub fn internal_draw_method_info() -> &'static ::unity::il2cpp::MethodInfo {
824        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
825    }
826
827    pub fn internal_draw2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
828        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
829    }
830
831    pub fn internal_calc_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
832        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
833    }
834
835    pub fn internal_calc_size_with_constraints_method_info() -> &'static ::unity::il2cpp::MethodInfo {
836        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
837    }
838
839    pub fn internal_calc_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
840        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
841    }
842
843    pub fn internal_calc_min_max_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
844        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
845    }
846
847    pub fn set_mouse_tooltip_method_info() -> &'static ::unity::il2cpp::MethodInfo {
848        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
849    }
850
851    pub fn is_tooltip_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
852        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
853    }
854
855    pub fn set_default_font_method_info() -> &'static ::unity::il2cpp::MethodInfo {
856        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
857    }
858
859    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
860        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
861    }
862
863    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
864        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
865    }
866
867    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
868        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
869    }
870
871    pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
872        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
873    }
874
875    pub fn set_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
876        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
877    }
878
879    pub fn get_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
880        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
881    }
882
883    pub fn set_normal_method_info() -> &'static ::unity::il2cpp::MethodInfo {
884        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
885    }
886
887    pub fn get_margin_method_info() -> &'static ::unity::il2cpp::MethodInfo {
888        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
889    }
890
891    pub fn get_padding_method_info() -> &'static ::unity::il2cpp::MethodInfo {
892        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
893    }
894
895    pub fn draw_method_info() -> &'static ::unity::il2cpp::MethodInfo {
896        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
897    }
898
899    pub fn draw_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
900        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
901    }
902
903    pub fn draw_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
904        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
905    }
906
907    pub fn draw_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
908        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
909    }
910
911    pub fn draw_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
912        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
913    }
914
915    pub fn get_none_method_info() -> &'static ::unity::il2cpp::MethodInfo {
916        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
917    }
918
919    pub fn calc_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
920        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
921    }
922
923    pub fn calc_size_with_constraints_method_info() -> &'static ::unity::il2cpp::MethodInfo {
924        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
925    }
926
927    pub fn calc_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
928        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
929    }
930
931    pub fn get_is_height_dependant_on_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
932        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
933    }
934
935    pub fn calc_min_max_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
936        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
937    }
938
939    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
940        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
941    }
942
943    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
944        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[54]
945    }
946
947    pub fn set_content_offset_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
948        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
949    }
950
951    pub fn internal_draw_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
952        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
953    }
954
955    pub fn internal_draw2_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
956        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[57]
957    }
958
959    pub fn internal_calc_size_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
960        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
961    }
962
963    pub fn internal_calc_size_with_constraints_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
964        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
965    }
966
967    pub fn internal_calc_min_max_width_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
968        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[60]
969    }
970
971    pub fn set_mouse_tooltip_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
972        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[61]
973    }
974}
975
976#[cfg(feature = "unity_engine-guistyle")]
977impl GUIStyle {
978    #[doc = "Direct (non-virtual) call to `GUIStyle`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
979    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
980        let __mi = Self::finalize_method_info();
981        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
982        __inner(this.into(), ::core::option::Option::None)
983    }
984
985    #[doc = "Direct (non-virtual) call to `GUIStyle`'s own `ToString`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
986    pub unsafe fn to_string(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
987        let __mi = Self::to_string_method_info();
988        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
989        __inner(this.into(), ::core::option::Option::None)
990    }
991}
992
993#[cfg(feature = "unity_engine-guistyle")]
994impl GUIStyle {
995    #[doc = "`.ctor()` — no args"]
996    pub fn new() -> Self {
997        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
998            panic!(
999                "{}
1000::{}
1001 failed to instantiate",
1002                ::core::stringify!(GUIStyle),
1003                ::core::stringify!(new),
1004            )
1005        });
1006        <Self as IGUIStyleMethods>::ctor(this);
1007        this
1008    }
1009
1010    #[doc = "`.ctor(crate::unity_engine::guistyle::GUIStyle)` — overload selector"]
1011    pub fn new_2(other: crate::unity_engine::guistyle::GUIStyle) -> Self {
1012        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1013            panic!(
1014                "{}
1015::{}
1016 failed to instantiate",
1017                ::core::stringify!(GUIStyle),
1018                ::core::stringify!(new_2),
1019            )
1020        });
1021        <Self as IGUIStyleMethods>::ctor_2(this, other);
1022        this
1023    }
1024}
1025
1026#[cfg(feature = "unity_engine-guistyle")]
1027#[doc(hidden)]
1028pub mod prelude {
1029    pub use super::{GUIStyle, IGUIStyle, IGUIStyleMethods};
1030    pub use crate::system::object::IObject;
1031    #[cfg(feature = "system-object")]
1032    pub use crate::system::object::IObjectMethods;
1033}