diff options
Diffstat (limited to 'geom.go')
| -rw-r--r-- | geom.go | 38 |
1 files changed, 2 insertions, 36 deletions
@@ -1,37 +1,5 @@ package widget -/* - 2D geometry values - - There are lots of issues when supporting multiple toolkit plugin - geometries. The geometries vary widely especially between the - graphical displays and the serial console ones. - - To simplyfy this, we stick to using the concepts: - - ------------------------------ ^ - | top | | - | | | - | left right | height - | | | - | bottom | | - ------------------------------ v - - <----------- width ----------> - - This way, width & height are always positive numbers. - - The qustion of (top,bottom) & (left,right) becomes problematic. - - In almost every toolkit, right > left. However, top & bottom - vary and a choice can not be made easily. Luckily, we maybe do - not have to make that decision here and can pass that determination - to the toolkits. So, we use excusively: - - geom(left, right, top, bottom) - size(width, height) -*/ - type Geom struct { Left any Right any @@ -45,8 +13,7 @@ type Size struct { } /* -```go - Horizontal means layout widgets like books on a bookshelf +Horizontal means layout widgets like books on a bookshelf --------------------------------- | W | W | W | W | W | W | W | W | @@ -57,7 +24,7 @@ type Size struct { | t | t | t | t | t | t | t | t | --------------------------------- - Vertical means layout widgets like books in a stack +Vertical means layout widgets like books in a stack ---------- | Widget | ---------- @@ -67,7 +34,6 @@ type Size struct { ---------- | Widget | ---------- -``` */ type Orientation int |
