#[repr(C)]pub struct UiSliderData {
pub button_center: Vec2,
pub finger_offset: f32,
pub focus_state: BtnState,
pub active_state: BtnState,
pub interactor: i32,
}
Expand description
Visual properties of a slider behavior. https://stereokit.net/Pages/StereoKit/UISliderData.html
Fields§
The center location of where the slider’s interactionelement is.
finger_offset: f32
The current distance of the finger, within the pressable volume of the slider, from the bottom of the slider
focus_state: BtnState
This is the current frame’s “focus” state for the button.
active_state: BtnState
This is the current frame’s “active” state for the button.
interactor: i32
The interactor that is currently driving the activity or focus of the slider. Or -1 if there is no interaction.
Trait Implementations§
Source§impl Clone for UiSliderData
impl Clone for UiSliderData
Source§fn clone(&self) -> UiSliderData
fn clone(&self) -> UiSliderData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UiSliderData
impl Debug for UiSliderData
Source§impl Default for UiSliderData
impl Default for UiSliderData
Source§fn default() -> UiSliderData
fn default() -> UiSliderData
Returns the “default value” for a type. Read more
impl Copy for UiSliderData
Auto Trait Implementations§
impl Freeze for UiSliderData
impl RefUnwindSafe for UiSliderData
impl Send for UiSliderData
impl Sync for UiSliderData
impl Unpin for UiSliderData
impl UnwindSafe for UiSliderData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.