123456789101112131415161718192021222324252627282930 |
- #ifndef zori_screen_H_INCLUDED
- #define zori_screen_H_INCLUDED
- #include "zori.h"
- #define ZORI_WIDGET_TYPE_SCREEN ZORI_WIDGET_TYPE('z','s','c','r')
- /* The top level widget for a single display. */
- struct zori_screen {
- /* A screen is a widget. */
- struct zori_widget widget;
- /* It also manages the cursors. */
- struct zori_cursors cursors;
- /* Display this screen is on. */
- zori_display * display;
- /* The GUI page that is active on this screen if any. */
- struct zori_page * active_page;
- };
- zori_id zori_new_screen(zori_id id, zori_display * display);
- struct zori_screen * zori_widget_to_screen(struct zori_widget * widget);
- #endif
|