menu: render submenu arrows

This commit is contained in:
Johan Malm 2022-08-02 22:00:24 +01:00 committed by Consolatis
parent 6a750d465e
commit 429df42a8f
6 changed files with 70 additions and 34 deletions

View file

@ -28,9 +28,11 @@ int font_width(struct font *font, const char *string);
* @text: text to be generated as texture
* @font: font description
* @color: foreground color in rgba format
* @arrow: arrow (utf8) character to show or NULL for none
*/
void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
const char *text, struct font *font, float *color, double scale);
const char *text, struct font *font, float *color, const char *arrow,
double scale);
/**
* font_finish - free some font related resources