zori_screen.h 657 B

123456789101112131415161718192021222324252627282930
  1. #ifndef zori_screen_H_INCLUDED
  2. #define zori_screen_H_INCLUDED
  3. #include "zori.h"
  4. #define ZORI_WIDGET_TYPE_SCREEN ZORI_WIDGET_TYPE('z','s','c','r')
  5. /* The top level widget for a single display. */
  6. struct zori_screen {
  7. /* A screen is a widget. */
  8. struct zori_widget widget;
  9. /* It also manages the cursors. */
  10. struct zori_cursors cursors;
  11. /* Display this screen is on. */
  12. zori_display * display;
  13. /* The GUI page that is active on this screen if any. */
  14. struct zori_page * active_page;
  15. };
  16. zori_id zori_new_screen(zori_id id, zori_display * display);
  17. struct zori_screen * zori_widget_to_screen(struct zori_widget * widget);
  18. #endif