pub struct FixedViewportOffset { /* private fields */ }Expand description
A ViewportOffset whose pixels value does not change unless
the viewport issues a correction.
Flutter’s private _FixedViewportOffset, reached through the ViewportOffset.fixed and
ViewportOffset.zero factories.
Implementations§
Source§impl FixedViewportOffset
impl FixedViewportOffset
Trait Implementations§
Source§impl ChangeNotifier for FixedViewportOffset
impl ChangeNotifier for FixedViewportOffset
fn change_notifier_data(&self) -> &ChangeNotifierData
fn change_notifier_data_mut(&mut self) -> &mut ChangeNotifierData
Source§fn will_add_listener(self: Handle<Self>, app: &mut App)
fn will_add_listener(self: Handle<Self>, app: &mut App)
Runs before the listener is stored. Dart overrides of
addListener that
work before super.addListener go here.Source§fn did_remove_listener(self: Handle<Self>, app: &mut App)
fn did_remove_listener(self: Handle<Self>, app: &mut App)
Runs after the listener is removed. Dart overrides of
removeListener that
work after super.removeListener go here.Source§impl Debug for FixedViewportOffset
impl Debug for FixedViewportOffset
Source§impl Default for FixedViewportOffset
impl Default for FixedViewportOffset
Source§impl ViewportOffset for FixedViewportOffset
impl ViewportOffset for FixedViewportOffset
Source§fn pixels(self: Handle<Self>, app: &App) -> f64
fn pixels(self: Handle<Self>, app: &App) -> f64
The number of pixels to offset the children in the opposite of the axis direction. Read more
Source§fn has_pixels(self: Handle<Self>, _app: &App) -> bool
fn has_pixels(self: Handle<Self>, _app: &App) -> bool
Whether the
pixels property is available.Source§fn apply_viewport_dimension(
self: Handle<Self>,
_app: &mut App,
_viewport_dimension: f64,
) -> bool
fn apply_viewport_dimension( self: Handle<Self>, _app: &mut App, _viewport_dimension: f64, ) -> bool
Called when the viewport’s extents are established. Read more
Source§fn apply_content_dimensions(
self: Handle<Self>,
_app: &mut App,
_min_scroll_extent: f64,
_max_scroll_extent: f64,
) -> bool
fn apply_content_dimensions( self: Handle<Self>, _app: &mut App, _min_scroll_extent: f64, _max_scroll_extent: f64, ) -> bool
Called when the viewport’s content extents are established. Read more
Source§fn correct_by(self: Handle<Self>, app: &mut App, correction: f64)
fn correct_by(self: Handle<Self>, app: &mut App, correction: f64)
Apply a layout-time correction to the scroll offset. Read more
Source§fn animate_to(
self: Handle<Self>,
_app: &mut App,
_to: f64,
_duration: Duration,
_curve: Rc<dyn Curve>,
) -> CompleterFuture<()> ⓘ
fn animate_to( self: Handle<Self>, _app: &mut App, _to: f64, _duration: Duration, _curve: Rc<dyn Curve>, ) -> CompleterFuture<()> ⓘ
Source§fn user_scroll_direction(self: Handle<Self>, _app: &App) -> ScrollDirection
fn user_scroll_direction(self: Handle<Self>, _app: &App) -> ScrollDirection
Source§fn allow_implicit_scrolling(self: Handle<Self>, _app: &App) -> bool
fn allow_implicit_scrolling(self: Handle<Self>, _app: &App) -> bool
Whether a viewport is allowed to change
pixels implicitly to respond
to a call to crate::RenderObject::show_on_screen. Read moreSource§fn move_to(
self: Handle<Self>,
app: &mut App,
to: f64,
duration: Option<Duration>,
curve: Option<Rc<dyn Curve>>,
clamp: Option<bool>,
) -> CompleterFuture<()> ⓘ
fn move_to( self: Handle<Self>, app: &mut App, to: f64, duration: Option<Duration>, curve: Option<Rc<dyn Curve>>, clamp: Option<bool>, ) -> CompleterFuture<()> ⓘ
Source§fn as_viewport_offset(self: Handle<Self>) -> AnyViewportOffset
fn as_viewport_offset(self: Handle<Self>) -> AnyViewportOffset
The type-erased
ViewportOffset handle. Free: the vtable is a const, and the id is
copied.Auto Trait Implementations§
impl !RefUnwindSafe for FixedViewportOffset
impl !Send for FixedViewportOffset
impl !Sync for FixedViewportOffset
impl !UnwindSafe for FixedViewportOffset
impl Freeze for FixedViewportOffset
impl Unpin for FixedViewportOffset
impl UnsafeUnpin for FixedViewportOffset
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