diagram for horizontal and vertical

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-11 17:19:05 -06:00
parent bc292d0968
commit e198e78096
1 changed files with 24 additions and 1 deletions

25
geom.go
View File

@ -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