Files
ui-library-playground/Core/Inc/graphics/menu.h
Dylan Smith 73005fc56b WIP
2026-01-12 14:40:36 -05:00

25 lines
492 B
C

#ifndef MENU_H
#define MENU_H
#include "stdint.h"
#include "stdbool.h"
typedef struct
{
uint8_t *title;
bool enabled; // not enabled = grayed out, unselectable
void *highlighted_callback_function;
void *selected_callback_function;
} graphical_menu_entry_t;
typedef struct _graphical_menu_t graphical_menu_t;
struct _graphical_menu_t {
graphical_menu_t *parent_menu;
uint8_t num_entries;
uint8_t highlighted_idx;
graphical_menu_entry_t *entries;
};
#endif