diff options
author | あく <alleteam@gmail.com> | 2021-01-08 07:42:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 07:42:48 +0300 |
commit | 1b78418f9f44782ee36b2909cf21be93eef55f6f (patch) | |
tree | 410031e21c8ceff081b233c85db7395c508c1e7b /applications/gui/canvas.h | |
parent | d65e9b04cee93c6dba55bb1b45acd215082cce28 (diff) |
FL-528 GUI: View, ViewDispather. Dolphin: first start. (#276)
* GUI: view. Flooper-blooper fix compilation error.
* GUI: view and viewdispatcher bones
* GUI: view implementation, view models, view dispatcher
* GUI: view navigation, model refinement. Power: use view, view dispatcher.
* HAL Flash: proper page write. Dolphin: views. Power: views
* Dolphin: transition idle scree to Views
* Dolphin: input events on stats view. Format sources.
* HAL: flash erase. Dolphin: permanent state storage.
* Dolphin: first start welcome. HAL: flash operation status, errata 2.2.9 crutch.
Diffstat (limited to 'applications/gui/canvas.h')
-rw-r--r-- | applications/gui/canvas.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/applications/gui/canvas.h b/applications/gui/canvas.h index a232b8ce..2ce6b309 100644 --- a/applications/gui/canvas.h +++ b/applications/gui/canvas.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <u8g2.h> #include <gui/icon.h> +#include <assets_icons_i.h> typedef enum { ColorWhite = 0x00, @@ -46,11 +47,16 @@ void canvas_set_font(Canvas* canvas, Font font); void canvas_draw_str(Canvas* canvas, uint8_t x, uint8_t y, const char* str); /* - * Draw icon at position defined by x,y. + * Draw stateful icon at position defined by x,y. */ void canvas_draw_icon(Canvas* canvas, uint8_t x, uint8_t y, Icon* icon); /* + * Draw stateless icon at position defined by x,y. + */ +void canvas_draw_icon_name(Canvas* canvas, uint8_t x, uint8_t y, IconName name); + +/* * Draw xbm icon of width, height at position defined by x,y. */ void canvas_draw_xbm( |