1
0
Fork 0
zenolith/src/treevents/Draw.zig
2023-11-26 14:01:22 +01:00

14 lines
358 B
Zig

//! This event signals widgets that they should be drawn using the given painter.
const Painter = @import("../painter.zig").Painter;
const Widget = @import("../widget.zig").Widget;
painter: *Painter,
const Draw = @This();
pub fn dispatch(self: Draw, widget: *Widget) !void {
for (widget.children()) |child| {
try child.treevent(self);
}
}