scenes.h 717 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "flipper.h"
  3. typedef enum { SR_Scene_Items, SR_Scene_count } appScenes;
  4. typedef enum {
  5. SR_ButtonMenu, // used on selected device, to show buttons
  6. SR_Dialog,
  7. SR_FileBrowser, // to find the recorded Sub-GHz data!
  8. SR_TextInput
  9. } appView;
  10. typedef enum { Event_DeviceSelected, Event_ButtonPressed } AppCustomEvents;
  11. extern void (*const app_on_enter_handlers[])(void*);
  12. extern bool (*const app_on_event_handlers[])(void*, SceneManagerEvent);
  13. extern void (*const app_on_exit_handlers[])(void*);
  14. extern const SceneManagerHandlers app_scene_handlers;
  15. extern bool app_scene_custom_callback(void* context, uint32_t custom_event_id);
  16. extern bool app_back_event_callback(void* context);