mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
edn stub examples are now runnable
the Render/Content trait pair is very finicky
This commit is contained in:
parent
f1b3fc0040
commit
f6c603bf73
9 changed files with 69 additions and 56 deletions
|
|
@ -4,14 +4,14 @@ use std::marker::ConstParamTy;
|
|||
use tek_engine::Render;
|
||||
use EdnItem::*;
|
||||
|
||||
render!(Tui: (self: Groovebox<'a>) => self.size.of(
|
||||
render!(Tui: (self: Groovebox) => self.size.of(
|
||||
Bsp::s(self.toolbar_view(),
|
||||
Bsp::n(self.selector_view(),
|
||||
Bsp::n(self.sample_view(),
|
||||
Bsp::n(self.status_view(),
|
||||
Bsp::w(self.pool_view(), Fill::xy(Bsp::e(self.sampler_view(), &self.editor)))))))));
|
||||
|
||||
impl<'a> Groovebox<'a> {
|
||||
impl Groovebox {
|
||||
fn toolbar_view (&self) -> impl Content<Tui> + use<'_> {
|
||||
Fill::x(Fixed::y(2, lay!(
|
||||
Align::w(Meter("L/", self.sampler.input_meter[0])),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue