pub struct ScrollbarState {
pub dragging_thumb: bool,
pub drag_start_pointer: Px,
pub drag_start_offset: Px,
pub drag_baseline_viewport: Option<Px>,
pub drag_baseline_content: Option<Px>,
pub hovered: bool,
}Expand description
Cross-frame element-local state for scrollbars.
Fields§
§dragging_thumb: bool§drag_start_pointer: Px§drag_start_offset: Px§drag_baseline_viewport: Option<Px>§drag_baseline_content: Option<Px>§hovered: boolTrait Implementations§
Source§impl Clone for ScrollbarState
impl Clone for ScrollbarState
Source§fn clone(&self) -> ScrollbarState
fn clone(&self) -> ScrollbarState
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 ScrollbarState
impl Debug for ScrollbarState
Source§impl Default for ScrollbarState
impl Default for ScrollbarState
Source§fn default() -> ScrollbarState
fn default() -> ScrollbarState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScrollbarState
impl RefUnwindSafe for ScrollbarState
impl Send for ScrollbarState
impl Sync for ScrollbarState
impl Unpin for ScrollbarState
impl UnsafeUnpin for ScrollbarState
impl UnwindSafe for ScrollbarState
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