Merge commit 'af5ee34c353ea2868a4b04b227bc1b511e1ac42b'
[osmocom-bb.git] / src / target / ui-experiment / screen.h
1
2 /**
3  * Screens - full-screen dialogs
4  *
5  * These compose the first level of interaction in the UI.
6  *
7  * There is always exactly one active screen, which is in
8  * control of the entire display on which it is displayed.
9  *
10  * Screen activations are stacked, providing interaction depth.
11  *
12  */
13 struct screen {
14         const char *name;
15         void (*on_enter)(void);
16         void (*on_leave)(void);
17         void (*on_render)(void);
18         void (*on_key_press)(void);
19         void (*on_key_release)(void);
20 };
21