Рабочий зум

This commit is contained in:
2025-12-19 21:57:51 +03:00
parent 183726aed4
commit e22051c1c1
4 changed files with 73 additions and 48 deletions

View File

@@ -14,15 +14,6 @@ pub fn init(allocator: std.mem.Allocator) WindowContext {
};
}
pub fn fillRandomColor(self: *WindowContext) !void {
try self.canvas.fillRandomColor();
}
/// Отобразить canvas в UI
pub fn render(self: WindowContext, rect: dvui.Rect.Physical) !void {
try self.canvas.render(rect);
}
pub fn deinit(self: *WindowContext) void {
self.canvas.deinit();
}