pub struct ScrollbarRegion {
pub key: Key,
pub axis: ScrollAxis,
pub thumb: Rect,
pub track: Rect,
pub bar_len: f32,
pub max: f32,
pub inert: bool,
/* private fields */
}Expand description
One scrollbar drawn this frame (logical coordinates), for thumb dragging
and track jumps. Rebuilt by finish_frame alongside the indicator quads.
Fields§
§key: Key§axis: ScrollAxis§thumb: RectThe thumb as drawn.
track: RectThe full track strip (the grabbable gutter).
bar_len: f32Thumb length along the axis.
max: f32The container’s max scroll offset on this axis.
inert: boolBehind a modal: drawn, but not grabbable.
Trait Implementations§
Source§impl Clone for ScrollbarRegion
impl Clone for ScrollbarRegion
impl Copy for ScrollbarRegion
Auto Trait Implementations§
impl Freeze for ScrollbarRegion
impl RefUnwindSafe for ScrollbarRegion
impl Send for ScrollbarRegion
impl Sync for ScrollbarRegion
impl Unpin for ScrollbarRegion
impl UnsafeUnpin for ScrollbarRegion
impl UnwindSafe for ScrollbarRegion
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