Skip to main content

xa11y_linux/
lib.rs

1//! Linux accessibility backend using AT-SPI2 over D-Bus.
2//!
3//! This backend implements the `Provider` trait using the AT-SPI2 accessibility API.
4//! Requires `at-spi2-core` package and toolkit accessibility to be enabled.
5
6#[cfg(target_os = "linux")]
7mod atspi;
8
9#[cfg(target_os = "linux")]
10mod events;
11
12#[cfg(target_os = "linux")]
13mod input;
14
15#[cfg(target_os = "linux")]
16mod screenshot;
17
18#[cfg(target_os = "linux")]
19pub use atspi::LinuxProvider;
20
21#[cfg(target_os = "linux")]
22pub use input::LinuxInputProvider;
23
24#[cfg(target_os = "linux")]
25pub use screenshot::LinuxScreenshot;
26
27#[cfg(not(target_os = "linux"))]
28mod stub;
29
30#[cfg(not(target_os = "linux"))]
31pub use stub::{LinuxInputProvider, LinuxProvider, LinuxScreenshot};