flipperzero-firmware/applications/gui/gui.h

23 lines
395 B
C
Raw Normal View History

#pragma once
2020-10-15 08:32:48 +00:00
#include "widget.h"
2020-10-15 15:05:28 +00:00
#include "canvas.h"
2020-10-15 08:32:48 +00:00
typedef enum {
WidgetLayerStatusBar,
WidgetLayerMain,
WidgetLayerFullscreen,
WidgetLayerDialog
} WidgetLayer;
2020-10-15 08:32:48 +00:00
typedef struct Widget Widget;
2020-10-15 15:05:28 +00:00
typedef struct Gui Gui;
2020-10-15 15:56:47 +00:00
struct _GuiApi;
typedef struct _GuiApi GuiApi;
struct _GuiApi {
void (*add_widget)(GuiApi* gui_api, Widget* widget, WidgetLayer layer);
2020-10-15 15:05:28 +00:00
Gui* gui;
2020-10-15 15:56:47 +00:00
};