forked from sle118/FreeTouchDeck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMenuNavigation.h
26 lines (25 loc) · 892 Bytes
/
MenuNavigation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include "UserConfig.h"
#include "Menu.h"
#include "globals.hpp"
namespace FreeTouchDeck {
void LoadAllMenus();
void LoadSystemMenus();
bool SetActiveScreen(const char * name);
bool ScreenLock(TickType_t xTicksToWait) ;
void ScreenUnlock() ;
char *MenusToJson(bool withSystem = false);
cJSON *MenusToJsonObject(bool withSystem = false);
Menu *GetActiveScreen();
Menu *GetScreen(const char *name, bool lock=true);
bool SaveFullFormat();
Menu *GetLatchScreen(FTAction *action);
bool LoadFullFormat(const char * fileName);
bool LoadFullFormat();
void handleDisplay(bool pressed, uint16_t t_x, uint16_t t_y);
extern FTAction *sleepSetLatchAction;
extern FTAction *sleepClearLatchAction;
extern FTAction *sleepToggleLatchAction;
extern FTAction *beepSetLatchAction;
extern FTAction *beepClearLatchAction;
}