Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
menuSimpleRenderer.h
Go to the documentation of this file.
1
26
27#pragma once
28
29#include "menu.h"
30#include "fs_font.h"
31
44
46 paletteColor_t text, int32_t rows);
48void drawMenuSimple(menu_t* menu, menuSimpleRenderer_t* renderer);
A font is a collection of font_ch_t for all ASCII characters. Each character has the same height and ...
Definition font.h:66
paletteColor_t rowTextColor
The color of the row text.
Definition menuSimpleRenderer.h:42
paletteColor_t bgColor
The color of the screen background.
Definition menuSimpleRenderer.h:41
menuSimpleRenderer_t * initMenuSimpleRenderer(font_t *font, paletteColor_t border, paletteColor_t bg, paletteColor_t text, int32_t rows)
Initialize a and return a menu renderer.
Definition menuSimpleRenderer.c:37
font_t * font
The font to render the title with.
Definition menuSimpleRenderer.h:37
void drawMenuSimple(menu_t *menu, menuSimpleRenderer_t *renderer)
Draw a themed menu to the display and control the LEDs.
Definition menuSimpleRenderer.c:131
paletteColor_t borderColor
The color of the background border.
Definition menuSimpleRenderer.h:40
int32_t numRows
Definition menuSimpleRenderer.h:38
void deinitMenuSimpleRenderer(menuSimpleRenderer_t *renderer)
Deinitialize a menu renderer and free associated memory. This will not free the font passed into init...
Definition menuSimpleRenderer.c:68
A struct containing all the state data to render a simple menu.
Definition menuSimpleRenderer.h:36
struct _menu_t menu_t
The underlying data for a menu. This fundamentally is a list of menuItem_t.
Definition menu.h:153
paletteColor_t
All 216 possible colors, named like cRGB.
Definition palette.h:23