rustphone/src/apps.rs
2023-09-11 22:22:20 +02:00

12 lines
287 B
Rust

use crate::{display::Display, keypad::KeyEvents, state::ModeState, Context};
pub mod clock;
pub mod dial;
pub trait App {
type AppModeState;
/// Return Some if the mode should be changed
fn update(context: &mut Context, mode_state: &mut Self::AppModeState) -> Option<ModeState>;
}