pub struct Scroll {
pub axis: ScrollAxis,
pub flags: ScrollFlags,
pub range: Option<ScrollRange>,
pub position: Option<ScrollPosition>,
}Expand description
Scroll semantics of a node that scrolls: the axis, whether it can scroll back toward the start of its content and forward toward its end from where it is, and, where the platform reports them, the range its content spans and the part of that range inside its viewport, both in the range’s unit.
Fields§
§axis: ScrollAxis§flags: ScrollFlags§range: Option<ScrollRange>The range the content spans, when the platform reports one.
position: Option<ScrollPosition>The part of range inside the viewport, when known; never present
without a range.
Trait Implementations§
impl Copy for Scroll
impl Eq for Scroll
impl StructuralPartialEq for Scroll
Auto Trait Implementations§
impl Freeze for Scroll
impl RefUnwindSafe for Scroll
impl Send for Scroll
impl Sync for Scroll
impl Unpin for Scroll
impl UnsafeUnpin for Scroll
impl UnwindSafe for Scroll
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