gocui/window.go

27 lines
472 B
Go
Raw Normal View History

package main
import (
"go.wit.com/widget"
)
func (w *guiWidget) redoWindows(nextW int, nextH int) {
var startW int = nextW
var startH int = nextH
for _, child := range w.children {
if child.node.WidgetType != widget.Window {
continue
}
child.frame = false
child.hasTabs = false
child.gocuiSetWH(nextW, nextH)
child.deleteView()
child.showView()
sizeW := child.gocuiSize.Width()
nextW += sizeW + 4
child.redoWindows(startW+3, startH+2)
}
}