So much work

This commit is contained in:
2025-08-06 16:15:08 -05:00
parent 1474caffaa
commit 81c7ec8324
20 changed files with 1386 additions and 376 deletions

View File

@@ -37,10 +37,13 @@ type Widget interface {
Visible() bool
SetVisible(bool)
Focusable() bool
Tabbable() bool
SetTabbable(bool)
SetX(int)
SetY(int)
GetX() int
GetY() int
GetPos() Coord
SetPos(Coord)
// Whatever is managing this widget (parent widget, screen, etc) should
// tell it exactly what the Width & Height are.
@@ -52,6 +55,9 @@ type Widget interface {
// Given infinite space, WantW & WantH are what this widget wants
WantW() int
WantH() int
// MinW & MinH are what this widget must have to be functional.
MinW() int
MinH() int
SetSize(Coord)
}