summaryrefslogtreecommitdiff
path: root/toolkit/gocui/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-06 11:19:04 -0500
committerJeff Carr <[email protected]>2023-04-06 11:19:04 -0500
commitc16b8695332485071331bbcab924327cd2bab6e5 (patch)
treeec66859a0e958f0f7eb752a7935941e65fc11c05 /toolkit/gocui/structs.go
parent012c22faf3d3611d247fbe53928347770f6f4fbc (diff)
gocui: more or less correct sizesv0.7.7
init to normal state (debug=off) size handling cleanups keep trying to fix grid widget move towards cmdline/auto loading of gocui Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/structs.go')
-rw-r--r--toolkit/gocui/structs.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/toolkit/gocui/structs.go b/toolkit/gocui/structs.go
index 74a4621..f83622a 100644
--- a/toolkit/gocui/structs.go
+++ b/toolkit/gocui/structs.go
@@ -60,8 +60,8 @@ var (
// corner starts at in the upper left corner
type rectType struct {
// where the widget should calculate it's existance from
- startW int
- startH int
+ // startW int
+ // startH int
// the actual size
width int
@@ -85,10 +85,14 @@ type cuiWidget struct {
// visable bool // track if it's currently supposed to be shown
isFake bool // widget types like 'box' are 'false'
- // where the widget should add children
+ // where the widget's real corner is
startW int
startH int
+ // where the next child should be placed
+ nextW int
+ nextH int
+
// the widget size to reserve or things will overlap
realWidth int
realHeight int
@@ -104,10 +108,6 @@ type cuiWidget struct {
parentW int
parentH int
- // deprecate
- nextW int
- nextH int
-
// things from toolkit/action
b bool
i int