pub struct AnyScrollActivity { /* private fields */ }Expand description
Erased ScrollActivity: what a field or parameter Dart types as ScrollActivity
becomes.
Equality is Dart’s == on an object reference.
Implementations§
Source§impl AnyScrollActivity
impl AnyScrollActivity
Sourcepub fn upgrade(self, app: &App) -> Option<Retained<AnyScrollActivity>>
pub fn upgrade(self, app: &App) -> Option<Retained<AnyScrollActivity>>
A reference while something still keeps the object, None once it is freed or
its last keeper has let go; see Handle::upgrade.
Sourcepub fn keep(self, app: &App) -> Retained<AnyScrollActivity>
pub fn keep(self, app: &App) -> Retained<AnyScrollActivity>
A reference to an object something is known to keep; see
Handle::keep.
Source§impl AnyScrollActivity
impl AnyScrollActivity
Sourcepub fn delegate(self, app: &App) -> AnyScrollActivityDelegate
pub fn delegate(self, app: &App) -> AnyScrollActivityDelegate
Sourcepub fn is_disposed(self, app: &App) -> bool
pub fn is_disposed(self, app: &App) -> bool
Sourcepub fn update_delegate(self, app: &mut App, value: AnyScrollActivityDelegate)
pub fn update_delegate(self, app: &mut App, value: AnyScrollActivityDelegate)
Sourcepub fn reset_activity(self, app: &mut App)
pub fn reset_activity(self, app: &mut App)
Sourcepub fn dispatch_scroll_start_notification(
self,
app: &mut App,
metrics: Rc<dyn ScrollMetrics>,
context: Option<BuildContext>,
)
pub fn dispatch_scroll_start_notification( self, app: &mut App, metrics: Rc<dyn ScrollMetrics>, context: Option<BuildContext>, )
Sourcepub fn dispatch_scroll_update_notification(
self,
app: &mut App,
metrics: Rc<dyn ScrollMetrics>,
context: BuildContext,
scroll_delta: f64,
)
pub fn dispatch_scroll_update_notification( self, app: &mut App, metrics: Rc<dyn ScrollMetrics>, context: BuildContext, scroll_delta: f64, )
Sourcepub fn dispatch_overscroll_notification(
self,
app: &mut App,
metrics: Rc<dyn ScrollMetrics>,
context: BuildContext,
overscroll: f64,
)
pub fn dispatch_overscroll_notification( self, app: &mut App, metrics: Rc<dyn ScrollMetrics>, context: BuildContext, overscroll: f64, )
Sourcepub fn dispatch_scroll_end_notification(
self,
app: &mut App,
metrics: Rc<dyn ScrollMetrics>,
context: BuildContext,
)
pub fn dispatch_scroll_end_notification( self, app: &mut App, metrics: Rc<dyn ScrollMetrics>, context: BuildContext, )
Sourcepub fn apply_new_dimensions(self, app: &mut App)
pub fn apply_new_dimensions(self, app: &mut App)
Sourcepub fn should_ignore_pointer(self, app: &App) -> bool
pub fn should_ignore_pointer(self, app: &App) -> bool
Sourcepub fn is_scrolling(self, app: &App) -> bool
pub fn is_scrolling(self, app: &App) -> bool
Sourcepub fn as_hold_controller(self) -> Option<Rc<dyn ScrollHoldController>>
pub fn as_hold_controller(self) -> Option<Rc<dyn ScrollHoldController>>
Dart’s activity is ScrollHoldController.
Trait Implementations§
Source§impl Clone for AnyScrollActivity
impl Clone for AnyScrollActivity
impl Copy for AnyScrollActivity
impl Eq for AnyScrollActivity
Source§impl From<AnyScrollActivity> for HandleId
impl From<AnyScrollActivity> for HandleId
Source§fn from(handle: AnyScrollActivity) -> HandleId
fn from(handle: AnyScrollActivity) -> HandleId
Converts to this type from the input type.
Source§impl<Leaf: ScrollActivity> From<Handle<Leaf>> for AnyScrollActivity
impl<Leaf: ScrollActivity> From<Handle<Leaf>> for AnyScrollActivity
Source§fn from(handle: Handle<Leaf>) -> AnyScrollActivity
fn from(handle: Handle<Leaf>) -> AnyScrollActivity
Converts to this type from the input type.
Source§impl Hash for AnyScrollActivity
impl Hash for AnyScrollActivity
Source§impl PartialEq for AnyScrollActivity
impl PartialEq for AnyScrollActivity
Source§impl PartialEq<AnyScrollActivity> for &Retained<AnyScrollActivity>
impl PartialEq<AnyScrollActivity> for &Retained<AnyScrollActivity>
Auto Trait Implementations§
impl Forget for AnyScrollActivity
impl Freeze for AnyScrollActivity
impl Move for AnyScrollActivity
impl RefUnwindSafe for AnyScrollActivity
impl Send for AnyScrollActivity
impl Sync for AnyScrollActivity
impl Unpin for AnyScrollActivity
impl UnsafeUnpin for AnyScrollActivitywhere
NonZeroU32Inner: UnsafeUnpin,
&'static ScrollActivityVTable: UnsafeUnpin,
impl UnwindSafe for AnyScrollActivity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.