aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ui/stack.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui/stack.go')
-rw-r--r--lib/ui/stack.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ui/stack.go b/lib/ui/stack.go
index 2e3f0b99..75cc7807 100644
--- a/lib/ui/stack.go
+++ b/lib/ui/stack.go
@@ -15,6 +15,10 @@ func NewStack() *Stack {
return &Stack{}
}
+func (stack *Stack) Children() []Drawable {
+ return stack.children
+}
+
func (stack *Stack) OnInvalidate(onInvalidate func(d Drawable)) {
stack.onInvalidate = append(stack.onInvalidate, onInvalidate)
}