zori_page.h 703 B

123456789101112131415161718192021222324252627282930
  1. #ifndef zori_page_H_INCLUDED
  2. #define zori_page_H_INCLUDED
  3. #include "zori.h"
  4. #define ZORI_WIDGET_TYPE_PAGE ZORI_WIDGET_TYPE('z','p','a','g')
  5. /* In Zori, the GUI is paginated. This means that on any
  6. * screen, only a single GUI page can be active. The intent is to
  7. * support different GUI modes such as startup screen, status view,
  8. * settings, HUD, and so on between which can be switched easily. */
  9. struct zori_page {
  10. /* A page is a widget. */
  11. struct zori_widget widget;
  12. };
  13. struct zori_page * zori_widget_to_page(struct zori_widget * widget);
  14. struct zori_page * zori_page_new(zori_id id, struct zori_widget * parent);
  15. zori_id zori_new_page(zori_id id, zori_id parent_id);
  16. #endif