Implement the Container interface in lib/ui/

This commit is contained in:
Drew DeVault 2019-01-20 15:06:44 -05:00
parent 87fa305848
commit a0c2b1caf0
5 changed files with 26 additions and 7 deletions
lib/ui

View file

@ -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)
}