wip: axis bindings

This commit is contained in:
i do not exist 2026-09-24 19:11:04 +03:00
parent 767f917302
commit 057d09cfdf
9 changed files with 205 additions and 95 deletions

View file

@ -738,6 +738,7 @@ impl<T> BrowseControl for T where T:
#[tek_proc::commands(AxisCmd)] impl App {
/// Increment the given data axis.
#[command(Inc = "inc")] pub fn inc (&mut self, axis: ControlAxis) -> Perhaps<AxisCmd> {
panic!("inc {axis:?}");
Ok(match (&self.dialog, axis) {
(Dialog::None, _) => todo!(),
(Dialog::Menu(_, _), ControlAxis::Y) => {
@ -749,6 +750,7 @@ impl<T> BrowseControl for T where T:
}
/// Decrement the given data axis.
#[command(Dec = "dec")] pub fn dec (&mut self, axis: ControlAxis) -> Perhaps<AxisCmd> {
panic!("dec {axis:?}");
Ok(match (&self.dialog, axis) {
(Dialog::None, _) => None,
(Dialog::Menu(_, _), ControlAxis::Y) => {