pub struct ScrollPosition {
pub scroll_frame_rect: LayoutRect,
pub parent_rect: LayoutedRectangle,
pub scroll_location: LayoutPoint,
}
Expand description
Information about a scroll frame, given to the user by the framework
Fields§
§scroll_frame_rect: LayoutRect
How big is the scroll rect (i.e. the union of all children)?
parent_rect: LayoutedRectangle
How big is the parent container (so that things like “scroll to left edge” can be implemented)?
scroll_location: LayoutPoint
Where (measured from the top left corner) is the frame currently scrolled to?
Trait Implementations§
Source§impl Clone for ScrollPosition
impl Clone for ScrollPosition
Source§fn clone(&self) -> ScrollPosition
fn clone(&self) -> ScrollPosition
Returns a copy 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 Copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)