TabStripOutput reports the overflow button's rect and access node id while
some tabs do not fit. The dock group passes it on (DockGroupOutput::overflow,
through the memoized tab row so a replay moves it with the row), and the dock
area reports it beside the group's tabs as SourceKind::Overflow, named by the
group's first panel, so a host can give the button an automation id.
A host body keeps its presses and its egui focus, so the group takes
no focus and DockAreaOutput::focused never names the panel clicked
into. BodyCx::pressed_within reports a primary press in the body's
rect on its layer whatever took it, sharing the press geometry with
surface_pressed, and the dock area reports the group's shown panel as
pressed.
A file drop on a floating OS window reports the shown panel of the group under
the drop, from the drop session's pointer; the first group's on the title row or
when no pointer is known. ui-docking.md covers documents, swatches, raise and
WindowFiles.
PanelSpec::documents lists what a panel shows (a Timeline's compositions) as tabs
after the group's panel tabs, in the same strip: one fit, one overflow menu, one
keyboard order. A pick reports DockEvent::DocumentPicked and activates the panel;
a close reports DockEvent::DocumentClosed. PanelSpec::swatch and
PanelDocument::swatch show a data colour in the tab's icon slot.
An OS window gets WindowAction::Focus; a window on a layer goes to the top of
egui's area order through overlay::raise, which now raises floating windows too.
Conflicts resolved so that next's changes and this branch's fixes both hold:
- keys: next's unfocused-canvas state claims join the key stage's framework claims; the canvas's
declared claims stay the host's (egui keeps their presses).
- overlay: the app's own modal (`FrameInput::app_modal`) joins next's modal stack at the frame it
first showed in.
- docking: the tab-pick trial moves key focus into the group with Tab, since a click on a dock tab
leaves key focus where it is.
FloatingGroup::raise is a request of the pass: an OS-window float is raised and focused, a layer's family comes in front of the other layers (overlay::raise), as DocumentWindow::raise does. DockArea::focus sets it on the floating window that holds the focused panel, so a panel the host reveals is not left under another floating window. View state only: the workspace keeps no stacking order. native::raise is the one raise path, for the flag and for the start of a move or resize.
DockArea::focus(panel) is a request of the pass: the group holding the panel picks its tab
(Action::activate in the pass's actions) and its tab row's stop takes key focus while the row
runs, so the next pass's keys route through that group. A titled header focuses its drag band.
A dock panel's egui code (PanelSpec::host_body) ran in the framework's
measuring runs too, so egui saw its widgets twice per pass at two rects
and painted ID-clash warnings. HostStyle::show runs it in the real run
only; a measuring run takes the size its last real run took.
FrameInput::app_modal names the window where the app's own egui code
shows a modal; the app's other windows (native floats among them) are
blocked through the same path as under a framework app-modal layer.
- primitives::HostStyle keeps an app's own egui style and runs its code with it (run) on its panel
fill (paint_panel); runtime::egui::style keeps the adapter's style_of and set_style, which only it
and the primitive call.
- The dock pattern uses the primitive; the adapter type it imported is gone.
- host_body trial: a named type for what each body saw.
- A pointer press on a dock's panel tab (a click, a drag's press, the tab menu's secondary press)
leaves key focus where it was (`TabStrip::keeps_focus`), so an app's own shortcuts keep working
after a tab drag or the tab menu; Tab still reaches the tabs. A press on a `host_body` panel's
body is the app's and no longer focuses the group's tabs.
- Floating windows leave the overlay's `set_layer_order` list and stack in egui's own area order,
which raises a layer when it first shows and when it is pressed: an app's own egui dialog opened
over a floating panel shows above it.
- A `host_body` panel's body is filled with the host style's panel fill (`HostStyle::paint_panel`)
and gets no body padding, as it showed outside the dock.
- Trials: tab presses keep focus, float order against an app window, the host body's fill and room,
and an unbound F6 reaching a hosted canvas (alone, and in a dock of host_body panels).