summaryrefslogtreecommitdiff
path: root/toolkit/nocui
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/nocui')
-rw-r--r--toolkit/nocui/common.go6
-rw-r--r--toolkit/nocui/structs.go6
2 files changed, 12 insertions, 0 deletions
diff --git a/toolkit/nocui/common.go b/toolkit/nocui/common.go
index e68308d..a012138 100644
--- a/toolkit/nocui/common.go
+++ b/toolkit/nocui/common.go
@@ -35,9 +35,15 @@ func addWidget(a *toolkit.Action) *node {
n.I = a.I
n.S = a.S
n.B = a.B
+
n.X = a.X
n.Y = a.Y
+ n.W = a.W
+ n.H = a.H
+ n.AtW = a.AtW
+ n.AtH = a.AtH
+
// store the internal toolkit information
n.tk = new(nocuiT)
diff --git a/toolkit/nocui/structs.go b/toolkit/nocui/structs.go
index ed004de..c3ece3b 100644
--- a/toolkit/nocui/structs.go
+++ b/toolkit/nocui/structs.go
@@ -27,6 +27,12 @@ type node struct {
X int
Y int
+ // This is for the grid size & widget position
+ W int
+ H int
+ AtW int
+ AtH int
+
// the internal plugin toolkit structure
tk *nocuiT
}