pub struct SliderTrack {
pub start: f32,
pub len: f32,
pub vertical: bool,
pub range: SliderRange,
pub tag: Value,
}Expand description
A slider’s track as the pointer reads it: the node’s content box along
its main axis, and the range it maps onto. Registered on the node’s
hit region when it declared on_change (HitRegion::slider).
Fields§
§start: f32Where the track starts and how long it is, logical px along its axis: the content box, so a stock slider’s padding — half its thumb — keeps the thumb’s centre under the pointer at both ends.
len: f32§vertical: boolA column slider runs bottom to top, its maximum at the top.
range: SliderRange§tag: ValueImplementations§
Trait Implementations§
Source§impl Clone for SliderTrack
impl Clone for SliderTrack
Source§impl Debug for SliderTrack
impl Debug for SliderTrack
Source§impl PartialEq for SliderTrack
impl PartialEq for SliderTrack
impl StructuralPartialEq for SliderTrack
Auto Trait Implementations§
impl Freeze for SliderTrack
impl RefUnwindSafe for SliderTrack
impl Send for SliderTrack
impl Sync for SliderTrack
impl Unpin for SliderTrack
impl UnsafeUnpin for SliderTrack
impl UnwindSafe for SliderTrack
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