pub struct NestedScrollConnection {
pub on_pre_scroll: Option<PreScrollFn>,
pub on_post_scroll: Option<PostScrollFn>,
pub on_pre_fling: Option<PreScrollFn>,
pub on_post_fling: Option<PostScrollFn>,
}Fields§
§on_pre_scroll: Option<PreScrollFn>§on_post_scroll: Option<PostScrollFn>§on_pre_fling: Option<PreScrollFn>§on_post_fling: Option<PostScrollFn>Implementations§
Source§impl NestedScrollConnection
impl NestedScrollConnection
pub fn new() -> Self
pub fn on_pre_scroll( self, f: impl Fn(Vec2, NestedScrollSource) -> Vec2 + 'static, ) -> Self
pub fn on_post_scroll( self, f: impl Fn(Vec2, Vec2, NestedScrollSource) -> Vec2 + 'static, ) -> Self
pub fn on_pre_fling( self, f: impl Fn(Vec2, NestedScrollSource) -> Vec2 + 'static, ) -> Self
pub fn on_post_fling( self, f: impl Fn(Vec2, Vec2, NestedScrollSource) -> Vec2 + 'static, ) -> Self
pub fn dispatch_pre_scroll( &self, available: Vec2, source: NestedScrollSource, ) -> Vec2
pub fn dispatch_post_scroll( &self, consumed: Vec2, available: Vec2, source: NestedScrollSource, ) -> Vec2
pub fn dispatch_pre_fling( &self, available: Vec2, source: NestedScrollSource, ) -> Vec2
pub fn dispatch_post_fling( &self, consumed: Vec2, available: Vec2, source: NestedScrollSource, ) -> Vec2
pub fn then(&self, further: &Self) -> Self
Trait Implementations§
Source§impl Clone for NestedScrollConnection
impl Clone for NestedScrollConnection
Source§fn clone(&self) -> NestedScrollConnection
fn clone(&self) -> NestedScrollConnection
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 NestedScrollConnection
impl Debug for NestedScrollConnection
Source§impl Default for NestedScrollConnection
impl Default for NestedScrollConnection
Source§fn default() -> NestedScrollConnection
fn default() -> NestedScrollConnection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NestedScrollConnection
impl !Send for NestedScrollConnection
impl !Sync for NestedScrollConnection
impl !UnwindSafe for NestedScrollConnection
impl Freeze for NestedScrollConnection
impl Unpin for NestedScrollConnection
impl UnsafeUnpin for NestedScrollConnection
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