mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2026-01-31 10:56:41 +01:00
dsl, output, tui: add tests, examples, root dispatchers
This commit is contained in:
parent
8dfe20a58c
commit
ca862b9802
16 changed files with 637 additions and 377 deletions
|
|
@ -37,6 +37,14 @@ impl Tui {
|
|||
}
|
||||
});
|
||||
|
||||
#[macro_export] macro_rules! tui_content ((|$self:ident:$Self:ty|$sexpr:expr)=>{
|
||||
impl Content<TuiOut> for $Self {
|
||||
fn content (&$self) -> impl Draw<TuiOut> + Layout<TuiOut> + '_ {
|
||||
$expr
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
mod tui_border; pub use self::tui_border::*;
|
||||
mod tui_button; pub use self::tui_button::*;
|
||||
mod tui_color; pub use self::tui_color::*;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue