Assets, Icons, UI toolkit. Part 1. (#202)
* Assets: import from gdrive * Assets: fully working build pipeline and registry * NFC: menu icon * Gui: layers. Irukagotchi: base app to handle input on idle screen. Makefile: reboot after flash in dfu mode. * ValueMutex: with lambda * Assets: proper animation frames sorting * ValueMutex: proper furi_open usage * Assets,GUI: split icon into icon data and icon state. * Format source code * Docker: add python3 and imagemagic * Irukagotchi: cleanup * GUI: event lock moved to gui. * Rfid: proper gui layer * GUI: elements. Menu: frame and scroll * GUI, Menu: format code. * Menu: dual font main menu * Menu: format sources * GUI: 0 total scrollbar * CI: enable lfs * Menu: pixel perfect main menu Co-authored-by: Aleksandr Kutuzov <aku@plooks.com> Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
@@ -4,15 +4,17 @@
|
||||
#include "canvas.h"
|
||||
|
||||
typedef enum {
|
||||
WidgetLayerStatusBar,
|
||||
WidgetLayerMain,
|
||||
WidgetLayerFullscreen,
|
||||
WidgetLayerDialog
|
||||
} WidgetLayer;
|
||||
GuiLayerNone, /* Special layer for internal use only */
|
||||
|
||||
typedef struct Widget Widget;
|
||||
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;
|
||||
|
||||
typedef struct GuiApi GuiApi;
|
||||
struct GuiApi {
|
||||
void (*add_widget)(GuiApi* gui_api, Widget* widget, WidgetLayer layer);
|
||||
void (*add_widget)(GuiApi* gui_api, Widget* widget, GuiLayer layer);
|
||||
void (*remove_widget)(GuiApi* gui_api, Widget* widget);
|
||||
};
|
||||
|
Reference in New Issue
Block a user