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 = {
	for (let w .. l.widgets) {
		w.finish(w);
	};
	//free(l.widgets);
};
