diff options
| author | Jeff Carr <[email protected]> | 2023-05-09 20:25:37 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-05-09 20:25:37 -0500 |
| commit | 26b06253d540fbcac2ae1372aa7fc0b1089bab98 (patch) | |
| tree | 9afc2600ce0633e85990f8376091d93fec7c6d3a /toolkit/nocui | |
| parent | 45ef7f37c4af0495ccf988f2f726aaea24a999e4 (diff) | |
more code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/nocui')
| -rw-r--r-- | toolkit/nocui/common.go | 6 | ||||
| -rw-r--r-- | toolkit/nocui/structs.go | 6 |
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 } |
