feat(gui): implement get_fontfaces

This commit is contained in:
CJ van den Berg 2026-04-01 11:13:39 +02:00
parent 6faea2ef02
commit 4ca31b0f75
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
6 changed files with 95 additions and 2 deletions

View file

@ -202,6 +202,10 @@ pub fn setMouseCursor(shape: vaxis.Mouse.Shape) void {
wio.cancelWait();
}
pub fn getFontName() []const u8 {
return if (font_name_len > 0) font_name_buf[0..font_name_len] else "monospace";
}
pub fn requestAttention() void {
attention_pending.store(true, .release);
wio.cancelWait();