Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageNotFoundError = errors.New("file not found")
View Source
var ImageUnknownError = errors.New("unknown error")
View Source
var ImageUnsupportedFormatError = errors.New("unsupported format")
View Source
var InvalidConfigurationError = errors.New("invalid configuration provided")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetPollInterval ¶
func (c *Config) GetPollInterval() *PollInterval
type Finder ¶
type Finder struct {
// contains filtered or unexported fields
}
func NewFinder ¶
func NewFinder(screen *Screen, pollInterval *PollInterval) *Finder
type HighlightRequest ¶
type HighlightRequest struct { ScreenWidth int `arg:"--screen-width"` ScreenHeight int `arg:"--screen-height"` X float64 `arg:"--x"` Y float64 `arg:"--y"` Width float64 `arg:"--w"` Height float64 `arg:"--h"` Duration float64 `arg:"--d"` }
func (HighlightRequest) AsArgsArray ¶
func (r HighlightRequest) AsArgsArray() []string
type Highlighter ¶
type Highlighter struct {
// contains filtered or unexported fields
}
func NewHighlighter ¶
func NewHighlighter(highlighterBinary []byte) *Highlighter
func (*Highlighter) Highlight ¶
func (h *Highlighter) Highlight(r *HighlightRequest)
type Match ¶
type Match struct { Region // contains filtered or unexported fields }
func (*Match) GetConfidence ¶
type PollInterval ¶
type Region ¶
type Region struct {
// contains filtered or unexported fields
}
func (*Region) GetTopLeft ¶
type Screen ¶
type Screen struct { Region // contains filtered or unexported fields }
func NewScreen ¶
func NewScreen(highlighter *Highlighter, interval *PollInterval) *Screen
Source Files ¶
Click to show internal directories.
Click to hide internal directories.