Рабочий зум
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user