mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-10 21:56:42 +01:00
wip: replacing Rect with [u16;4] in mixer and sequencer
This commit is contained in:
parent
fa739a49b2
commit
06f8bd1116
14 changed files with 106 additions and 106 deletions
|
|
@ -16,9 +16,9 @@ impl Handle<Tui> for Plugin {
|
|||
}
|
||||
process!(Plugin = Plugin::process);
|
||||
impl Render<Tui> for Plugin {
|
||||
fn render (&self, to: &mut Tui) -> Perhaps<Rect> {
|
||||
fn render (&self, to: &mut Tui) -> Perhaps<[u16;4]> {
|
||||
let area = to.area();
|
||||
let Rect { x, y, height, .. } = area;
|
||||
let [x, y, _, height] = area;
|
||||
let mut width = 20u16;
|
||||
match &self.plugin {
|
||||
Some(PluginKind::LV2(LV2Plugin { port_list, instance, .. })) => {
|
||||
|
|
@ -48,8 +48,8 @@ impl Render<Tui> for Plugin {
|
|||
},
|
||||
_ => {}
|
||||
};
|
||||
draw_header(self, to, area.x, area.y, width)?;
|
||||
Ok(Some(Rect { width, ..to.area() }))
|
||||
draw_header(self, to, x, y, width)?;
|
||||
Ok(Some([x, y, width, height]))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue