pub struct ScrollContainerCtx<'a> {
pub store: &'a NodeStore,
pub node: NodeId,
pub viewport: (f32, f32),
pub offset: (f32, f32),
pub max_offset: (f32, f32),
pub allow_axes: (bool, bool),
pub overscroll_behavior: (OverscrollBehavior, OverscrollBehavior),
pub bounce_requested: bool,
}Expand description
Read-only per-container context passed to ScrollPhysicsEngine::on_scroll_delta during
nested ancestor scroll chaining.
Fields§
§store: &'a NodeStore§node: NodeId§viewport: (f32, f32)§offset: (f32, f32)§max_offset: (f32, f32)§allow_axes: (bool, bool)§overscroll_behavior: (OverscrollBehavior, OverscrollBehavior)§bounce_requested: boolTrait Implementations§
Source§impl<'a> Clone for ScrollContainerCtx<'a>
impl<'a> Clone for ScrollContainerCtx<'a>
impl<'a> Copy for ScrollContainerCtx<'a>
Auto Trait Implementations§
impl<'a> Forget for ScrollContainerCtx<'a>
impl<'a> Freeze for ScrollContainerCtx<'a>
impl<'a> Move for ScrollContainerCtx<'a>
impl<'a> RefUnwindSafe for ScrollContainerCtx<'a>
impl<'a> Send for ScrollContainerCtx<'a>
impl<'a> Sync for ScrollContainerCtx<'a>
impl<'a> Unpin for ScrollContainerCtx<'a>
impl<'a> UnsafeUnpin for ScrollContainerCtx<'a>where
&'a NodeStore: UnsafeUnpin,
impl<'a> UnwindSafe for ScrollContainerCtx<'a>where
&'a NodeStore: UnwindSafe,
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