From 56c45d93e435e1ab121cf2fad26e48312fff9244 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 5 Apr 2023 18:10:53 -0500 Subject: gocui: store more in w.gocuiSize. Signed-off-by: Jeff Carr --- toolkit/gocui/structs.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'toolkit/gocui/structs.go') diff --git a/toolkit/gocui/structs.go b/toolkit/gocui/structs.go index 27059fd..3b10296 100644 --- a/toolkit/gocui/structs.go +++ b/toolkit/gocui/structs.go @@ -65,6 +65,14 @@ var ( // the logical size of the widget // corner starts at in the upper left corner type rectType struct { + // where the widget should calculate it's existance from + startW int + startH int + + // the actual size + width int + height int + // this is the gocui way w0, h0, w1, h1 int // left top right bottom } @@ -90,7 +98,7 @@ 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 calculate it's existance from + // where the widget should add children startW int startH int -- cgit v1.2.3