pub struct EffectPlayer { /* private fields */ }Implementations§
Source§impl EffectPlayer
impl EffectPlayer
pub fn new(kind: EffectKind, text: &str) -> Self
pub fn with_config(kind: EffectKind, text: &str, config: EffectConfig) -> Self
pub fn with_accent(self, accent: Color) -> Self
pub fn with_duration(self, duration: usize) -> Self
pub fn with_size(self, width: usize, height: usize) -> Self
pub fn with_seed(self, seed: u64) -> Self
pub fn with_gradient_colors(self, colors: Vec<Color>, angle: f32) -> Self
pub fn total_frames(&self) -> usize
pub fn current_frame_index(&self) -> usize
pub fn advance(&mut self)
pub fn advance_n(&mut self, n: usize)
pub fn set_frame(&mut self, frame: usize)
pub fn progress(&self) -> f32
pub fn is_complete(&self) -> bool
pub fn render_to_buffer(&self, buffer: &mut Buffer, area: Rect)
pub fn render_frame_to_buffer( &self, frame_idx: usize, buffer: &mut Buffer, area: Rect, )
pub fn get_ansi_string(&self) -> String
pub fn kind(&self) -> EffectKind
pub fn name(&self) -> &'static str
pub fn all_kinds() -> &'static [EffectKind]
Auto Trait Implementations§
impl Freeze for EffectPlayer
impl RefUnwindSafe for EffectPlayer
impl Send for EffectPlayer
impl Sync for EffectPlayer
impl Unpin for EffectPlayer
impl UnsafeUnpin for EffectPlayer
impl UnwindSafe for EffectPlayer
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