Facts.roots held arena roots, so every view of an arena saw the pointer
over any member of it and ran. A run now notes the owners of the shapes
it registers (Facts.sensors); Under lists every owner under the point,
and Sensed keeps the hover winners, owners and root parts of the view's
own components. Egui widgets stay in Record.widgets.
follow_activity took the app's windows from the root input, which lists a
child window only from its next pass, so a palette opened this frame was
missing and the app counted as away for one frame: a popup the palette
opened then closed as app-away once F4fix made its first pass real.
show_viewport records each window it shows in the root frame; the app is
away only when the root and every shown window reported no focus, and a
window with no facts yet is unknown. The palette levels follow the same
state.
Whether the pass builds AccessKit nodes is part of a run's place: a run kept
while AccessKit was off holds no nodes, and replaying it after AccessKit turns
on (a screen reader starts, automation reads the tree) left the view out of the
access tree.
In a new room the docks' split area measures its body before showing it. The body read its frames from the shown
slots `update` writes, which a measuring run never reaches, so the measuring run laid the docked tree out at the
previous pass's frames. The dock gathered the tree's leaves across both runs and registered its edge drop bands from
their union: the bands kept the old room's width, and the docked tree's kept record replayed them (the replay audit
found it on the Top band).
`SplitArea` gives its body the frames through `content_env`, which runs in a measuring run at its rect and in the real
run after the dividers' edits, as the canvas split gives its panes. The body reads them as `SplitGroups` and
`SplitDocks` app values. The dock gathers the leaves and registers the bands inside each run of the body; a measuring
run registers nothing. The dock trial keeps the replay audit on through room changes.
Code that needs only the buttons held, the pass's press or its release read `pointer::frame`, which notes
`Input::Pointer`, so every pointer move anywhere ran the memoized view around it (PhotoCraft's canvas, FW-365 F4).
`press_state` notes `Input::Press`, which the begin hook moves on every press and release and now also when the
buttons held change. The trial checks that a reader replays on a move, with a button held or not, and runs on a press
and a release.
F1 memoizes the docked tree and its columns, and their views return what they drew. Measuring runs added to the
area's report as well: `Pass::dock` pushed each placed column, `shown_column` and `tree` added a view's returned
report, and an unmemoized column pushed its dividers. When the docks' split area measured them before showing them
(a new room or zoom), or the replay audit ran the tree, the report listed columns and sources twice, and the tree's
output differed from its replay (PhotoCraft tabs_tests under the audit, FW-365 F4).
Each of these is now an effect of the real run (`measure::effect`), as the group's own report already was. The trial
checks the counts the dock reports through room changes and under the audit.
egui's `Area` registers its background widget at the start of a pass at the size it kept from the last pass. The
overlay host knows a container layer's size for this pass before the layer shows (`Layer::size`), but never handed it
to the `Area`, so the run that grew a layer sensed its background at the old size. Inside a memoized view that run's
record kept the stale hit area (a canvas task bar showing new members, FW-365 F4).
`LayerSpec::size` carries the measured size from both host paths; `show_layer` writes it into the `AreaState` before
the `Area` shows, and `content_rect` reports it. The first-show seed stays for toasts and tooltips only, which have no
measured size.
`on_row_line` places a memoized view on the row's line by `lazy::last_extent`, which read only the last real run's
extent although its doc names this pass's measuring run first. In the first pass that shows the view there is no real
run yet, so the view sat at the row's top while the row had measured it a moment before. A memoized view around the
row kept that run and replayed it: PhotoCraft's menu titles sat 4 pt high in the title bar after startup, until
something ran the title bar, and the replay audit failed every whole-app trial on the title slot (upstream bug, on
craft-libs next e4f1e5a00e with PhotoCraft main 702da02787).
`last_extent` takes this pass's measuring-run extent once the view was measured in this pass, else the last real
run's. The trial checks the first pass too, and a view holding the row passes the replay audit.
Each built item row of a collection declares a hover-only part over its rect,
above the collection's background and below its other parts and the row's own
shapes. Sensing reports every root's own parts under the pointer, on top or
not (pointer::Under::parts, read with pointer::parts_under), and a memoized
view's Sensed includes those of its roots. The collection takes a row's
hovered and pointer-over state, the hover lead and the rest wait from the row
part under the pointer instead of reading the hover position, so a move within
one row replays a view around the list and a move onto another row runs it.
The edge band still reads the hover position: it is drawn at the line nearest
the pointer.
Trials: a list of 10 and of 40 rows in a memoized view replays on moves within
a row, runs once on a move to another row, and the hover fill follows; a press
and its release, a wheel over a list, and a modifier change under the pointer
run the view; a replayed hovered view keeps its cursor; a tooltip runs its
view at the wake and when its layer first paints; Cx::hover_pos reads the
point over its part only and marks it as following the pointer for the
pointer-move gate.
A row that places its block at its end, centred or spread recorded its line but
reported it to no first-line target: it read the target from its block's Ui
after restoring that Ui's entry, which found none. It reports to its body's
target as a row placed from its start does, so it sits on an outer row's line
by its own line and a container takes it as its first line.
Records are open only around runs of a pass on the pass's own thread, so the
count that lets a registration skip the pass state is a thread-local. As a
process-wide atomic, a record open in another thread's pass made this thread
read its pass state (outside its component tree, an unbound read), which made
the settled-pass service-lookup trial flaky under parallel test threads. A
close with no open record no longer wraps the count.
A memoized view replays with the pointer over it unless its pointer facts
changed: the hover, parts and pointer-over of its roots and egui widgets at the
hover point (pointer::Sensed), the modifiers while it is under the pointer, a
move in a rect it follows, a wheel share or owed ease for a taker it registered,
a tap in it, or, while a drag session runs, the pointer over it. A press held
that started in it still runs it. A move within one part replays the view; a
move onto another part runs it.
Reading where the pointer hovers marks what reads it as following the pointer:
Cx::hover_pos marks the part's hit area, and pointer::hover_point_in marks the
rect it reads in. PartResult::hover_pos is crate-private, member responses carry
the pointer only for a press, and the collections' row hover, edge band, the
menus, canvas, colour, timeline and font readers go through the accessors.
design-lint's contract/pointer rule bans egui's hover-position reads.
Cursor requests are journaled, so a replay requests its cursor again. A record
notes the arena roots, follows rects and wheel takers its run registered.
Each dock column (docked, collapsed to icons or in a floating window) shows
as a memoized view keyed by the pruned layout, its place, the area's
requests and the versions of the panels it shows (DockPanels::content).
The docked tree is one view keyed the same way over every panel it shows,
so an idle dock whose panels all have versions replays as one record; a
column or tree with an unversioned panel runs as before. What a replay must
still report (gesture sources, shown groups, placed columns) comes back as
the view's value, and the focused group is read from the shown groups' ids
after the views.
The docks' natural widths and card places are derived per layout, sizes and
config, and SplitArea derives its frames, handles and their ranges from the
caller's revision of its layout and rules (a required argument) instead of
walking the tree five times per run. Spec lookups in the area return
references.
Two fixes the replay audit found: DockGroup's header drained its command
states in a measuring run, so the real run after it published none; and a
group reported its rect and sources from measuring runs as well, doubling
them in the first pass.
A run takes the env its parent installed for its Ui from its caller (or one
Env::of where app code shows it) and keeps it as its place env: Begun, Pass and
Measuring carry it, the shape hooks' sized and extent take it, and every
layout/body.rs helper takes the env its Ui's children are placed under instead
of walking the Ui stack again. MeasureCx keeps the env it views for
column_room. Lazy and memoized views, the label step, collections and bodies
pass the env they hold. A testing counter (env_walks) pins at most one walk per
run.
A menu title kept its held commands in a Vec, and commands::holds copied every command into a new Arc on
each run of the title. MenuTitle keeps an Arc<[CommandRef]> and holds() shares it. Facts::of_last_pass
cloned last pass's facts for every read; Facts::with_last_pass lends them to the reader instead, so the
menu bar's is_open and is_focused answer without a copy.
A bound component's shown fact held its command by value, so every settled pass copied each command's id
into a new fact when the replay registered it again, and the next pass freed them all. The fact now shares
the kept resolution's Arc<CommandRef>, and a fact record swaps its two buffers instead of dropping last
pass's, so a settled pass copies no command and grows no fact vector.
The running pass's facts live on the thread's entry for its context, beside the
pass state, so frame::running, current_viewport, pass_nr and frame_nr read the
component tree's binding instead of a second thread-local searched by context.
Inside the tree, pass_state::with runs on the bound state directly; the visit
through a dyn callback serves only reads outside it.
Per-viewport records of types the pass state names no field for (Facts, dock
targets, toasts and the other Stored types) live in the pass state by type,
not in egui context data behind its data lock and a service mutex.
The memory eviction sweep reads the running pass once, not once per owner.
Trial: a settled pass of forty command-bound leaves makes as many context-data
lookups and unbound pass-state reads as one of ten.
repaint::request and request_of are #[track_caller], so egui's repaint causes
name the component that asked, not the wrapper: how the hover fades that
keep frames running were found (photocraft#17148).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pointer::gate_pointer_moves sets egui's pointer-move gate (storytold/egui#65):
a move with no button held needs a pass only when the pointer comes in, a
drag runs, either point lies in a rect that follows the pointer
(pointer::follows_pointer, journaled so replays keep it), or the layer, egui's
widgets (Context::widgets_at) or the component shapes under the two points
differ in the last finished pass. Opt-in per app. egui moves to the PR's head.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
commands::holds registered one fact per command, each with its own label, so
the menu bar's titles made about 1,400 registrations per pass and every
replay of the bar made them again: the largest group of replayed journal
entries in PhotoCraft. A container now registers one fact holding its
commands; commands::shown finds a command in it in the same order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The blend, Opacity, Fill and lock rows ran in every pass of the Layers panel,
also while the pointer only moved over its rows: about half of the panel's
time in such a frame. They are a memoized view keyed by the active layer's
properties and the modes it offers; their edits leave through an outbox.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The host painted a tool's readout or hud only in a pass where the tool
asked for it, and a tool asks from press or drag, which run only in a
pass with a pointer move. Every other pass of the drag (the ants and the
live outline repaint all the time) painted no box, so the marquee's W/H
box blinked. The host now keeps the box the gesture's last press or drag
asked for and shows it again in passes with neither; a drag that asks
for nothing drops it, and it ends with the gesture.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>