aboutsummaryrefslogtreecommitdiff
path: root/lib/ui/stack.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-20 15:06:44 -0500
committerDrew DeVault <sir@cmpwn.com>2019-01-20 15:06:44 -0500
commita0c2b1caf03d0ed8b89de8402fcc14b003969e2c (patch)
treeef20eb601dcf9238b6d57aad7ae69e0f5c5d4d51 /lib/ui/stack.go
parent87fa305848a893b1c85472ea394f24486bd478b6 (diff)
Implement the Container interface in lib/ui/
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 2e3f0b9..75cc780 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)
}