pub struct DefaultSliderInputHandler;Expand description
Default implementation of SliderInputHandler
Trait Implementations§
Source§impl Clone for DefaultSliderInputHandler
impl Clone for DefaultSliderInputHandler
Source§fn clone(&self) -> DefaultSliderInputHandler
fn clone(&self) -> DefaultSliderInputHandler
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 DefaultSliderInputHandler
impl Debug for DefaultSliderInputHandler
Source§impl Default for DefaultSliderInputHandler
impl Default for DefaultSliderInputHandler
Source§fn default() -> DefaultSliderInputHandler
fn default() -> DefaultSliderInputHandler
Returns the “default value” for a type. Read more
Source§impl SliderInputHandler for DefaultSliderInputHandler
impl SliderInputHandler for DefaultSliderInputHandler
fn hit_test( &self, handle_center: (f64, f64), handle_radius: f64, mouse_pos: (f64, f64), ) -> bool
fn mouse_to_value( &self, mouse_x: f64, track_x: f64, track_width: f64, min: f64, max: f64, ) -> f64
fn scroll_to_delta(&self, scroll_delta: f64, min: f64, max: f64) -> f64
fn is_on_track(&self, mouse_pos: (f64, f64), track_rect: &Rect) -> bool
impl Copy for DefaultSliderInputHandler
Auto Trait Implementations§
impl Freeze for DefaultSliderInputHandler
impl RefUnwindSafe for DefaultSliderInputHandler
impl Send for DefaultSliderInputHandler
impl Sync for DefaultSliderInputHandler
impl Unpin for DefaultSliderInputHandler
impl UnsafeUnpin for DefaultSliderInputHandler
impl UnwindSafe for DefaultSliderInputHandler
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