- 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.
An instance that missed one pass and registers again moves the shared
generation. The last focused chain, the instances inside the top modal
layer, a dialog owning the keys and the focused stop's edits are each
viewport's own, with their own generations. A resolution the focused stop
answered is read and woken under its own key. Removed instances' state
revisions go with a shared move. The wake walks only the entries indexed
under the inputs that moved. The testing check asks the gate apart from
its cache. The per-pass counters keep the previous pass readable.
Each kept resolution holds the key of what it read: the state's revision,
the gate's key and answer, a shared generation (keymap and catalog, scope
parents, instances and their liveness, modal facts) and, when read, the
focus generation, the focused stop's edits and a layer's or menu's vantage.
A reader whose key holds gets the kept Arc<ResolvedCommand>; the wake at
the start of a pass walks only when an input moved. CommandGate is a fn
plus props, asked once per command per key. App-scope states come from a
held Tracked<CommandStates>. resolve and resolve_command return
Arc<ResolvedCommand>. Under testing, every 100th pass compares every kept
resolution with a full one; count_resolve counts new, repeated and checked
resolutions.
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.
Review fixes: a file with an empty w:tblGrid keeps the inch per column it had; a cell narrower
than the narrowest column counts as that column before a span shares out what it lacks, so the
span keeps its width; a span cut off at the last column the reader keeps sizes its kept columns
by their share and gives the rest to no other column.
Template libraries write tables with no w:tblGrid. The reader gave every column an inch, so such a
table came out at the wrong width whatever its cells asked for. Word rebuilds the grid from the
cells on opening: each column as wide as the widest w:tcW among the cells that occupy it alone, a
spanning cell's width shared among the columns no cell sizes, what it still lacks going to its
last column, an inch for a column nothing sizes, never narrower than 26 twips. The rules were
measured on the grids Word saves for synthetic tables. A row after w:gridBefore starts at its
own column.
Moved from storytold/wordcraft#1630, whose reader half had no file left there after #6603.
`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.