From 26b06253d540fbcac2ae1372aa7fc0b1089bab98 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 9 May 2023 20:25:37 -0500 Subject: more code cleanups Signed-off-by: Jeff Carr --- toolkit/nocui/common.go | 6 ++++++ toolkit/nocui/structs.go | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'toolkit/nocui') 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 } -- cgit v1.2.3