From d6b1fa497dcb21e194348d321bfc25f6b128438f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 4 Apr 2023 06:31:30 -0500 Subject: gocui: use (w,h) and avoid (x,y) names Signed-off-by: Jeff Carr --- toolkit/gocui/structs.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'toolkit/gocui/structs.go') 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 -- cgit v1.2.3