summaryrefslogtreecommitdiff
path: root/toolkit/gocui/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-05-10 14:28:30 -0500
committerJeff Carr <[email protected]>2023-05-10 14:28:30 -0500
commit19e6ea76f3c09fe3a5d9a4d4caff7d14571f4ba5 (patch)
tree6e1c9e86c9a591d6b0a7ca686026d783de1d67ac /toolkit/gocui/structs.go
parentcb0e8a7146c055b47f42d0a1005b93e08492e6ca (diff)
andlabs: debugging flags working againv0.8.6
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/structs.go')
-rw-r--r--toolkit/gocui/structs.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/toolkit/gocui/structs.go b/toolkit/gocui/structs.go
index b2a8b20..1fa6692 100644
--- a/toolkit/gocui/structs.go
+++ b/toolkit/gocui/structs.go
@@ -93,7 +93,7 @@ var (
// this is the standard binary tree structure for toolkits
type node struct {
- parent *node
+ parent *node
children []*node
WidgetId int // widget ID
@@ -115,6 +115,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 *cuiWidget
}
@@ -199,7 +205,7 @@ type cuiWidget struct {
v *gocui.View
frame bool
- parent *cuiWidget
+ parent *cuiWidget
children []*cuiWidget
}