summaryrefslogtreecommitdiff
path: root/window.go
blob: 0918c4510eeef2e159b91a541549e22774e14a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)
	}
}