watcher

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoType = iota
	TextType
	ImageType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher struct {
	Context      context.Context
	TextChan     <-chan []byte
	ImageChan    <-chan []byte
	DetectChan   chan bool
	CurrentType  WatcherType
	IgnoreChange bool
}

func NewWatcher

func NewWatcher() *Watcher

func (*Watcher) Init

func (w *Watcher) Init()

func (*Watcher) WatchClipboard

func (w *Watcher) WatchClipboard(appState *vars.AppState, window *app.Window)

type WatcherType

type WatcherType int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL