zori_screen.h 559 B

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