summary refs log tree commit diff stats
path: root/lib/ui/tab.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui/tab.go')
-rw-r--r--lib/ui/tab.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ui/tab.go b/lib/ui/tab.go
index 8f08978..ecd48eb 100644
--- a/lib/ui/tab.go
+++ b/lib/ui/tab.go
@@ -107,6 +107,14 @@ func (strip *TabStrip) OnInvalidate(onInvalidate func(d Drawable)) {
 	strip.onInvalidateStrip = onInvalidate
 }
 
+func (content *TabContent) Children() []Drawable {
+	children := make([]Drawable, len(content.Tabs))
+	for i, tab := range content.Tabs {
+		children[i] = tab.Content
+	}
+	return children
+}
+
 func (content *TabContent) Draw(ctx *Context) {
 	if content.Selected >= len(content.Tabs) {
 		width := ctx.Width()
href='#n89'>89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109