blob: 7a64221200bffeb19de0ca2fcace5ef6eb306b3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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);
};
|