Skip to main content

xa11y_core/
lib.rs

1pub mod action;
2pub mod app;
3pub mod element;
4pub mod error;
5pub mod event;
6pub mod event_provider;
7pub mod locator;
8pub mod provider;
9pub mod role;
10pub mod selector;
11
12// Re-export primary types at the crate root for convenience.
13pub use action::{Action, ActionData};
14pub use app::App;
15pub use element::{Element, ElementData, RawPlatformData, Rect, StateSet, Toggled};
16pub use error::{Error, Result};
17pub use event::{ElementState, Event, EventType, StateFlag, TextChangeData, TextChangeType};
18pub use event_provider::{CancelHandle, EventReceiver, Subscription, SubscriptionIter};
19pub use locator::Locator;
20pub use provider::Provider;
21pub use role::{unknown_role, Role};
22pub use selector::Selector;
23
24/// Maximum tree traversal depth for providers. Prevents stack overflow from
25/// circular accessibility trees (e.g. Qt/PySide6 apps where the application
26/// node lists itself as its own child).
27pub const MAX_TREE_DEPTH: u32 = 50;