summaryrefslogtreecommitdiff
path: root/tui/layout/layout.ha
blob: d425891401f9607da4c3e66229cf30612b201f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
};