bizzle
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
i do not exist 2026-08-19 18:21:42 +03:00
parent e50c4a5eef
commit e6984915e4
22 changed files with 1002 additions and 294 deletions

View file

@ -25,7 +25,7 @@ pub struct PianoHorizontal {
impl_has!(Sizer: |self: PianoHorizontal| self.size);
impl View<Tui> for PianoHorizontal {
fn view (&self) -> impl Draw<Tui> {
fn view (&self) -> impl Draw<'_, Tui> {
south(
east(
format!("{}x{}", self.size.w(), self.size.h()).exact_w(5),
@ -132,7 +132,7 @@ impl PianoHorizontal {
}
}
fn notes (&self) -> impl Draw<Tui> {
fn notes (&self) -> impl Draw<'_, Tui> {
let time_start = self.get_time_start();
let note_lo = self.get_note_lo();
let note_hi = self.get_note_hi();
@ -168,7 +168,7 @@ impl PianoHorizontal {
})
}
fn cursor (&self) -> impl Draw<Tui> {
fn cursor (&self) -> impl Draw<'_, Tui> {
let note_hi = self.get_note_hi();
let note_lo = self.get_note_lo();
let note_pos = self.get_note_pos();
@ -202,7 +202,7 @@ impl PianoHorizontal {
})
}
fn keys (&self) -> impl Draw<Tui> {
fn keys (&self) -> impl Draw<'_, Tui> {
let state = self;
let color = state.color;
let note_lo = state.get_note_lo();
@ -229,7 +229,7 @@ impl PianoHorizontal {
}).exact_w(self.keys_width).full_h()
}
fn timeline (&self) -> impl Draw<Tui> + '_ {
fn timeline (&self) -> impl Draw<'_, Tui> + '_ {
draw(move|to: &mut Tui|{
let xywh = to.area().into();
let XYWH(x, y, w, _h) = xywh;