ui::AutomationEvents¶
Header: winui/ui/AutomationTree.hpp.
Receives what changed in a Window, for accessibility clients. The platform passes these changes on to screen readers, and a test can record them (ui::testing::seams(window)).
The window reports after each layout, which follows every input it handles, in this order: 1. menus that opened or closed, and the nodes whose children changed with them 1. the node automation_focus() names: a new one as focused, or the same one's changed properties 1. a change among the items around it (added, removed or renamed)
~AutomationEvents¶
listening¶
Whether a client is listening; while false the window skips the checks.
focus_changed¶
node took keyboard focus as automation sees it.
property_changed¶
virtual void property_changed(Element& node, AutomationProperty property, const AutomationValue& before, const AutomationValue& after) = 0
property of node, the node with automation focus, went from before to after.
menu_opened¶
A menu (a node with AutomationRole::Menu) opened.
menu_closed¶
A menu closed.
structure_changed¶
node's automation children changed: one came, went or was renamed.