fyodor 0.4.0

Double buffered terminal renderer for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod core_impl;
pub mod dbox;
pub mod extended_impl;
pub mod multiline;
pub mod styled;

use crate::{canvas::CanvasLike, layout::Pos};

pub trait Drawable {
    type X;
    type Y;

    fn draw(&self, pos: impl Into<Pos<Self::X, Self::Y>>, frame: &mut impl CanvasLike);
}