diff options
| author | Julian Hurst <ark@mansus.space> | 2025-03-12 04:14:25 +0100 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2025-03-12 04:14:25 +0100 |
| commit | fcff38543be6a1b321641f26aa349cf0f02d66bb (patch) | |
| tree | a265e8c61ecbb3d73293cd47d5dd39b69794578c /tui/layout/layout.ha | |
| download | hare-tui-fcff38543be6a1b321641f26aa349cf0f02d66bb.tar.gz | |
Initial commit
Diffstat (limited to 'tui/layout/layout.ha')
| -rw-r--r-- | tui/layout/layout.ha | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tui/layout/layout.ha b/tui/layout/layout.ha new file mode 100644 index 0000000..d425891 --- /dev/null +++ b/tui/layout/layout.ha @@ -0,0 +1,14 @@ +use tui::widget; + +export type printfn = fn(l: *layout) void; +export type finishfn = fn(l: *layout) void; + +export type layout = struct { + widgets: []*widget::widget, + print: *printfn, + finish: *finishfn, +}; + +fn finish(l: *layout) void = { + free(l.widgets); +}; |
