diff options
Diffstat (limited to 'toolkit/gocui/structs.go')
| -rw-r--r-- | toolkit/gocui/structs.go | 10 |
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 } |
