summaryrefslogtreecommitdiff
path: root/toolkit/andlabs/box.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-27 09:47:31 -0500
committerJeff Carr <[email protected]>2023-04-27 09:47:31 -0500
commita0d0a93f7f7131f6ef50ebbe4bad9a57f2e1245d (patch)
tree1eab840434d0637e35087d59bb593ee6c7b132e1 /toolkit/andlabs/box.go
parent8d8aabd1c86399603347d24f9060ed311d66153c (diff)
andlabs: more into the binary tree
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/andlabs/box.go')
-rw-r--r--toolkit/andlabs/box.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/toolkit/andlabs/box.go b/toolkit/andlabs/box.go
index 527041d..72ff698 100644
--- a/toolkit/andlabs/box.go
+++ b/toolkit/andlabs/box.go
@@ -1,25 +1,23 @@
package main
import (
- "git.wit.org/wit/gui/toolkit"
-
"github.com/andlabs/ui"
_ "github.com/andlabs/ui/winmanifest"
)
// make new Box here
-func newBox(a *toolkit.Action) {
- log(debugToolkit, "newBox()", a.Name)
+func (p *node) newBox(n *node) {
+ log(debugToolkit, "newBox()", n.Name)
- t := andlabs[a.ParentId]
+ t := p.tk
if (t == nil) {
- log(debugToolkit, "newBox() toolkit struct == nil. name=", a.Name)
+ log(debugToolkit, "newBox() toolkit struct == nil. name=", n.Name)
listMap(debugToolkit)
}
- newt := t.rawBox(a.Text, a.B)
+ newt := t.rawBox(n.Text, n.B)
newt.boxC = 0
- place(a, t, newt)
- andlabs[a.WidgetId] = newt
+ n.tk = newt
+ p.place(n)
}
// make new Box using andlabs/ui