pub struct EffectArgs {
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 softness: Option<f32>,
}Expand description
transition options for wallpaper changes.
Fields§
§effect: Option<String>transition effect: fade, wipe, slide, wave, grow, outer (plus aliases: simple, left, right, top, bottom, center, any, random)
duration: Option<String>transition duration (e.g. 700ms, 1s, 1.2s)
origin: Option<String>effect origin: preset (top_left, top, top_right, left, center, right, bottom_left, bottom, bottom_right) or “x,y” (0..1)
angle: Option<f32>angle for wipe/slide in degrees (0 = right-to-left, 90 = top-to-bottom, 270 = bottom-to-top)
direction: Option<String>direction vector “x,y” (e.g. “1,0” or “-1,0”)
easing: Option<Easing>easing curve: linear, ease_in, ease_out, ease_in_out, bezier
from: Option<f32>initial parameter value (fade opacity)
to: Option<f32>target parameter value (fade opacity)
frequency: Option<f32>wave frequency in hz
amplitude: Option<f32>wave amplitude
softness: Option<f32>wipe feather softness (0.01 - 0.5)
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§impl Debug for EffectArgs
impl Debug for EffectArgs
Source§impl Default for EffectArgs
impl Default for 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.