1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 12:51:22 +04:00
Files
flipperzero-firmware/applications/gui/gui.h

21 lines
552 B
C
Raw Normal View History

#pragma once
2020-10-15 11:32:48 +03:00
#include "widget.h"
2020-10-15 18:05:28 +03:00
#include "canvas.h"
2020-10-15 11:32:48 +03:00
typedef enum {
GuiLayerNone, /* Special layer for internal use only */
GuiLayerStatusBar, /* Status bar widget layer */
GuiLayerMain, /* Main widget layer, status bar is shown */
GuiLayerFullscreen, /* Fullscreen widget layer */
GuiLayerMAX /* Don't use or move, special value */
} GuiLayer;
2020-10-16 18:25:06 +03:00
typedef struct GuiApi GuiApi;
struct GuiApi {
void (*add_widget)(GuiApi* gui_api, Widget* widget, GuiLayer layer);
void (*remove_widget)(GuiApi* gui_api, Widget* widget);
2020-10-15 18:56:47 +03:00
};