erm/internal/app/darktile/hinters/api_test.go
2021-07-30 23:29:20 +01:00

36 lines
535 B
Go

package hinters
import (
"image"
"github.com/liamg/darktile/internal/app/darktile/termutil"
)
type TestAPI struct {
highlighted string
}
func (a *TestAPI) ShowMessage(_ string) {
}
func (a *TestAPI) Highlight(start termutil.Position, end termutil.Position, label string, img image.Image) {
a.highlighted = label
}
func (a *TestAPI) ClearHighlight() {
a.highlighted = ""
}
func (a *TestAPI) CellSize() image.Point {
return image.Point{}
}
func (a *TestAPI) SetCursorToPointer() {
}
func (a *TestAPI) ResetCursor() {
}