pub struct Offset {
pub x: f32,
pub y: f32,
}Expand description
How far a scroller’s content has travelled, in logical pixels. Positive
moves the content up / left, i.e. y is “how far down the content we are”.
Fields§
§x: f32§y: f32Implementations§
Trait Implementations§
impl Copy for Offset
impl StructuralPartialEq for Offset
Auto Trait Implementations§
impl Freeze for Offset
impl RefUnwindSafe for Offset
impl Send for Offset
impl Sync for Offset
impl Unpin for Offset
impl UnsafeUnpin for Offset
impl UnwindSafe for Offset
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