mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 13:16:44 +01:00
wip: <200 errors yay
This commit is contained in:
parent
14d619a10a
commit
694970bf0d
20 changed files with 384 additions and 305 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use crate::*;
|
||||
use tek_core::Direction;
|
||||
|
||||
impl<'a> Render<Tui> for Track<Tui> {
|
||||
fn render (&self, to: &mut TuiOutput<'a>) -> Perhaps<Rect> {
|
||||
impl Render<Tui> for Track<Tui> {
|
||||
fn render (&self, to: &mut Tui) -> Perhaps<Rect> {
|
||||
TrackView {
|
||||
chain: Some(&self),
|
||||
direction: tek_core::Direction::Right,
|
||||
|
|
@ -24,8 +24,8 @@ impl<'a> Render<Tui> for Track<Tui> {
|
|||
}.render(to)
|
||||
}
|
||||
}
|
||||
pub struct TrackView<'a, T, U> {
|
||||
pub chain: Option<&'a Track<T, U>>,
|
||||
pub struct TrackView<'a, E: Engine> {
|
||||
pub chain: Option<&'a Track<E>>,
|
||||
pub direction: Direction,
|
||||
pub focused: bool,
|
||||
pub entered: bool,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue