add(element/scrollable): implement content provider
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m49s

However this is only working for the same size as the parent container
(i.e. same `Size`). The `.resize` event for the `Container` of the
scrollable element needs to be the necessary and/or required size for
the contents (regardless of the screen viewport).
This commit is contained in:
2025-02-17 19:58:25 +01:00
parent 7b690d387b
commit 7891af6c6f
5 changed files with 125 additions and 19 deletions

View File

@@ -38,7 +38,9 @@ pub fn App(comptime E: type) type {
return struct {
pub const Event = mergeTaggedUnions(event.SystemEvent, E);
pub const Container = @import("container.zig").Container(Event);
pub const Element = @import("element.zig").Element(Event);
const element = @import("element.zig");
pub const Element = element.Element(Event);
pub const Scrollable = element.Scrollable(Event);
queue: Queue(Event, 256),
thread: ?std.Thread,