ref(key): make Key struct packed and rename constants
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 2m5s

This commit is contained in:
2025-02-17 21:06:15 +01:00
parent 7891af6c6f
commit a9f48bfb6a
8 changed files with 207 additions and 212 deletions

View File

@@ -104,9 +104,9 @@ pub fn Scrollable(Event: type) type {
fn handle(ctx: *anyopaque, event: Event) !void {
const this: *@This() = @ptrCast(@alignCast(ctx));
switch (event) {
.init => try this.container.handle(event),
// TODO: emit `.resize` event for the container to set the size for the scrollable `Container`
// - how would I determine the required or necessary `Size`?
.init => try this.container.handle(event),
.resize => |size| {
this.size = size;
// TODO: not just pass through the given size, but rather the size that is necessary for scrollable content