pub struct ScrollPosition {
pub parent_rect: LogicalRect,
pub children_rect: LogicalRect,
}Expand description
Information about a scroll frame, given to the user by the framework
Fields§
§parent_rect: LogicalRectHow big is the parent container (so that things like “scroll to left edge” can be implemented)?
children_rect: LogicalRectHow big is the scroll rect (i.e. the union of all children)?
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 · 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 ScrollPosition
impl Debug for ScrollPosition
Source§impl PartialEq for ScrollPosition
impl PartialEq for ScrollPosition
Source§impl PartialOrd for ScrollPosition
impl PartialOrd 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more