ui::testing::ElementAccess¶
Header: winui/testing/ElementAccess.hpp.
What a test needs from an Element that only its window or container calls in an app.
clear_dirty¶
Clears flags on element and its subtree, as the window does after drawing a frame.
sync_composition¶
Runs the composition update the window runs after layout and input, against compositor, the test compositor.
set_focused¶
Shows element focused or not, as its window does when keyboard focus arrives or leaves.
set_focus_visible¶
Sets element's focus-visible state, as its window does when the input modality changes.
popup_request¶
The popup element has open (Element::open_popup()), or null.
dismiss_popup¶
static void dismiss_popup(Element& element, PopupCloseReason reason = PopupCloseReason::LightDismiss)
Dismisses element's popup as the window does on a press outside it or Escape.
place_popup¶
static bool place_popup(Element& element, Element& content, Size client, const MeasureContext& context)
Runs element's popup place callback as the window does; returns false without one.
collect_live¶
The elements the window asks for popups, tool tips, global shortcuts and focus requests, from element down.
layers_composed¶
Whether the compositor shows element's layers instead of the frame.