1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 20:49:49 +04:00
Files
unleashed-firmware/applications/gui/gui.h

19 lines
327 B
C
Raw Normal View History

#pragma once
2020-10-15 11:32:48 +03:00
#include "widget.h"
2020-10-15 11:32:48 +03:00
typedef enum {
WidgetLayerStatusBar,
WidgetLayerMain,
WidgetLayerFullscreen,
WidgetLayerDialog
} WidgetLayer;
2020-10-15 11:32:48 +03:00
typedef struct Widget Widget;
typedef struct GUI GUI;
2020-10-15 11:32:48 +03:00
typedef struct {
void (*add_widget)(GUI* gui, Widget* widget, WidgetLayer layer);
GUI* gui;
} GuiApi;