module accesssource
The accessibility tree (PLAN.md, F6): each element described by its widget's semantics, the elements without a role left out and their children given to the nearest described ancestor, under a node for the window. Nothing is built until a screen reader asks; then each frame drawn sends the window the nodes changed since the last, and what the screen reader asks comes back as the element's input.
const WINDOW_NODEsource
exp const WINDOW_NODE: u64 = 1 << 63;
The window's node, above every element's.
fn access_idsource
exp fn access_id(self ui: &Ui, index: u32) -> u64
An element's node: its generation and its index plus one, so no element's is 0.
fn access_updatesource
exp fn access_update(self ui: &var Ui) -> Option<TreeUpdate>
The nodes changed since last sent, as sent; none when nothing changed.
fn access_actionsource
exp fn access_action(self ui: &var Ui, request: &ActionRequest)
Does what a screen reader asks: focusing and scrolling into view itself, a click as a click at the element's middle, stepping as the arrow keys, the rest as Input::Action.