Skip to main content

Module backend

Module backend 

Source
Expand description

Platform desktop backends.

Screenshot capture uses xcap. Pointer and keyboard input use enigo. Accessibility and the frontmost window are platform-specific and best-effort.

Re-exports§

pub use DesktopBackend as Backend;

Structs§

AppleEventReport
Outcome of an Apple event script.
DockClickReport
What dock_click did.
DockItem
One Dock item.
DockListReport
Full Dock listing.
LinuxDesktopBackend
Linux desktop backend. Methods are implemented in this module.
MenuClickReport
What menu_click did.
MenuListReport
Full menu report for one running app.
MenuNode
One entry under a menu bar item or submenu. The macOS backend fills title from AXTitle, enabled from AXEnabled, and recurses into AXMenu children up to depth levels.
WindowTarget
One window selected for capture.

Traits§

DesktopBackend
Desktop automation surface used by crate::dispatch.

Functions§

create_desktop_backend
Create the backend for the current operating system.
shutdown_sessions
Restore Electron flags and stop observers. No-op off macOS.
validate_key
Return an error when key is not a known name or a single character.