A visible Ui's registration of a widget that only invisible (sizing-pass) Uis registered so far replaces the widget
rect and takes its place at the top of its layer. Widget rects carry when they took their place, and
pass_records_since finds a part's widgets by it, so a part holds the widgets a sizing pass registered before its
mark. Records leave out Shape::Noop shapes, layers left empty, and widgets neither visible nor enabled.
PassRecords::shifted gives the records as a replay at a RecordShift adds them. Ui::new disables before it registers
its widget, as new_child does.
replay_pass_records takes a RecordShift: shapes, widget rects and AccessKit bounds move by its
offset in layer space; a clip rect equal to the clip the part ran under becomes the new clip, and
one set inside the part moves with it, cut by the new clip. PassRecords::paints_callback says
whether records hold a paint callback, which a replay adds only where it was made.
`pass_records_since` gives shapes and widget rects with their layers sorted by order and id, since the maps they
come from have no stable order. `first_difference` reports a paint callback on either side as
`PassRecordsDiff::Callback`: a backend wraps every callback in one type, so neither its type nor its rect tells
whether two callbacks paint the same. Its doc says what the records cover and what they don't, and `Display` shows
the variant, index and rects only. PATCHES.md lists the pass records (E36), `HarnessBuilder::with_context` (E37) and
this comparison (E38).
Shapes layer by layer, then widget rects, AccessKit nodes and AccessKit parents compare with `==`, except a paint
callback, which compares by its rect and its callback's type: each run makes a new callback, and `PaintCallback`'s
`PartialEq` compares the callback by pointer. `PassRecordsDiff` gives the kind, the index and the record on each side.
Popup::show makes its area a sublayer of the layer it opened from when both share an Order (tooltips aside). Areas::end_pass follows each layer with its whole sublayer tree, depth first, and set_layer_order moves a listed layer with all of its unlisted descendants.
egui-winit sends it from State::new and on WindowEvent::ThemeChanged; eframe web
at start and on the prefers-color-scheme change. RawInput::system_theme keeps
the same value; the event is the change notice.
Add ScrollArea::horizontal_scroll_bar_label and vertical_scroll_bar_label.
The scroll bar AccessKit node had no name, which fails WCAG 4.1.2. The
labels are per axis because a name cannot be composed from a shared
string in every language, and egui has no built-in UI text.
A composition belongs to the focused IME context it began in. An editor
that comes back after a pass it was not shown in, or gains the focus,
starts a new context; its old composition ends there, the pre-edit text
kept in the buffer as typed and the cursor at its end. `preedit()` is
then `None`, so a widget wrapping `TextEdit` no longer sees stale
marked text in a field refocused in the pass it reappears.
The IME composition under way: the character range of the pre-edit
(marked) text in the buffer and that text, or `None` when nothing is
composing. While composing, the buffer holds the marked text beside the
committed text; a widget that wraps a `TextEdit` and reports only
committed text removes this range, and shows the same buffer in the next
pass so the composition goes on.
storytold/winit craft/0.30.13 (W1–W15) with the language-support
patches on top (W17–W27). It has the same IME, Latin-layout and
delete-surrounding APIs as craft/suite, and W15's Wayland clipboard
(platform::wayland::Clipboard) that E4 uses.