Add the cascade animation as a separate widget

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-02-10 17:43:55 +01:00
parent f320d3f666
commit d268d5bb45
15 changed files with 276 additions and 148 deletions

View File

@@ -98,7 +98,7 @@ pub fn childrenPosition(self: Label) Position {
return self.children_pos;
}
pub fn draw(self: *Label) void {
fn draw(self: *Label) void {
if (self.max_width) |width| {
TerminalBuffer.drawConfinedText(
self.text,
@@ -120,7 +120,7 @@ pub fn draw(self: *Label) void {
);
}
pub fn update(self: *Label, ctx: *anyopaque) !void {
fn update(self: *Label, ctx: *anyopaque) !void {
if (self.update_fn) |update_fn| {
return @call(
.auto,