Item¶
Elements with multiples options like radio buttons and keyboard rely on items. So does the single option button.
An item is a structure that combines an index
and a 16-character-long label
.
struct item
{
uint16_t index; ///< index 0x1000..0xffff, 0x0000 is reserved for menu root
char label[16]; ///< text, up to 16 characters
};
Configure¶
Warning
Ensure the GUI library is included and initialised according to the configuration procedure.
item myItem;
The declaration creates an item.
Use¶
Use setItem()
to populate the item.
myItem = setItem(0x0001, "Item");
Alternatively, combine both steps into
item myItem = {0x0001, "Item"};