mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
19 lines
458 B
Text
19 lines
458 B
Text
use tek::*;
|
|
use std::sync::{Arc, RwLock};
|
|
|
|
fn main () -> Usually<()> {
|
|
Tui::run(Arc::new(RwLock::new(BspDemo(Default::default()))))?;
|
|
Ok(())
|
|
}
|
|
|
|
pub struct BspDemo<E: Engine>(std::marker::PhantomData<E>);
|
|
|
|
render!(<Tui>|self:BspDemo<Tui>|Fill::wh(Align::c(
|
|
Bsp::n(Bsp::s(Bsp::e(Bsp::w("00", "11"), "22"), "33"), "44")
|
|
)));
|
|
|
|
impl Handle<Tui> for BspDemo<Tui> {
|
|
fn handle (&mut self, from: &TuiInput) -> Perhaps<bool> {
|
|
Ok(None)
|
|
}
|
|
}
|