refactor: separate Render from Handle

This commit is contained in:
🪞👃🪞 2024-06-22 10:15:14 +03:00
parent d9b3bd150e
commit 72ead536be
12 changed files with 255 additions and 212 deletions

View file

@ -1,44 +1,15 @@
pub type Usually<T> = Result<T, Box<dyn Error>>;
pub use crate::draw::*;
pub use crate::device::{
Device,
DynamicDevice,
AppEvent,
};
pub use crate::device::*;
pub use crate::time::*;
pub use crate::layout::{
Row,
Column,
FocusRow,
FocusColumn,
Focus,
FocusEvent,
handle_focus,
draw_box,
draw_box_styled,
draw_row,
draw_column,
};
pub use crate::port::*;
pub use crate::layout::*;
pub use std::error::Error;
pub use std::io::{
stdout,
Stdout,
Write
};
pub use std::thread::{
spawn,
JoinHandle
};
pub use std::io::{stdout, Stdout, Write};
pub use std::thread::{spawn, JoinHandle};
pub use std::time::Duration;
pub use std::sync::{
Arc,
Mutex,