diff options
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 |
