module pkg::alloy::window::uiasource
UI Automation for the Win32 window (PLAN.md, F6b): the window answers WM_GETOBJECT with a provider for the root of the tree the program sends, and every node gets a provider as UI Automation asks for it. A provider is one COM object with a table of functions for each interface it answers, at fixed offsets within it: the simple provider, the fragment, the fragment root (the root's only) and the patterns (Invoke for buttons, Toggle for checkboxes, RangeValue for sliders, Value for fields, combo boxes and buttons with a value, ScrollItem for anything, ExpandCollapse for what opens, Selection for list boxes, radio groups, tab lists and calendars, SelectionItem for their options, radios, tabs and days, Grid and Table for calendars, GridItem for their days, Text and Text2 for what has a text map: fields and texts of several lines, whose ranges are COM objects of their own, a node and two byte offsets, answered from the map by text_ranges.alloy). Calls come on the window's thread (ProviderOptions_UseComThreading); what a screen reader asks goes to the program as Event::Action, and changes to the tree raise UI Automation's events while a client listens.