38 lines
No EOL
641 B
C
38 lines
No EOL
641 B
C
// Define once
|
|
#ifndef H_UI
|
|
#define H_UI
|
|
|
|
// Libraries
|
|
#include <furi.h>
|
|
|
|
#include <gui/gui.h>
|
|
#include <gui/icon_i.h>
|
|
#include <gui/scene_manager.h>
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
#include <gui/modules/dialog_ex.h>
|
|
#include <gui/modules/submenu.h>
|
|
#include <gui/modules/popup.h>
|
|
|
|
#include "app.h"
|
|
#include "manager.h"
|
|
|
|
// Structures
|
|
typedef struct {
|
|
SceneManager* scene_manager;
|
|
ViewDispatcher* view_dispatcher;
|
|
DialogEx* dialog;
|
|
Submenu* submenu;
|
|
Popup* popup;
|
|
|
|
Manager* manager;
|
|
} FP_App;
|
|
|
|
// Constructors
|
|
FP_App* fp_app_init();
|
|
|
|
// Functions
|
|
void fp_app_run(FP_App* app);
|
|
void fp_app_free(FP_App* app);
|
|
|
|
#endif |