mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-10-08 18:56:42 +02:00
wip: axis bindings
This commit is contained in:
parent
767f917302
commit
057d09cfdf
9 changed files with 205 additions and 95 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue