Hopefully making good choices

This commit is contained in:
2025-10-29 16:54:38 -05:00
parent 8f6e52df41
commit 250e33f8e2
6 changed files with 494 additions and 10 deletions

View File

@@ -27,6 +27,11 @@ type Coord struct {
X, Y int
}
func CoordFromER(ev *tcell.EventResize) Coord {
w, h := ev.Size()
return Coord{X: w, Y: h}
}
func (p Coord) Add(o Coord) Coord {
return Coord{
X: p.X + o.X,