wininfo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveWindowChangeCallback

type ActiveWindowChangeCallback func(*WinInfo)

type WinGetter

type WinGetter interface {
	// GetActiveWindow returns the current active window information
	GetActiveWindow() (*WinInfo, error)
	// OnActiveWindowChange registers a callback function to be called when the active window changes
	// The callback function will be called with the new active window information
	// The function should return an error if it fails to register the callback
	OnActiveWindowChange(ActiveWindowChangeCallback) error
	// Close closes the window info service
	Close()
}

type WinInfo

type WinInfo struct {
	Title string
	Class string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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