From a0c2b1caf03d0ed8b89de8402fcc14b003969e2c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 20 Jan 2019 15:06:44 -0500 Subject: Implement the Container interface in lib/ui/ --- lib/ui/stack.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/ui/stack.go') 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) } -- cgit v1.2.3