Implement the Container interface in lib/ui/
This commit is contained in:
parent
87fa305848
commit
a0c2b1caf0
5 changed files with 26 additions and 7 deletions
lib/ui
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue