summaryrefslogtreecommitdiffstats
path: root/src/target/ui-experiment/screen.h
diff options
context:
space:
mode:
authorIngo Albrecht <prom@berlin.ccc.de>2010-09-01 21:24:34 +0200
committerIngo Albrecht <prom@berlin.ccc.de>2010-09-01 21:24:34 +0200
commitdcc3a41036f374a48b2b1791575e11e5e3f09d02 (patch)
tree2261d8ce1395d2cab815f91de96a92b809843186 /src/target/ui-experiment/screen.h
parent1198f35283b5fb026249c6881c01038d2a486613 (diff)
ui: Some experimental code snippets i cobbled together several months ago.
Diffstat (limited to 'src/target/ui-experiment/screen.h')
-rw-r--r--src/target/ui-experiment/screen.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/target/ui-experiment/screen.h b/src/target/ui-experiment/screen.h
new file mode 100644
index 00000000..1174d9e7
--- /dev/null
+++ b/src/target/ui-experiment/screen.h
@@ -0,0 +1,21 @@
+
+/**
+ * Screens - full-screen dialogs
+ *
+ * These compose the first level of interaction in the UI.
+ *
+ * There is always exactly one active screen, which is in
+ * control of the entire display on which it is displayed.
+ *
+ * Screen activations are stacked, providing interaction depth.
+ *
+ */
+struct screen {
+ const char *name;
+ void (*on_enter)(void);
+ void (*on_leave)(void);
+ void (*on_render)(void);
+ void (*on_key_press)(void);
+ void (*on_key_release)(void);
+};
+