summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/structs.go b/structs.go
index 27632aa..53572f2 100644
--- a/structs.go
+++ b/structs.go
@@ -66,17 +66,22 @@ type Node struct {
width int
height int
- // used for anything that needs a range
+ // used for anything that needs a range (for example: a slider)
X int
Y int
- // the position of the widget in a grid
- AtW int
- AtH int
- // where the next widget should be put in a grid
+ // the grid max width and height
+ // ignore max height when there is no space left?
+ W int
+ H int
+ // where the next widget should be put in this grid
NextW int
NextH int
+ // if this widget is in a grid, this is the position
+ AtW int
+ AtH int
+
// used for values
I int
S string