pub struct TransitionToImage<P: FilterParam = f32> {
pub target: FilterImage,
pub progress: P,
pub softness: P,
}Expand description
Transitions from the input image to a target image.
Fields§
§target: FilterImageTarget image revealed by the transition.
progress: PTransition progress from 0.0 to 1.0.
softness: PFeathering amount around the transition boundary.
Trait Implementations§
Source§impl<P: Clone + FilterParam> Clone for TransitionToImage<P>
impl<P: Clone + FilterParam> Clone for TransitionToImage<P>
Source§fn clone(&self) -> TransitionToImage<P>
fn clone(&self) -> TransitionToImage<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug + FilterParam> Debug for TransitionToImage<P>
impl<P: Debug + FilterParam> Debug for TransitionToImage<P>
Source§impl<P: FilterParam> MultiInputOperation for TransitionToImage<P>
impl<P: FilterParam> MultiInputOperation for TransitionToImage<P>
Source§const AUX_IMAGE_COUNT: usize = 1
const AUX_IMAGE_COUNT: usize = 1
Number of auxiliary images required by the operation.
Source§const ANIMATED_PARAM_COUNT: usize = 2
const ANIMATED_PARAM_COUNT: usize = 2
Number of animatable scalar parameters the operation exposes.
Source§fn aux_image(&self, index: usize) -> &FilterImage
fn aux_image(&self, index: usize) -> &FilterImage
Returns the auxiliary image bound at the given slot.
Source§fn visit_params<V: SignalVisitor>(&self, visitor: &mut V)
fn visit_params<V: SignalVisitor>(&self, visitor: &mut V)
Visits each animatable parameter with its stable index
(
0..ANIMATED_PARAM_COUNT), in the order write_params consumes
animated.Auto Trait Implementations§
impl<P> Freeze for TransitionToImage<P>where
P: Freeze,
impl<P> RefUnwindSafe for TransitionToImage<P>where
P: RefUnwindSafe,
impl<P> Send for TransitionToImage<P>where
P: Send,
impl<P> Sync for TransitionToImage<P>where
P: Sync,
impl<P> Unpin for TransitionToImage<P>where
P: Unpin,
impl<P> UnsafeUnpin for TransitionToImage<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for TransitionToImage<P>where
P: UnwindSafe,
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