Skip to main content

engage/generated/unity_engine/
sliderstate.rs

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