feat(element/alignment): alignment Element implementation

You can now align a `Container` using the Alignment `Element` similar to
how you make a `Container` scrollable. For usage details please see the
example and the corresponding tests.
This commit is contained in:
2025-05-28 14:42:02 +02:00
parent 3cb0d11e71
commit 5ba5b2b372
9 changed files with 335 additions and 0 deletions

View File

@@ -397,6 +397,7 @@ pub fn App(comptime E: type) type {
pub const Event = mergeTaggedUnions(event.SystemEvent, E);
pub const Container = @import("container.zig").Container(Event);
pub const Element = element.Element(Event);
pub const Alignment = element.Alignment(Event);
pub const Scrollable = element.Scrollable(Event);
pub const Exec = element.Exec(Event, Queue);
pub const Queue = queue.Queue(Event, 256);