mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-26 14:30:25 +00:00
7e0849b44e
* View: Coalesce view model allocations * SceneManager: Coalesce AppScene allocations * BufferStream: Coalesce Buffer allocations * ProtocolDict: Coalesce dict allocations * DigitalSignal: Coalesce buffer allocations Co-authored-by: あく <alleteam@gmail.com>
22 lines
400 B
C
22 lines
400 B
C
/**
|
|
* @file scene_manager_i.h
|
|
* GUI: internal SceneManager API
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "scene_manager.h"
|
|
#include <m-array.h>
|
|
|
|
ARRAY_DEF(SceneManagerIdStack, uint32_t, M_DEFAULT_OPLIST);
|
|
|
|
typedef struct {
|
|
uint32_t state;
|
|
} AppScene;
|
|
|
|
struct SceneManager {
|
|
SceneManagerIdStack_t scene_id_stack;
|
|
const SceneManagerHandlers* scene_handlers;
|
|
void* context;
|
|
AppScene scene[];
|
|
};
|