unleashed-firmware/applications/gui/gui.h
2020-10-15 11:32:48 +03:00

18 lines
327 B
C

#pragma once
#include "widget.h"
typedef enum {
WidgetLayerStatusBar,
WidgetLayerMain,
WidgetLayerFullscreen,
WidgetLayerDialog
} WidgetLayer;
typedef struct Widget Widget;
typedef struct GUI GUI;
typedef struct {
void (*add_widget)(GUI* gui, Widget* widget, WidgetLayer layer);
GUI* gui;
} GuiApi;