This repository has been archived on 2022-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
spectator/exhibit/widget.go

30 lines
401 B
Go

package exhibit
type Border struct {
Top bool
Bottom bool
Left bool
Right bool
}
type Constraints struct {
Top bool
Bottom bool
Left bool
Right bool
}
type Size struct {
X int
Y int
}
type Widget interface {
Render() [][]Cell
Constraints() Constraints
SetConstraints(Constraints)
Size() Size
SetSize(size Size)
Attributes() Attributes
SetAttributes(attrs Attributes)
}