diff options
| author | Jeff Carr <[email protected]> | 2023-04-04 06:31:30 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-04 06:31:30 -0500 |
| commit | d6b1fa497dcb21e194348d321bfc25f6b128438f (patch) | |
| tree | e653d621c1302dd58de4b8b280cd13f613e518b7 /toolkit/gocui/structs.go | |
| parent | 8982b2a8cfb10ad2ac2e50c0fcbdad88556e495a (diff) | |
gocui: use (w,h) and avoid (x,y) names
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/structs.go')
| -rw-r--r-- | toolkit/gocui/structs.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toolkit/gocui/structs.go b/toolkit/gocui/structs.go index 2b91de4..b4a2ab6 100644 --- a/toolkit/gocui/structs.go +++ b/toolkit/gocui/structs.go @@ -94,6 +94,13 @@ type cuiWidget struct { realSize rectType // the display size of this widget logicalSize rectType // the logical size. Includes all the child widgets + // used to track the size of grids + logicalW map[int]int // how tall each row in the grid is + logicalH map[int]int // how wide each column in the grid is + // where in the parent grid this widget should go + parentW int + parentH int + nextW int nextH int |
