list.h 532 B

123456789101112131415
  1. // DO NOT SET PRAGMA ONCE OR OTHER HEADER GUARDING PATTERNS.
  2. // IT SHOULD BE INCLUDED MULTIPLE TIMES, AND IS INTENDED.
  3. /**
  4. * This is the file for defining the scenes.
  5. *
  6. * Use it as following:
  7. * 1. Define the scene via SCENE_ACTION macro. (e.g. SCENE_ACTION(Home))
  8. * 2. Implement the scene handlers in the corresponding file.
  9. * _on_enter, _on_event, _on_exit, _get_view, _alloc, _free
  10. * e.g. Home -> Home_on_enter should be implemented
  11. * 3. Include the scene in the list of scenes in main.h.
  12. */
  13. SCENE_ACTION(MTP)