about summary refs log tree commit diff stats
path: root/lib/ui/grid.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui/grid.go')
-rw-r--r--lib/ui/grid.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ui/grid.go b/lib/ui/grid.go
index 3c375ee..87b94bd 100644
--- a/lib/ui/grid.go
+++ b/lib/ui/grid.go
@@ -71,6 +71,14 @@ func (grid *Grid) Columns(spec []GridSpec) *Grid {
 	return grid
 }
 
+func (grid *Grid) Children() []Drawable {
+	children := make([]Drawable, len(grid.cells))
+	for i, cell := range grid.cells {
+		children[i] = cell.Content
+	}
+	return children
+}
+
 func (grid *Grid) Draw(ctx *Context) {
 	invalid := grid.invalid
 	if invalid {