diff options
| author | Jeff Carr <[email protected]> | 2023-04-05 18:10:53 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-05 18:10:53 -0500 |
| commit | 56c45d93e435e1ab121cf2fad26e48312fff9244 (patch) | |
| tree | 2ebe899b2b85da8b16ed116fb874c386effa08ec /toolkit/gocui/structs.go | |
| parent | 6b1de07b09a9fd665249d2b5f72b5216fed06479 (diff) | |
gocui: store more in w.gocuiSize.
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/structs.go')
| -rw-r--r-- | toolkit/gocui/structs.go | 10 |
1 files changed, 9 insertions, 1 deletions
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 |
