IProgressPageTransition
trait · ferroui-base · v0.5.0
trait IProgressPageTransition: IPageTransition
An IPageTransition that supports progress-driven updates, for
example while the user drags between pages.
Transitions implementing this interface publish everything they need through the visual's properties and its render transform.
Members
update
fn update(self: &Self, progress: f64, from: Option<&Ref<Visual>>, to: Option<&Ref<Visual>>, forward: bool, page_length: f64, visible_items: &[PageTransitionItem])
Updates the transition to reflect the specified progress.
progress is the normalized progress from 0 to 1; from and to
are the source and target visuals; forward the direction;
page_length the size of a page along the transition axis, and
visible_items the currently visible realized pages, if more than
one page is visible.
reset
fn reset(self: &Self, visual: &Ref<Visual>)
Resets any visual state applied to the given visual by this transition.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.