mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
Process -> Audio; Layers2 -> Layers
This commit is contained in:
parent
1cbf8de4e4
commit
cd8a808c21
20 changed files with 334 additions and 414 deletions
|
|
@ -58,6 +58,16 @@ impl Engine for Tui {
|
|||
self.with_rect([x, y, w, h]);
|
||||
self
|
||||
}
|
||||
#[inline]
|
||||
fn render_in (
|
||||
&mut self, area: [u16;4], widget: &impl Widget<Engine = Self>
|
||||
) -> Perhaps<[u16;4]> {
|
||||
let last = self.area;
|
||||
self.area = area;
|
||||
let next = widget.render(self)?;
|
||||
self.area = last;
|
||||
Ok(next)
|
||||
}
|
||||
}
|
||||
impl Tui {
|
||||
/// Run the main loop.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue