pub struct SliderInputResult {
pub changed: bool,
pub value: f64,
pub hovered: bool,
pub dragging: bool,
pub interaction: WidgetInteraction,
}Expand description
Slider input result
Fields§
§changed: boolWhether value changed
value: f64New value (normalized 0.0 - 1.0)
hovered: boolWhether slider is hovered
dragging: boolWhether slider handle is being dragged
interaction: WidgetInteractionCurrent interaction state
Trait Implementations§
Source§impl Clone for SliderInputResult
impl Clone for SliderInputResult
Source§fn clone(&self) -> SliderInputResult
fn clone(&self) -> SliderInputResult
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 SliderInputResult
impl Debug for SliderInputResult
Source§impl Default for SliderInputResult
impl Default for SliderInputResult
Source§fn default() -> SliderInputResult
fn default() -> SliderInputResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SliderInputResult
impl RefUnwindSafe for SliderInputResult
impl Send for SliderInputResult
impl Sync for SliderInputResult
impl Unpin for SliderInputResult
impl UnsafeUnpin for SliderInputResult
impl UnwindSafe for SliderInputResult
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