summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-31 17:37:53 -0700
committerJeff Carr <[email protected]>2019-05-31 17:37:53 -0700
commit63d561351b27e675c4159c2bc36e76ffb4376247 (patch)
tree4e9361107cee0c7e3714b5accb74cc7d0840550e /area.go
parentb5d51c314debff42cf479b165f400d84a6b72f7e (diff)
lots of changes to track windows and tabs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'area.go')
-rw-r--r--area.go23
1 files changed, 15 insertions, 8 deletions
diff --git a/area.go b/area.go
index 1efd5c4..88723d0 100644
--- a/area.go
+++ b/area.go
@@ -20,24 +20,31 @@ func findFB(button *GuiButton) *GuiButton {
return a
}
-func makeSplashArea(wm *GuiWindow, ah *GuiArea) {
+func makeSplashArea(gb *GuiBox, newText *ui.AttributedString) {
// make this button just to get the default font (but don't display the button)
// There should be another way to do this (?)
- newB := CreateFontButton(wm, "AREA")
+ var newB *GuiButton
+ newB = CreateFontButton(gb, "AREA")
+
+ // initialize the GuiArea{}
+ gb.Area = new(GuiArea)
+ gb.Area.Window = gb.W
+ gb.Area.UiAttrstr = newText
// ah.UiAttrstr = makeAttributedString()
- ah.UiArea = ui.NewArea(ah)
- newB.A = ah.UiArea
- newB.WM = wm
+ gb.Area.UiArea = ui.NewArea(gb.Area)
+ newB.A = gb.Area.UiArea
+ newB.GW = gb.W
+ newB.Box = gb
// Data.AllButtons[1].A = ah.UiArea
// ah.Button = &Data.AllButtons[1]
- ah.Button = newB
+ gb.Area.Button = newB
if (Data.Debug) {
- spew.Dump(ah.UiArea)
+ spew.Dump(gb.Area.UiArea)
log.Println("DEBUGGING", Data.Debug)
} else {
- log.Println("NOT DEBUGGING AREA mhAH.Button =", ah.Button)
+ log.Println("NOT DEBUGGING AREA mhAH.Button =", gb.Area.Button)
}
}