Skip to main content

engage/generated/unity_engine/
guisettings.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-guisettings-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/guisettings/GUISettings.md"))]
11    #[::unity::class(namespace = "UnityEngine", name = "GUISettings")]
12    #[parent(crate::system::object::Object)]
13    pub struct GUISettings {
14        #[offset(16)]
15        #[rename(name = "m_DoubleClickSelectsWord")]
16        pub m_double_click_selects_word: bool,
17        #[offset(17)]
18        #[rename(name = "m_TripleClickSelectsLine")]
19        pub m_triple_click_selects_line: bool,
20        #[offset(20)]
21        #[rename(name = "m_CursorColor")]
22        pub m_cursor_color: crate::unity_engine::color::Color,
23        #[offset(36)]
24        #[rename(name = "m_CursorFlashSpeed")]
25        pub m_cursor_flash_speed: f32,
26        #[offset(40)]
27        #[rename(name = "m_SelectionColor")]
28        pub m_selection_color: crate::unity_engine::color::Color,
29    }
30}
31
32#[cfg(feature = "unity_engine-guisettings-types")]
33pub use __types::*;
34
35#[cfg(feature = "unity_engine-guisettings")]
36pub trait IGUISettingsMethods: IGUISettings {
37    #[doc = "`.ctor()` overload"]
38    fn ctor(self) -> () {
39        unsafe {
40            let __receiver = <GUISettings as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
41            ::unity::il2cpp_call!((::unity::module_base()+0x3c4b580usize)as*mut u8,();
42(GUISettings)__receiver)
43        }
44    }
45}
46
47#[cfg(feature = "unity_engine-guisettings")]
48impl<__T: IGUISettings> IGUISettingsMethods for __T {}
49
50#[cfg(feature = "unity_engine-guisettings")]
51impl GUISettings {
52    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
53        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
54    }
55}
56
57#[cfg(feature = "unity_engine-guisettings")]
58impl GUISettings {
59    #[doc = "`.ctor()` — no args"]
60    pub fn new() -> Self {
61        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
62            panic!(
63                "{}
64::{}
65 failed to instantiate",
66                ::core::stringify!(GUISettings),
67                ::core::stringify!(new),
68            )
69        });
70        <Self as IGUISettingsMethods>::ctor(this);
71        this
72    }
73}
74
75#[cfg(feature = "unity_engine-guisettings")]
76#[doc(hidden)]
77pub mod prelude {
78    pub use super::{GUISettings, IGUISettings, IGUISettingsMethods};
79    pub use crate::system::object::IObject;
80    #[cfg(feature = "system-object")]
81    pub use crate::system::object::IObjectMethods;
82}