pub struct ScrollbarMetrics {
pub thumb_pos: f32,
pub thumb_size: f32,
}Expand description
Fractional position and size of a scrollbar thumb within its track.
Fields§
§thumb_pos: f32Thumb position as a fraction of the available track space (0.0–1.0).
thumb_size: f32Thumb size as a fraction of the total track length (0.0–1.0).
Implementations§
Auto Trait Implementations§
impl Freeze for ScrollbarMetrics
impl RefUnwindSafe for ScrollbarMetrics
impl Send for ScrollbarMetrics
impl Sync for ScrollbarMetrics
impl Unpin for ScrollbarMetrics
impl UnsafeUnpin for ScrollbarMetrics
impl UnwindSafe for ScrollbarMetrics
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