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§
- Apple
Event Report - Outcome of an Apple event script.
- Dock
Click Report - What
dock_clickdid. - Dock
Item - One Dock item.
- Dock
List Report - Full Dock listing.
- Linux
Desktop Backend - Linux desktop backend. Methods are implemented in this module.
- Menu
Click Report - What
menu_clickdid. - Menu
List Report - Full menu report for one running app.
- Menu
Node - One entry under a menu bar item or submenu. The macOS backend fills
titlefromAXTitle,enabledfromAXEnabled, and recurses intoAXMenuchildren up todepthlevels. - Window
Target - One window selected for capture.
Traits§
- Desktop
Backend - 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
keyis not a known name or a single character.