More menu work
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "stdint.h"
|
||||
#include "stdbool.h"
|
||||
#include "display.h"
|
||||
|
||||
typedef void (*menu_callback_t)(void *args);
|
||||
typedef struct _graphical_menu_layout_t graphical_menu_layout_t;
|
||||
@@ -40,10 +41,10 @@ struct _graphical_menu_t {
|
||||
|
||||
|
||||
|
||||
void draw_menu(const graphical_menu_t *const menu);
|
||||
void draw_menu(volatile pixel_t *const framebuffer, const graphical_menu_t *const menu);
|
||||
void partial_redraw_menu(volatile pixel_t *const framebuffer, graphical_menu_t *const menu, uint8_t old_highlighted_entry_idx, uint8_t new_highlighted_entry_idx);
|
||||
void select_menu_entry(graphical_menu_t *const menu);
|
||||
uint8_t get_selected_menu_entry_idx(void);
|
||||
void set_selected_menu_entry_idx(graphical_menu_t *const menu, int8_t idx);
|
||||
void set_selected_menu_entry_idx(volatile pixel_t *const framebuffer, graphical_menu_t *const menu, uint8_t idx);
|
||||
void decrement_selected_menu_entry_idx(graphical_menu_t *const menu);
|
||||
void increment_selected_menu_entry_idx(graphical_menu_t *const menu);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user