pub struct AnyViewportOffset { /* private fields */ }Expand description
Erased ViewportOffset: what a field or parameter Dart types as ViewportOffset becomes.
Equality is Dart’s == on an object reference.
Implementations§
Source§impl AnyViewportOffset
impl AnyViewportOffset
Sourcepub fn has_pixels(self, app: &App) -> bool
pub fn has_pixels(self, app: &App) -> bool
Sourcepub fn apply_viewport_dimension(
self,
app: &mut App,
viewport_dimension: f64,
) -> bool
pub fn apply_viewport_dimension( self, app: &mut App, viewport_dimension: f64, ) -> bool
Sourcepub fn apply_content_dimensions(
self,
app: &mut App,
min_scroll_extent: f64,
max_scroll_extent: f64,
) -> bool
pub fn apply_content_dimensions( self, app: &mut App, min_scroll_extent: f64, max_scroll_extent: f64, ) -> bool
Sourcepub fn correct_by(self, app: &mut App, correction: f64)
pub fn correct_by(self, app: &mut App, correction: f64)
Sourcepub fn animate_to(
self,
app: &mut App,
to: f64,
duration: Duration,
curve: Rc<dyn Curve>,
) -> CompleterFuture<()> ⓘ
pub fn animate_to( self, app: &mut App, to: f64, duration: Duration, curve: Rc<dyn Curve>, ) -> CompleterFuture<()> ⓘ
Sourcepub fn move_to(
self,
app: &mut App,
to: f64,
duration: Option<Duration>,
curve: Option<Rc<dyn Curve>>,
clamp: Option<bool>,
) -> CompleterFuture<()> ⓘ
pub fn move_to( self, app: &mut App, to: f64, duration: Option<Duration>, curve: Option<Rc<dyn Curve>>, clamp: Option<bool>, ) -> CompleterFuture<()> ⓘ
Sourcepub fn user_scroll_direction(self, app: &App) -> ScrollDirection
pub fn user_scroll_direction(self, app: &App) -> ScrollDirection
Sourcepub fn allow_implicit_scrolling(self, app: &App) -> bool
pub fn allow_implicit_scrolling(self, app: &App) -> bool
Trait Implementations§
Source§impl Clone for AnyViewportOffset
impl Clone for AnyViewportOffset
impl Copy for AnyViewportOffset
Source§impl Debug for AnyViewportOffset
impl Debug for AnyViewportOffset
impl Eq for AnyViewportOffset
Source§impl Hash for AnyViewportOffset
impl Hash for AnyViewportOffset
Source§impl Listenable for AnyViewportOffset
impl Listenable for AnyViewportOffset
Source§fn add_listener(&self, app: &mut App, listener: Listener)
fn add_listener(&self, app: &mut App, listener: Listener)
Register a closure to be called when the object notifies its listeners.
Source§fn remove_listener(&self, app: &mut App, listener: &Listener)
fn remove_listener(&self, app: &mut App, listener: &Listener)
Remove a previously registered closure from the list of closures that the
object notifies.
Auto Trait Implementations§
impl Freeze for AnyViewportOffset
impl RefUnwindSafe for AnyViewportOffset
impl Send for AnyViewportOffset
impl Sync for AnyViewportOffset
impl Unpin for AnyViewportOffset
impl UnsafeUnpin for AnyViewportOffset
impl UnwindSafe for AnyViewportOffset
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§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.