Documentation
¶
Index ¶
- Variables
- func ApplicationNamesMatch(owner, requested string) bool
- func FrontmostWindow(x *xgbutil.XUtil) xproto.Window
- func IsHelperProcess() bool
- func RunHelper(input io.Reader, output io.Writer) (err error)
- func TopmostWindow(x *xgbutil.XUtil, pid int, name string) xproto.Window
- func WindowBounds(ctx context.Context, target string) ([4]int, error)
- type Provider
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ApplicationNamesMatch ¶ added in v0.208.0
ApplicationNamesMatch reports whether an application (or window class) name matches a requested name, ignoring case, spaces and punctuation.
func FrontmostWindow ¶ added in v0.228.0
FrontmostWindow returns the active X11 window, or the topmost client window when no window manager publishes _NET_ACTIVE_WINDOW.
func IsHelperProcess ¶
func IsHelperProcess() bool
IsHelperProcess reports whether this process was launched as the isolated accessibility bridge. The CLI entry point checks this before constructing any services or presentation state.
func TopmostWindow ¶ added in v0.228.0
TopmostWindow returns the topmost client window owned by pid or, when pid is zero, whose WM_CLASS matches the application name.
Types ¶
type Provider ¶
type Provider interface {
Elements(ctx context.Context, target string) ([]computerdomain.UIElement, error)
Press(ctx context.Context, target, label string) error
}
Provider reads and acts on the host accessibility tree.
func NewProvider ¶
func NewProvider() Provider
NewProvider returns the platform provider. Native API calls are made only by a short-lived helper process, so a fatal foreign-library fault cannot terminate the CLI process.