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 (const: unstable) · 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§fn eq(&self, other: &ScrollPosition) -> bool
fn eq(&self, other: &ScrollPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.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 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