show keyboard keys

This commit is contained in:
stjet
2025-02-07 06:31:56 +00:00
parent d182077e78
commit cb8d5abdbf
6 changed files with 217 additions and 26 deletions

View File

@@ -7,6 +7,7 @@ use crate::window_manager::DrawInstructions;
pub mod toggle_button;
pub mod highlight_button;
pub mod paragraph;
pub mod press_button;
pub trait Component<T> {
fn handle_message(&mut self, message: WindowMessage) -> Option<T>;
@@ -17,6 +18,7 @@ pub trait Component<T> {
//focusing for components is purely to give a visual representation
fn focusable(&self) -> bool;
fn clickable(&self) -> bool;
//fn pressable(&self) -> bool; //touch
fn name(&self) -> &String; //should be unique
}