pub struct EffectArgs {Show 13 fields
pub effect: Option<String>,
pub duration: Option<String>,
pub origin: Option<String>,
pub angle: Option<f32>,
pub direction: Option<String>,
pub easing: Option<Easing>,
pub from: Option<f32>,
pub to: Option<f32>,
pub frequency: Option<f32>,
pub amplitude: Option<f32>,
pub speed: Option<f32>,
pub softness: Option<f32>,
pub scale: Option<f32>,
}Expand description
Transition + customization flags shared by img / set / preview.
Fields§
§effect: Option<String>Transition effect: simple, fade, blur, wipe, slide, left, right, top, bottom, zoom, pixelate, ripple, dissolve, wave, grow, center, outer, any, random
duration: Option<String>Transition duration, for example 800ms, 1s, or 1.2s
origin: Option<String>Effect origin: a preset (top_left, top, top_right, left, center, right, bottom_left, bottom, bottom_right) or a normalized “x,y” (0..1)
angle: Option<f32>Wipe/wave travel angle in degrees (0 = right, 90 = up)
direction: Option<String>Wipe/slide direction vector “x,y” (e.g. “1,0” for left-to-right)
easing: Option<Easing>Easing curve: linear, ease_in, ease_out, ease_in_out
from: Option<f32>Start value (fade opacity, blur radius, zoom scale, pixelate size)
to: Option<f32>End value (fade opacity, blur radius, zoom scale, pixelate size)
frequency: Option<f32>Wave/ripple frequency
amplitude: Option<f32>Wave/ripple amplitude
speed: Option<f32>Ripple expansion speed
softness: Option<f32>Wipe feather / dissolve edge softness
scale: Option<f32>Dissolve noise scale
Implementations§
Source§impl EffectArgs
impl EffectArgs
Sourcepub fn to_effect(&self, fallback: Effect) -> Effect
pub fn to_effect(&self, fallback: Effect) -> Effect
Build an Effect from --effect <name> + all override flags.
Falls back to fallback when no effect name is given.
pub fn to_overrides(&self) -> EffectOverrides
Trait Implementations§
Source§impl Args for EffectArgs
impl Args for EffectArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for EffectArgs
impl Clone for EffectArgs
Source§fn clone(&self) -> EffectArgs
fn clone(&self) -> EffectArgs
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EffectArgs
impl Debug for EffectArgs
Source§impl Default for EffectArgs
impl Default for EffectArgs
Source§fn default() -> EffectArgs
fn default() -> EffectArgs
Source§impl FromArgMatches for EffectArgs
impl FromArgMatches for EffectArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for EffectArgs
impl RefUnwindSafe for EffectArgs
impl Send for EffectArgs
impl Sync for EffectArgs
impl Unpin for EffectArgs
impl UnsafeUnpin for EffectArgs
impl UnwindSafe for EffectArgs
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<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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.