menu: underline explicitly defined accelerators

This commit is contained in:
Alex Chernika 2026-04-14 17:21:22 +02:00
parent 1c646af144
commit dc28d0caf3
No known key found for this signature in database
GPG key ID: 6029FAD8ABFB076A
4 changed files with 28 additions and 8 deletions

View file

@ -4,6 +4,7 @@
#include <cairo.h>
#include <pango/pango-font.h>
#include <stdbool.h>
struct lab_data_buffer;
@ -43,10 +44,11 @@ void font_get_buffer_size(int max_width, const char *text, struct font *font,
* @font: font description
* @color: foreground color in rgba format
* @bg_pattern: background pattern
* @use_markup: flag to render pango markup
*/
void font_buffer_create(struct lab_data_buffer **buffer, int max_width,
int height, const char *text, struct font *font, const float *color,
cairo_pattern_t *bg_pattern, double scale);
cairo_pattern_t *bg_pattern, double scale, bool use_markup);
/**
* font_finish - free some font related resources