main.h 613 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <gui/scene_manager.h>
  3. #include <gui/view_dispatcher.h>
  4. #include "scenes/import.h"
  5. typedef struct App {
  6. SceneManager* scene_manager;
  7. ViewDispatcher* view_dispatcher;
  8. void** allocated_scenes;
  9. } App;
  10. /**
  11. * Enum for scenes.
  12. */
  13. typedef enum {
  14. #define SCENE_ACTION(scene) scene,
  15. #include "scenes/list.h"
  16. #undef SCENE_ACTION
  17. AppSceneNum, // This should be the last element in the enumeration.
  18. } AppViews;
  19. /**
  20. * Header definition for handler.c
  21. */
  22. bool scene_handler_event_forwarder(void* context, uint32_t event_id);
  23. bool scene_handler_navigation_forwarder(void* context);