scenes.h 713 B

1234567891011121314151617181920
  1. #pragma once
  2. typedef enum { SR_Scene_Items, SR_Scene_count } appScenes;
  3. typedef enum {
  4. SR_ButtonMenu, // used on selected device, to show buttons/groups
  5. SR_Dialog, // shows errors
  6. SR_FileBrowser, // TODO: UNUSED!
  7. SR_TextInput // TODO: UNUSED
  8. } appView;
  9. typedef enum { Event_DeviceSelected, Event_ButtonPressed } AppCustomEvents;
  10. extern void (*const app_on_enter_handlers[])(void*);
  11. extern bool (*const app_on_event_handlers[])(void*, SceneManagerEvent);
  12. extern void (*const app_on_exit_handlers[])(void*);
  13. extern const SceneManagerHandlers app_scene_handlers;
  14. extern bool app_scene_custom_callback(void* context, uint32_t custom_event_id);
  15. extern bool app_back_event_callback(void* context);