So much work
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user