1
0
Fork 0
tetris-go/game/ui/component.go

14 lines
258 B
Go

package ui
// Focusable is a component that can have focus
type Focusable interface {
SetFocus(value bool)
Focus()
Unfocus()
HasFocus() bool
}
// ReceivesInput is a component that can receive user input.
type ReceivesInput interface {
HandleInput()
}