pub struct ScrollPosition {
pub x: f64,
pub y: f64,
}Expand description
A window scroll offset.
Fields§
§x: f64Horizontal offset.
y: f64Vertical offset.
Trait Implementations§
Source§impl Clone for ScrollPosition
impl Clone for ScrollPosition
impl Copy for ScrollPosition
Source§impl Debug for ScrollPosition
impl Debug for ScrollPosition
Source§impl PartialEq for ScrollPosition
impl PartialEq for ScrollPosition
impl StructuralPartialEq for ScrollPosition
Auto 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