wip: <200 errors yay

This commit is contained in:
🪞👃🪞 2024-09-05 16:01:01 +03:00
parent 14d619a10a
commit 694970bf0d
20 changed files with 384 additions and 305 deletions

View file

@ -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,