24 lines
333 B
C
24 lines
333 B
C
|
|
// Define once
|
||
|
|
#ifndef H_UI
|
||
|
|
#define H_UI
|
||
|
|
|
||
|
|
// Libraries
|
||
|
|
#include <furi.h>
|
||
|
|
#include <gui/gui.h>
|
||
|
|
|
||
|
|
// Structures
|
||
|
|
typedef struct {
|
||
|
|
ViewPort* canvas;
|
||
|
|
int page;
|
||
|
|
|
||
|
|
bool running;
|
||
|
|
} uiManager;
|
||
|
|
|
||
|
|
// Constructors
|
||
|
|
uiManager* ui_create();
|
||
|
|
|
||
|
|
// Functions
|
||
|
|
void ui_draw(Canvas* canvas, void* ctx);
|
||
|
|
void ui_p_mainmenu(Canvas* canvas);
|
||
|
|
|
||
|
|
#endif
|