erm/app/darktile/hinters/api_test.go

35 lines
514 B
Go
Raw Normal View History

2021-07-30 22:29:20 +00:00
package hinters
import (
"image"
2023-01-16 02:11:07 +00:00
"tuxpa.in/t/erm/app/darktile/termutil"
2021-07-30 22:29:20 +00:00
)
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() {
}