Struct alacritty::display::bell::VisualBell [−][src]
pub struct VisualBell {
animation: BellAnimation,
duration: Duration,
start_time: Option<Instant>,
}Fields
animation: BellAnimationVisual bell animation.
duration: DurationVisual bell duration.
start_time: Option<Instant>The last time the visual bell rang, if at all.
Implementations
Get the currently intensity of the visual bell. The bell’s intensity ramps down from 1.0 to 0.0 at a rate determined by the bell’s duration.
Check whether or not the visual bell has completed “ringing”.
Get the intensity of the visual bell at a particular instant. The bell’s intensity ramps down from 1.0 to 0.0 at a rate determined by the bell’s duration.
Trait Implementations
Performs the conversion.