pub struct ScrollPosition {
pub absolute_x: f32,
pub absolute_y: f32,
pub relative_x: f32,
pub relative_y: f32,
pub bounds_width: f32,
pub bounds_height: f32,
pub content_width: f32,
pub content_height: f32,
}Expand description
Viewport state from a scrollable widget’s “scrolled” event.
Reports where the scrollable viewport ended up after scrolling.
Distinct from PointerScroll which reports raw wheel input.
Fields§
§absolute_x: f32Absolute x.
absolute_y: f32Absolute y.
relative_x: f32Relative x.
relative_y: f32Relative y.
bounds_width: f32Bounds width.
bounds_height: f32Bounds height.
content_width: f32Content width.
content_height: f32Content height.
Trait Implementations§
Source§impl Clone for ScrollPosition
impl Clone for ScrollPosition
Source§fn clone(&self) -> ScrollPosition
fn clone(&self) -> ScrollPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ScrollPosition
impl RefUnwindSafe for ScrollPosition
impl Send for ScrollPosition
impl Sync for ScrollPosition
impl Unpin for ScrollPosition
impl UnsafeUnpin for ScrollPosition
impl UnwindSafe for ScrollPosition
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