pub struct ScrollNodeInfo {
pub current_offset: LogicalPosition,
pub container_rect: LogicalRect,
pub content_rect: LogicalRect,
pub max_scroll_x: f32,
pub max_scroll_y: f32,
pub overscroll_behavior_x: OverscrollBehavior,
pub overscroll_behavior_y: OverscrollBehavior,
pub overflow_scrolling: OverflowScrolling,
}Expand description
Read-only snapshot of a scroll node’s state, returned by CallbackInfo queries.
Provides all the information a timer callback needs to compute scroll physics without requiring mutable access to the ScrollManager.
Fields§
§current_offset: LogicalPositionCurrent scroll offset
container_rect: LogicalRectContainer (viewport) bounds
content_rect: LogicalRectContent bounds (total scrollable area)
max_scroll_x: f32Maximum scroll in X direction
max_scroll_y: f32Maximum scroll in Y direction
overscroll_behavior_x: OverscrollBehaviorPer-node overscroll behavior for X axis
overscroll_behavior_y: OverscrollBehaviorPer-node overscroll behavior for Y axis
overflow_scrolling: OverflowScrollingPer-node overflow scrolling mode (auto vs touch)
Trait Implementations§
Source§impl Clone for ScrollNodeInfo
impl Clone for ScrollNodeInfo
Source§fn clone(&self) -> ScrollNodeInfo
fn clone(&self) -> ScrollNodeInfo
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 moreAuto Trait Implementations§
impl Freeze for ScrollNodeInfo
impl RefUnwindSafe for ScrollNodeInfo
impl Send for ScrollNodeInfo
impl Sync for ScrollNodeInfo
impl Unpin for ScrollNodeInfo
impl UnsafeUnpin for ScrollNodeInfo
impl UnwindSafe for ScrollNodeInfo
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