mirror of
https://github.com/mrfluffy-dev/kami.git
synced 2026-01-17 12:50:32 +00:00
refactor: refactor code layout by moving ui to another crates
This commit is contained in:
8
src/ui/app/app.rs
Normal file
8
src/ui/app/app.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use std::io;
|
||||
use tui::{backend::Backend, Frame, Terminal};
|
||||
|
||||
pub trait KamiApp {
|
||||
fn new() -> Self;
|
||||
fn run<B: Backend>(&mut self, terminal: &mut Terminal<B>) -> io::Result<()>;
|
||||
fn ui<B: Backend>(&mut self, f: &mut Frame<B>);
|
||||
}
|
||||
Reference in New Issue
Block a user