feat(win32 gui): add reset_fontsize and rest_fontface commands

This commit is contained in:
CJ van den Berg 2025-01-14 18:53:53 +01:00
parent a5622af68d
commit 6530a7a51c
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
5 changed files with 61 additions and 1 deletions

View file

@ -381,11 +381,21 @@ pub fn set_fontsize(self: *Self, fontsize: f32) void {
gui.set_fontsize(hwnd, fontsize);
}
pub fn reset_fontsize(self: *Self) void {
const hwnd = self.hwnd orelse return;
gui.reset_fontsize(hwnd);
}
pub fn set_fontface(self: *Self, fontface: []const u8) void {
const hwnd = self.hwnd orelse return;
gui.set_fontface(hwnd, fontface);
}
pub fn reset_fontface(self: *Self) void {
const hwnd = self.hwnd orelse return;
gui.reset_fontface(hwnd);
}
pub fn set_terminal_cursor_color(self: *Self, color: Color) void {
_ = self;
_ = color;