mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
wip: ratatui
This commit is contained in:
parent
edc363c55b
commit
fc7f6f5407
16 changed files with 485 additions and 243 deletions
|
|
@ -1,6 +1,12 @@
|
|||
use crate::prelude::*;
|
||||
use super::Sampler;
|
||||
|
||||
impl HandleInput for Sampler {
|
||||
fn handle (&mut self, event: &Event) -> Result<(), Box<dyn Error>> {
|
||||
handle(self, event)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn handle (
|
||||
state: &mut Sampler,
|
||||
event: &Event
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
use crate::prelude::*;
|
||||
use super::Sampler;
|
||||
|
||||
impl WidgetRef for Sampler {
|
||||
fn render_ref (&self, area: Rect, buf: &mut Buffer) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn render (
|
||||
state: &mut Sampler,
|
||||
stdout: &mut Stdout,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue