You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
phetch/src/ui/action.rs

13 lines
676 B
Rust

use crate::ui::Key;
5 years ago
pub enum Action {
None, // do nothing
Open(String, String), // open(title, url)
Keypress(Key), // unknown keypress
Redraw, // redraw everything
5 years ago
Draw(String), // draw something on screen
Status(String), // set the "status" line to something
Prompt(String, Box<dyn FnOnce(String) -> Action>), // query string, callback on success
Error(String), // error message
5 years ago
}