-
Notifications
You must be signed in to change notification settings - Fork 0
/
insults_app.h
43 lines (35 loc) · 1 KB
/
insults_app.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include <furi/core/record.h>
#include <gui/canvas.h>
#include <gui/gui.h>
#include <gui/scene_manager.h>
#include <gui/view_dispatcher.h>
#include <gui/modules/submenu.h>
#include <gui/modules/dialog_ex.h>
#include "insults_files.h"
#include "scenes/insults_scene.h"
#include "scenes/insults_scene_start.h"
enum InsultsView {
InsultsViewStart,
InsultsViewInsult,
InsultsViewSaved,
InsultsViewSavedDetail,
InsultsViewSavedEmpty
};
typedef struct InsultsApp {
Gui* gui;
SceneManager* scene_manager;
ViewDispatcher* view_dispatcher;
InsultsFiles* insults_files;
Submenu* start_menu;
DialogEx* insult_display;
Submenu* saved_menu;
DialogEx* saved_detail;
FileLines* saved_lines;
DialogEx* saved_empty;
char* insult_string;
} InsultsApp;
InsultsApp* insults_app_alloc(void);
void insults_app_free(InsultsApp* insults_app);
bool insults_navigation_event_callback(void* context);
bool insults_custom_event_callback(void* context, uint32_t event);