Step 8 registers the root's own sense and its parts'. After paint_over, every member
of its arena has joined, and the root's widget and its transformed body's forwarding
widget take the members' senses (egui ORs the sense of a widget registered again in a
pass). A press's untargeted check reads the root widget's sense from the pass egui's
targets come from. The union of last pass's members goes.
The tab row measures the new label before it places its tabs, so the
frame runs one pass and no discard pass runs the row again. A row whose
measured state the pass changes after step 5 measured it is measured
again with its new state.
The rows' measure at step 5 runs under a layout memory boundary: no
transcript around takes its records, so a body's kept transcript serves
a settled frame as it did before the rows were measured there.
A member that gives no place of its own marks its stop at its report;
the group's owner, at its report after its body ran, writes each marked
member's position and set size from this pass's members. The mark is on
the stop record, so a replayed member carries it. Nothing reads last
pass's stops for a set position.
Step 5 measures the auto rows in the view the collection takes that this
pass has not measured, widths first, then heights, and sizes and places
the rows by that measure. The measuring run and the real run of a pass
share one measure through the pass stamp on the lazy store's row entry;
the content step measures only the rows it brings in itself and the rows
whose measured state this pass's input changed, and a size other than
the one the pass placed by asks for the frame's discard pass.
The row env and the row state known before input are one function each,
shared by the measure and the content step. ItemCx documents the
row-hook contract.
Stops register after update, which calls Cx::join_roving, so a stop and its focusable parts are in the body's
roving group from the first pass that shows them. Membership is a field of the pass (roving_member), read by the
stops and the report step; the pass-stamped join slots in egui memory (join_group, member_group, join_part_group,
part_group) go. testing::focus::pass_stop_groups reads what the running pass registered.
A run notes each layout memory entry and kept transcript it keeps (replay::note_layout_keep, from read, record,
end_measure and kept_serves) in Facts::layout_keeps, merged outward like owners. A replay keeps them through one
layout_memory::keep and passes them to the record open around it. The journal no longer holds where the run measured,
which changes with the path layout memory takes and means nothing to a replay.
A view whose room moved (a scroll) replays its record shifted. Its audit run compares with the kept record as that
replay adds it: egui's records through PassRecords::shifted, journal entries with their arguments shifted, and the
kept rect moved by the shift's offset. journal's again is Copy (every capture-free closure is).
Test builds only. With CRAFT_UI_AUDIT_REPLAY=1 (or testing::audit_replays), the outermost view that would replay in a
real pass runs for real inside an audit record; the kept run stays as it was. The run is compared with what the replay
adds: the view's rect, paint, widget rects and AccessKit nodes (PassRecords::first_difference), focus registrations,
the journal and the output. A difference panics with the view's name and the first difference of each kind. Counters
count nothing inside an audit run, so the count trials hold under the audit.
A record that paints a paint callback is blocked: its view runs every pass, and the audit names it.
replay notes the replayed record's journal into the records open around it and keeps entries' calls from noting
again, so an outer record holds each entry once whether its call journals itself or not.
A replayed scope takes its opener by the same rule as a run (the opener is focus-service state, not view output), and
transcripts compare without it. Transcript::first_difference names the first record two transcripts differ in.
`Transcript` equality compares the form a replay registers (`Transcript::placed`, which `focus::replay` uses): a
record under the scope open around the run goes under the open scope, and a replayed scope is no new scope.
A replayed member join and `over` placement take their stack positions from the arena they join in the replaying
pass, as a real run does: the journal notes the members as declared with the layer and clip, and the join and the
`over` placement record their shapes themselves. The `journal` doc says the capture assert fires in a build, not in
`cargo check`.
Lazy::settles, Lazy::content, Key::Version, the input and unsettle rules
(Changes::input_through, unsettled_through, scan) and lazy::unsettle with its
callers are removed. frame::request_repaint marks the record of the view it
is asked in and reruns only that view; asked outside every view, every view
replays. request_own_repaint goes; ui-canvas calls request_repaint. Pages
measures each hidden page once per pass. The tests that used the old API are
memoized views, with trials for repaints in and outside views and for
given-value edits. API map rows and the framework doc describe memoized
views.
A kept run replays where its room is now: the room's position leaves the place comparison and
becomes the offset of one RecordShift, which moves egui's records, every journal entry and what
a memoized view returned. Room size, layer, layout, scale and environment stay compared.
- Place::shift_to: the move is a whole step of egui's UI rounding; a moved record holds no paint
callback and sits on an untransformed layer; clip rects follow when the clip moved with the
room, or when the run lay wholly inside its clip (nothing culled). Otherwise the view runs.
- Shift: journal arguments (A: Shift) and MemoView's R (R: Shift) move by the replay's shift
inside replay::replay; rects and points move, Clip goes through the clip rule, the rest stays
(stays!). Vec2 has no impl: a size and a move are both Vec2.
- The engaged test reads the moved rect; the scroll-view rule compares the view moved with the
record while the clip moved with it; sizing extents compare the room's size.
- The scroll body moves its content by whole UI rounding steps, as egui places widget rects.
- Trials: a moved replay equals a run there (pass records, revealed rects, returned rect); a room
of another size runs; a cut run moved under its clip runs and moved with its clip replays; the
Overview's scroll runs only entering cards and the pointer's.
An idle viewer runs no panel body; a filter edit runs the tree and the
Overview; a selection change runs the panels that read it; a Properties
edit runs Properties, the Overview and one card. A saved layout round-trips
its component tabs by name and drops the ones the catalog lacks. The idle
Overview and shell-region trials account for the Overview's own view.
The tree, stories, properties, inspector, Overview, component tabs and the
Variants view each read only their props. The browser's panel state is
Tracked and written only on a change; tab opens and Variants requests leave
through outboxes. The shell places the Variants view from the dock layout.
PanelId::Component holds an owned TabName; a saved layout drops the tabs the
catalog does not list, which replaces the interned static names.
Each card is a memoized view over its spec and the states of its stories; each story's surface is a memoized view
keyed by its data's revision, which the end of its run, the Properties editors and the dialog opener move through
StoryData::settle. The story's surface is inside its view, so a story that fills takes its content's height there.
The card Lazy no longer settles; inspection records and value texts are journaled, so a replay keeps them. The
browse places and relink stories ask for their next run with the framework's repaint, which reruns the view.
Trials: an idle Overview runs no card or story, a story data edit runs one card, a scroll runs only cards in view,
a story with its dialog open runs every frame, and the inspected card replays with its run's record.
StoryData's accessors hand out &mut T, so a write leaves no trace of its own: settle() compares the values with the
copy the last call kept and moves the revision only on a change. A memoized view of a story keys on the revision
(MemoProps for &mut StoryData) and settles at the end of its run; restore settles too. Pad derives MemoProps.
The run placed a child Ui at the cell's region and moved past its content without taking the cell, so two views in a
grid row overlapped, and the replay took the cell through take_in_flow at the row's height, so the body around it found
a measure its kept transcript did not hold and discarded the pass. Both now place the view through one function: the
next cell at the view's extent in a Grid or spread Row, else past the kept rect, which a real replay has at the place
its run was.
The grid's events leave through an Outbox; the Edit Toolbar response is read back by id. ToolRail needs T: MemoProps.
commands::resolver_in resolves commands for a view with no component context.
BarItem, ItemDisplay, MoreMenu, BarKind, StatusMessage, StatusProgress, StatusItem, StatusValues and StatusReadout key
a memoized view; Axis, Side and PixelSize implement MemoProps.
Each kind's extent keeps the room the run was offered beside the key of its content.
A sizing call takes the kept sizing extent only when both match; a new room runs it
once as a measuring run, as new content does, and the real call still decides by the
settled rules. A container offered another room so follows the view's new extent.
A child keeps each kind's extent with the key of the content it showed. A sizing call
of a pass that replays takes the sizing extent only when it was measured from the
kept run's content; otherwise it runs once as a measuring run, which keeps no record
and leaves the pass's decision alone, so the real run still replays. Before, the
sizing call took the extent of an older run, so a container measured a changed view
at its old size.
A change now costs one real run and one measuring run: in the sizing pass that first
measures the new content, or before the real run where the container measures first.
The tab row's group size and the column bar's ghost extent came from the run's rect,
which is zero in a measuring run, so every re-measure ran both views in the sizing
call and again in the real one. The extent goes on the drag with drag::amend when it
starts, outside the view, as the arrangement does. GroupGrip starts its drag with no
extent and takes only the name its drop region shows.
testing::last_frame_memo_runs lists every call of the last frame, sizing and
measuring calls included; the dock trials count the frame with it.
egui's invisible() also disables the Ui, and every sizing Ui is invisible. Env::of
folded that into enabled = false, which the memo key's scope key holds, so a view's
sizing call never matched its real run and decided a run for the whole pass.
ShellCx's revealed rects live in a pass-stamped record per viewport, keyed
by the shell's id, and each registration is journaled, so a memoized view
in a slot that replays registers the rects its run did. reveal_rect skips
measuring runs itself.
Each dock group's tab row, each column's bar and each iconic column's bar is a memoized view on the spec values,
the arrangement and the look; what the user did on them leaves through an outbox. The containers (DockGroup,
DockColumn, IconicColumn) and the host's body, group view and group header run every pass, and the host memoizes
inside them; shell slots the same way. The group menu is one popup, opened by the panel menu button or by a
context request on a tab, and its rows are built only while it is open.
Removed: DockPanels::content and spec_version, the chrome key, DockColumn::content, IconicColumn::content,
Slot::content, Slot::content_version, AppShell::content, Lazy::show_or and Run::unkept. The gallery's mock
Navigator body is a memoized view.
A run sends what its components reported in the pass; a replay sends nothing, which is complete because input
reaches only an engaged view, and an engaged view runs. The outbox feeds nothing into the key.
The testing notes of runtime-made widgets, nodes and scroll regions are journaled, so a replayed view's nodes
pass the bypass walk as its run's did.
A dock's chrome props hold the host's panel type through #[memo_props(hash)]; the derive bound it by MemoProps,
which a plain panel id does not implement.
A word set written by words! keeps the generation of the Words it was localized in and keys by it. Format, DateFormat
and Host get a generation per instance built (clones keep it), and Units keys by its format, words and point size.
The scope key and the host's word cache use these generations, not pointers. Checks that captured env words, units
or other locals take them as check_with inputs (page range, path field, print preview and font picker stories).
The area's anchor, glide target and axes are the area's own state: lazy::begin keeps them in its Placed, and View
holds only what the children decide by. Places are journaled as offsets from the view's start, so a replayed memoized
view keeps the area's anchor where its run put it. The Scroll trial moves the scrolling body so the view's room stays
the same while its nested rows' decisions change.
- Tracked inputs (runtime::inputs): the modifiers, the pointer, the keys held, the window facts, the keyboard
layout, the keymap, a drag, the focus, the open layers and the scroll view of a nested Lazy. Each accessor notes
its input into the open records; each input has a generation per viewport. A memoized view's replay is refused
when an input its run read has another generation, so a change runs only its readers, absent views included.
The keymap generation replaces the keymap-change unsettle for memoized views; an old Lazy keeps it.
- pointer::mods and frame::stepped_clock (a view reading the clock runs at the next step). In-crate pointer reads of
the component under the pointer use unnoted reads.
- Scope key: what a scope hands down beyond the style inputs (enabled, read-only, size, ink, the command chain,
motion, every app value) feeds a memoized view's key. EnvValue requires MemoProps.
- A memoized view's content starts a layout room: room reaches it only through its place.
- A command queued for a command scope instance inside a replayed view runs the view (Facts.instances,
commands::queued_for).
- Count trials in ui-widgets body/memo_reads.rs.
A kept run records the memory owners it registered and the generation of
ended shown lives; a view whose components' shown memory was evicted or
ended since runs when it is shown again. A kept or saved binding in a view's
props feeds the context's count of writes made outside a component's edit
(set_saved_value and forget_saved per key, forget for session memory), read
through the view's key, and those writes note the edit for the frame.
A record whose run asked for a discard pass is never replayed: egui's count
of discard requests is compared between open and close, and layout memory,
whose ask reaches egui only in the end hook, notes its own. A run keeps the
key from before it, so a view that writes through its props runs once more
from the written value before it replays. A memoized view's entry id is
claimed once per pass, as stage bases are.
Check inputs are keyed only when a view takes the key (NameCheck and the
binding check box their inputs), PresetNames borrows the library and walks
its names, a Tracked field binding keys by address and write count, and
caption icons read again take the next generation.
A memoized view's content is a fn and its props are its only input, so the
framework sees every input it reads. While its key (the props type, the fn's
address and the props' inputs) equals the key after its last run, it adds
that run again and returns what the run returned. Lazy and MemoView share
one runner and one settled test; a memo view ignores the two rules that infer
a change of app data (input arrived, a repaint was asked), replays a run of an
earlier pass of the same frame when nothing it read was edited after the run
started and the run asked for no discard pass, and keeps its entry through
absence up to twice the shown views per viewport.
MemoProps gains identity() (the props type with its lifetimes erased, through
the typeid crate), &mut Tracked<T> by revision and Bind by value and place.
A binding's check takes its inputs as props: check(fn) and
check_with(inputs, fn), one mechanism; a composite hands its check on through
BindMut::check_of. The preset name check (NameCheck) takes inputs the same
way, with PresetNames as a library's names. Glyph is Any + MemoProps, and an
icon keys a glyph by its type, then by its key; the caption glyph owns an
Arc<CaptionIcons>.
Facts::register is journaled, layout memory notes discard asks into the open
record, and the settle counters become MemoRun and last_pass_memo_runs. The
idle-frame trial moves onto memo views, beside count trials of the mechanism.
`runtime::journal(ctx, args, again)` notes a registration as its arguments and a capture-free `again` (a function or
a closure without captures; a capture fails to compile). Two entries are equal when they come from the same `again`
with equal arguments, and `Debug` names the call and its arguments, so a replay can be compared with a real run.
The focus `Transcript` and the records it holds (`StopRec`, `ScopeRec`, `RowGroups`, `Stop`, `Group`, `KeyUse`,
`KeyRole`) derive `PartialEq`. The journal's argument types gain `PartialEq` or `Debug` where they lacked them;
`UiTokens` compares by its content key. The docking generics that journal drop spots require `PartialEq + Debug` of
the panel type.