zori_screen.h 517 B

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