mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-16 01:28:00 +00:00
22 lines
395 B
C
22 lines
395 B
C
#pragma once
|
|
|
|
#include "widget.h"
|
|
#include "canvas.h"
|
|
|
|
typedef enum {
|
|
WidgetLayerStatusBar,
|
|
WidgetLayerMain,
|
|
WidgetLayerFullscreen,
|
|
WidgetLayerDialog
|
|
} WidgetLayer;
|
|
|
|
typedef struct Widget Widget;
|
|
typedef struct Gui Gui;
|
|
|
|
struct _GuiApi;
|
|
typedef struct _GuiApi GuiApi;
|
|
|
|
struct _GuiApi {
|
|
void (*add_widget)(GuiApi* gui_api, Widget* widget, WidgetLayer layer);
|
|
Gui* gui;
|
|
};
|