spinners and fmt
This commit is contained in:
@@ -9,10 +9,10 @@
|
||||
//! but open animations may advertise an interactive mode so the overlay is
|
||||
//! responsive before the animation completes.
|
||||
|
||||
use crate::input::InputMode;
|
||||
use ratatui::buffer::Buffer;
|
||||
use ratatui::layout::Rect;
|
||||
use ratatui::widgets::Widget;
|
||||
use crate::input::InputMode;
|
||||
|
||||
/// Which region of the terminal an animation occupies.
|
||||
pub enum AnimationLayer {
|
||||
@@ -32,7 +32,9 @@ pub trait Animation {
|
||||
fn layer(&self) -> AnimationLayer;
|
||||
/// Which [`InputMode`] is active while this animation is running.
|
||||
/// Defaults to [`InputMode::Ignore`] (all input discarded).
|
||||
fn input_mode_during(&self) -> InputMode { InputMode::Ignore }
|
||||
fn input_mode_during(&self) -> InputMode {
|
||||
InputMode::Ignore
|
||||
}
|
||||
/// Which [`InputMode`] to enter when the animation finishes.
|
||||
fn input_mode_after(&self) -> InputMode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user