Skip to main content

engage/generated/unity_engine/
sliderhandler.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-sliderhandler-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/sliderhandler/SliderHandler.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct SliderHandler {
17        pub position: crate::unity_engine::rect::Rect,
18        pub current_value: f32,
19        pub size: f32,
20        pub start: f32,
21        pub end: f32,
22        pub slider: crate::unity_engine::guistyle::GUIStyle,
23        pub thumb: crate::unity_engine::guistyle::GUIStyle,
24        pub thumb_extent: crate::unity_engine::guistyle::GUIStyle,
25        pub horiz: bool,
26        pub id: i32,
27    }
28    impl ::unity::ClassIdentity for SliderHandler {
29        const NAME: &'static str = "SliderHandler";
30        const NAMESPACE: &'static str = "UnityEngine";
31
32        fn class() -> ::unity::Class {
33            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
34            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
35        }
36    }
37    impl ::unity::IlType for SliderHandler {
38        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
39            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
40        }
41    }
42}
43
44#[cfg(feature = "unity_engine-sliderhandler-types")]
45pub use __types::*;
46
47#[cfg(feature = "unity_engine-sliderhandler")]
48impl SliderHandler {
49    #[doc = "`.ctor(crate::unity_engine::rect::Rect, f32, f32, f32, f32, crate::unity_engine::guistyle::GUIStyle, crate::unity_engine::guistyle::GUIStyle, bool, i32, crate::unity_engine::guistyle::GUIStyle)` overload"]
50    pub fn ctor(
51        &mut self,
52        position: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
53        current_value: impl ::core::convert::Into<f32>,
54        size: impl ::core::convert::Into<f32>,
55        start: impl ::core::convert::Into<f32>,
56        end: impl ::core::convert::Into<f32>,
57        slider: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
58        thumb: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
59        horiz: impl ::core::convert::Into<bool>,
60        id: impl ::core::convert::Into<i32>,
61        thumb_extent: impl ::core::convert::Into<crate::unity_engine::guistyle::GUIStyle>,
62    ) -> () {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x3c3d920usize)as*mut u8,();
65(*mut SliderHandler)self as*mut SliderHandler,(crate::unity_engine::rect::Rect)::core::convert::Into::into(position),(f32)::core::convert::Into::into(current_value),(f32)::core::convert::Into::into(size),(f32)::core::convert::Into::into(start),(f32)::core::convert::Into::into(end),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(slider),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(thumb),(bool)::core::convert::Into::into(horiz),(i32)::core::convert::Into::into(id),(crate::unity_engine::guistyle::GUIStyle)::core::convert::Into::into(thumb_extent))
66        }
67    }
68
69    #[doc = "`Handle()` overload"]
70    pub fn handle(&mut self) -> f32 {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x3c3d9b0usize)as*mut u8,f32;
73(*mut SliderHandler)self as*mut SliderHandler)
74        }
75    }
76
77    #[doc = "`OnMouseDown()` overload"]
78    pub fn on_mouse_down(&mut self) -> f32 {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x3c517b0usize)as*mut u8,f32;
81(*mut SliderHandler)self as*mut SliderHandler)
82        }
83    }
84
85    #[doc = "`OnMouseDrag()` overload"]
86    pub fn on_mouse_drag(&mut self) -> f32 {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x3c51e10usize)as*mut u8,f32;
89(*mut SliderHandler)self as*mut SliderHandler)
90        }
91    }
92
93    #[doc = "`OnMouseUp()` overload"]
94    pub fn on_mouse_up(&mut self) -> f32 {
95        unsafe {
96            ::unity::il2cpp_call!((::unity::module_base()+0x3c51fd0usize)as*mut u8,f32;
97(*mut SliderHandler)self as*mut SliderHandler)
98        }
99    }
100
101    #[doc = "`OnRepaint()` overload"]
102    pub fn on_repaint(&mut self) -> f32 {
103        unsafe {
104            ::unity::il2cpp_call!((::unity::module_base()+0x3c520a0usize)as*mut u8,f32;
105(*mut SliderHandler)self as*mut SliderHandler)
106        }
107    }
108
109    #[doc = "`CurrentEventType()` overload"]
110    pub fn current_event_type(&mut self) -> crate::unity_engine::eventtype::EventType {
111        unsafe {
112            ::unity::il2cpp_call!((::unity::module_base()+0x3c51720usize)as*mut u8,crate::unity_engine::eventtype::EventType;
113(*mut SliderHandler)self as*mut SliderHandler)
114        }
115    }
116
117    #[doc = "`CurrentScrollTroughSide()` overload"]
118    pub fn current_scroll_trough_side(&mut self) -> i32 {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x3c52ab0usize)as*mut u8,i32;
121(*mut SliderHandler)self as*mut SliderHandler)
122        }
123    }
124
125    #[doc = "`IsEmptySlider()` overload"]
126    pub fn is_empty_slider(&mut self) -> bool {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x3c52800usize)as*mut u8,bool;
129(*mut SliderHandler)self as*mut SliderHandler)
130        }
131    }
132
133    #[doc = "`SupportsPageMovements()` overload"]
134    pub fn supports_page_movements(&mut self) -> bool {
135        unsafe {
136            ::unity::il2cpp_call!((::unity::module_base()+0x3c528c0usize)as*mut u8,bool;
137(*mut SliderHandler)self as*mut SliderHandler)
138        }
139    }
140
141    #[doc = "`PageMovementValue()` overload"]
142    pub fn page_movement_value(&mut self) -> f32 {
143        unsafe {
144            ::unity::il2cpp_call!((::unity::module_base()+0x3c52be0usize)as*mut u8,f32;
145(*mut SliderHandler)self as*mut SliderHandler)
146        }
147    }
148
149    #[doc = "`PageUpMovementBound()` overload"]
150    pub fn page_up_movement_bound(&mut self) -> f32 {
151        unsafe {
152            ::unity::il2cpp_call!((::unity::module_base()+0x3c531c0usize)as*mut u8,f32;
153(*mut SliderHandler)self as*mut SliderHandler)
154        }
155    }
156
157    #[doc = "`CurrentEvent()` overload"]
158    pub fn current_event(&mut self) -> crate::unity_engine::event::Event {
159        unsafe {
160            ::unity::il2cpp_call!((::unity::module_base()+0x3c527b0usize)as*mut u8,crate::unity_engine::event::Event;
161(*mut SliderHandler)self as*mut SliderHandler)
162        }
163    }
164
165    #[doc = "`ValueForCurrentMousePosition()` overload"]
166    pub fn value_for_current_mouse_position(&mut self) -> f32 {
167        unsafe {
168            ::unity::il2cpp_call!((::unity::module_base()+0x3c52ca0usize)as*mut u8,f32;
169(*mut SliderHandler)self as*mut SliderHandler)
170        }
171    }
172
173    #[doc = "`Clamp(f32)` overload"]
174    pub fn clamp(&mut self, value: impl ::core::convert::Into<f32>) -> f32 {
175        unsafe {
176            ::unity::il2cpp_call!((::unity::module_base()+0x3c52d50usize)as*mut u8,f32;
177(*mut SliderHandler)self as*mut SliderHandler,(f32)::core::convert::Into::into(value))
178        }
179    }
180
181    #[doc = "`ThumbSelectionRect()` overload"]
182    pub fn thumb_selection_rect(&mut self) -> crate::unity_engine::rect::Rect {
183        unsafe {
184            ::unity::il2cpp_call!((::unity::module_base()+0x3c527a0usize)as*mut u8,crate::unity_engine::rect::Rect;
185(*mut SliderHandler)self as*mut SliderHandler)
186        }
187    }
188
189    #[doc = "`StartDraggingWithValue(f32)` overload"]
190    pub fn start_dragging_with_value(&mut self, drag_start_value: impl ::core::convert::Into<f32>) -> () {
191        unsafe {
192            ::unity::il2cpp_call!((::unity::module_base()+0x3c52870usize)as*mut u8,();
193(*mut SliderHandler)self as*mut SliderHandler,(f32)::core::convert::Into::into(drag_start_value))
194        }
195    }
196
197    #[doc = "`SliderState()` overload"]
198    pub fn slider_state(&mut self) -> crate::unity_engine::sliderstate::SliderState {
199        unsafe {
200            ::unity::il2cpp_call!((::unity::module_base()+0x3c52970usize)as*mut u8,crate::unity_engine::sliderstate::SliderState;
201(*mut SliderHandler)self as*mut SliderHandler)
202        }
203    }
204
205    #[doc = "`ThumbExtRect()` overload"]
206    pub fn thumb_ext_rect(&mut self) -> crate::unity_engine::rect::Rect {
207        unsafe {
208            ::unity::il2cpp_call!((::unity::module_base()+0x3c530b0usize)as*mut u8,crate::unity_engine::rect::Rect;
209(*mut SliderHandler)self as*mut SliderHandler)
210        }
211    }
212
213    #[doc = "`ThumbRect()` overload"]
214    pub fn thumb_rect(&mut self) -> crate::unity_engine::rect::Rect {
215        unsafe {
216            ::unity::il2cpp_call!((::unity::module_base()+0x3c531b0usize)as*mut u8,crate::unity_engine::rect::Rect;
217(*mut SliderHandler)self as*mut SliderHandler)
218        }
219    }
220
221    #[doc = "`VerticalThumbRect()` overload"]
222    pub fn vertical_thumb_rect(&mut self) -> crate::unity_engine::rect::Rect {
223        unsafe {
224            ::unity::il2cpp_call!((::unity::module_base()+0x3c532b0usize)as*mut u8,crate::unity_engine::rect::Rect;
225(*mut SliderHandler)self as*mut SliderHandler)
226        }
227    }
228
229    #[doc = "`HorizontalThumbRect()` overload"]
230    pub fn horizontal_thumb_rect(&mut self) -> crate::unity_engine::rect::Rect {
231        unsafe {
232            ::unity::il2cpp_call!((::unity::module_base()+0x3c535f0usize)as*mut u8,crate::unity_engine::rect::Rect;
233(*mut SliderHandler)self as*mut SliderHandler)
234        }
235    }
236
237    #[doc = "`ClampedCurrentValue()` overload"]
238    pub fn clamped_current_value(&mut self) -> f32 {
239        unsafe {
240            ::unity::il2cpp_call!((::unity::module_base()+0x3c52810usize)as*mut u8,f32;
241(*mut SliderHandler)self as*mut SliderHandler)
242        }
243    }
244
245    #[doc = "`MousePosition()` overload"]
246    pub fn mouse_position(&mut self) -> f32 {
247        unsafe {
248            ::unity::il2cpp_call!((::unity::module_base()+0x3c52db0usize)as*mut u8,f32;
249(*mut SliderHandler)self as*mut SliderHandler)
250        }
251    }
252
253    #[doc = "`ValuesPerPixel()` overload"]
254    pub fn values_per_pixel(&mut self) -> f32 {
255        unsafe {
256            ::unity::il2cpp_call!((::unity::module_base()+0x3c52ed0usize)as*mut u8,f32;
257(*mut SliderHandler)self as*mut SliderHandler)
258        }
259    }
260
261    #[doc = "`ThumbSize()` overload"]
262    pub fn thumb_size(&mut self) -> f32 {
263        unsafe {
264            ::unity::il2cpp_call!((::unity::module_base()+0x3c53950usize)as*mut u8,f32;
265(*mut SliderHandler)self as*mut SliderHandler)
266        }
267    }
268
269    #[doc = "`MaxValue()` overload"]
270    pub fn max_value(&mut self) -> f32 {
271        unsafe {
272            ::unity::il2cpp_call!((::unity::module_base()+0x3c53280usize)as*mut u8,f32;
273(*mut SliderHandler)self as*mut SliderHandler)
274        }
275    }
276
277    #[doc = "`MinValue()` overload"]
278    pub fn min_value(&mut self) -> f32 {
279        unsafe {
280            ::unity::il2cpp_call!((::unity::module_base()+0x3c53270usize)as*mut u8,f32;
281(*mut SliderHandler)self as*mut SliderHandler)
282        }
283    }
284}
285
286#[cfg(feature = "unity_engine-sliderhandler")]
287impl SliderHandler {
288    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
290    }
291
292    pub fn handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
294    }
295
296    pub fn on_mouse_down_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
298    }
299
300    pub fn on_mouse_drag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
302    }
303
304    pub fn on_mouse_up_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
306    }
307
308    pub fn on_repaint_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
310    }
311
312    pub fn current_event_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
314    }
315
316    pub fn current_scroll_trough_side_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
318    }
319
320    pub fn is_empty_slider_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
322    }
323
324    pub fn supports_page_movements_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
326    }
327
328    pub fn page_movement_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
330    }
331
332    pub fn page_up_movement_bound_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
334    }
335
336    pub fn current_event_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
338    }
339
340    pub fn value_for_current_mouse_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
342    }
343
344    pub fn clamp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
346    }
347
348    pub fn thumb_selection_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
350    }
351
352    pub fn start_dragging_with_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
354    }
355
356    pub fn slider_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
358    }
359
360    pub fn thumb_ext_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
362    }
363
364    pub fn thumb_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
366    }
367
368    pub fn vertical_thumb_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
370    }
371
372    pub fn horizontal_thumb_rect_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
374    }
375
376    pub fn clamped_current_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
378    }
379
380    pub fn mouse_position_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
382    }
383
384    pub fn values_per_pixel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
386    }
387
388    pub fn thumb_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
390    }
391
392    pub fn max_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
394    }
395
396    pub fn min_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
398    }
399}
400
401#[cfg(feature = "unity_engine-sliderhandler")]
402#[doc(hidden)]
403pub mod prelude {
404    pub use super::SliderHandler;
405    #[cfg(feature = "system-object")]
406    pub use crate::system::object::IObjectMethods;
407    #[cfg(feature = "system-valuetype")]
408    pub use crate::system::valuetype::IValueTypeMethods;
409    pub use crate::system::{object::IObject, valuetype::IValueType};
410}