Struct Zoom
pub struct Zoom;Expand description
One thing becoming another in place (a window and its overview card, a photo and its full view):
one rect spring between the two (slow in, base out, longer across the screen) and the
contents cross-fade over the middle half.
Implementations§
§impl Zoom
impl Zoom
pub const SPEC: MotionSpec
pub const OVERVIEW: MotionSpec
pub const OVERVIEW: MotionSpec
The workspace overview: every window flying from its place on its strip into the overview’s
picture of the workspace, and back. Where the windows went is the point, so a shortcut
(Super+Tab) keeps it as spatial context at fast.
pub fn radius_at(from: f64, to: f64, progress: f64) -> f64
pub fn radius_at(from: f64, to: f64, progress: f64) -> f64
A corner radius between from (0) and to (1) at progress.
pub fn fit(rest: Rect, drawn: Rect) -> Affine
pub fn fit(rest: Rect, drawn: Rect) -> Affine
The transform that draws content laid out in rest into drawn.
pub fn rect_at(from: Rect, to: Rect, progress: f64) -> Rect
pub fn rect_at(from: Rect, to: Rect, progress: f64) -> Rect
The rect between from (0) and to (1) at progress.
pub fn contents(progress: f64) -> (f32, f32)
pub fn contents(progress: f64) -> (f32, f32)
The opacities of the source and destination content at progress: the swap is over the
middle half.
pub fn timing(
from: Rect,
to: Rect,
direction: Direction,
motion: EffectiveMotion,
source: MotionSource,
) -> Timing
pub fn timing( from: Rect, to: Rect, direction: Direction, motion: EffectiveMotion, source: MotionSource, ) -> Timing
How a travel from from to to is timed: distance-aware against the larger of the two
sizes.
Auto Trait Implementations§
impl Freeze for Zoom
impl RefUnwindSafe for Zoom
impl Send for Zoom
impl Sync for Zoom
impl Unpin for Zoom
impl UnsafeUnpin for Zoom
impl UnwindSafe for Zoom
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more