summaryrefslogtreecommitdiff
path: root/geom.go
diff options
context:
space:
mode:
Diffstat (limited to 'geom.go')
-rw-r--r--geom.go25
1 files changed, 24 insertions, 1 deletions
diff --git a/geom.go b/geom.go
index 2232807..cfa5531 100644
--- a/geom.go
+++ b/geom.go
@@ -44,7 +44,30 @@ type Size struct {
Height any
}
-type Orientation int // Add, SetText, Click, Hide, Append, Delete, etc
+/*
+ Horizontal means layout widgets like books on a bookshelf
+
+ ---------------------------------
+ | W | W | W | W | W | W | W | W |
+ | i | i | i | i | i | i | i | i |
+ | d | d | d | d | d | d | d | d |
+ | g | g | g | g | g | g | g | g |
+ | e | e | e | e | e | e | e | e |
+ | t | t | t | t | t | t | t | t |
+ ---------------------------------
+
+ Vertical means layout widgets like books in a stack
+ ----------
+ | Widget |
+ ----------
+ | Widget |
+ ----------
+ | Widget |
+ ----------
+ | Widget |
+ ----------
+*/
+type Orientation int
const (
Horizontal Orientation = iota