summaryrefslogtreecommitdiff
path: root/tab.go
diff options
context:
space:
mode:
Diffstat (limited to 'tab.go')
-rw-r--r--tab.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/tab.go b/tab.go
index d2b57ce..d92c427 100644
--- a/tab.go
+++ b/tab.go
@@ -108,3 +108,23 @@ func (p *guiWidget) redoTabs(nextW int, nextH int) {
nextW += sizeW
}
}
+
+func (p *guiWidget) drawWindow(nextW int, nextH int) {
+ for _, w := range p.children {
+ w.frame = true
+
+ w.gocuiSetWH(nextW, nextH)
+ w.deleteView()
+ // setCurrentTab(n)
+ // if (len(w.cuiName) < 4) {
+ // w.cuiName = "abcd"
+ // }
+
+ w.showView()
+
+ sizeW := w.Width() + me.TabPadW
+ sizeH := w.Height()
+ log.Log(NOW, "redoTabs() start nextW,H =", nextW, nextH, "gocuiSize.W,H =", sizeW, sizeH, w.String())
+ nextW += sizeW
+ }
+}