Rename Box.Empty as Clear

This commit is contained in:
Trevor Slocum 2023-12-25 00:19:46 -08:00
parent 408674fd59
commit f5907a5e71

4
box.go
View file

@ -115,8 +115,8 @@ func (b *Box) AddChild(w ...Widget) {
b.children = append(b.children, w...)
}
// Empty removes all children from the widget.
func (b *Box) Empty() {
// Clear removes all children from the widget.
func (b *Box) Clear() {
b.Lock()
defer b.Unlock()