Added selection rectangle.

This commit is contained in:
2021-09-02 10:30:25 -07:00
parent 21af7906c4
commit 6e0d594056
7 changed files with 100 additions and 5 deletions

View File

@ -10,6 +10,10 @@
#include "frame.h"
#include "label.h"
#include "menu.h"
#include "rectangle.h"
/** Color of the menulist selection rectangle */
#define MENULIST_SELECTION_COLOR ((pixel_t){ .r=255, .g=255, .b=255, .a=150 })
/** Maximum number of items that the list supports */
#define MENULIST_ITEMS_MAX 32
@ -21,5 +25,6 @@ typedef struct {
label_t labels[MENULIST_ITEMS_MAX];
frame_t frame;
menu_t menu;
rectangle_t selection;
uint8_t count;
} menulist_t;