summaryrefslogtreecommitdiff
path: root/tui/widget/list/list.ha
diff options
context:
space:
mode:
Diffstat (limited to 'tui/widget/list/list.ha')
-rw-r--r--tui/widget/list/list.ha3
1 files changed, 3 insertions, 0 deletions
diff --git a/tui/widget/list/list.ha b/tui/widget/list/list.ha
index 4da52d5..a4ec77e 100644
--- a/tui/widget/list/list.ha
+++ b/tui/widget/list/list.ha
@@ -15,6 +15,9 @@ export type list = struct {
frame: frame,
};
+// Return an instance of list. out is the tty file, pos the starting position,
+// sz is the size of the widget (if [[widget::nosize]] is used, the maximum possible
+// size is used), items is the slice of items of the list.
export fn newlist(out: io::file, pos: widget::coords, sz: widget::widgetsize, items: str...) (list | tty::error) = {
const tsz = tty::winsize(out)?;