Кнопка для добавления случайных фигур
This commit is contained in:
@@ -101,6 +101,9 @@ pub fn leftPanel(ctx: *WindowContext) void {
|
||||
canvas.requestRedraw();
|
||||
}
|
||||
}
|
||||
if (dvui.button(@src(), "Add random shapes", .{}, .{})) {
|
||||
canvas.addRandomShapes() catch {};
|
||||
}
|
||||
} else {
|
||||
dvui.label(@src(), "No document", .{}, .{});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user