zori_page.h 638 B

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