Commit Graph
4992 Commits
Author SHA1 Message Date
aiongg 3e234bcd8d An overlay layer's own Area widget stands for no widget in the pointer resolution
egui gives the press to an interactable Area's own widget wherever no widget on the layer is.
The overlay host records that widget, and find_under and foreign_target read it as no target,
so the layer's shapes take the press and hover there (a menu's scroll strips).
2026-11-17 11:40:58 +00:00
aiongg 8c66b02cf1 Pointer-over readers and component text widgets in the one pointer resolution
The roots that contain the pointer are found whatever egui's click target is.
A widget a component made for its own text (a field's text, a selection part)
is recorded with its component: a press egui gives it stays the widget's, and
the hover goes to that component's topmost shape. Collection rows report
pointer_over beside hovered, and the document tab strip names the tab under
the pointer by it, so a drop target reads it while another root holds the
press. DIAG (CRAFT_DIAG_PRESS) prints each resolution's stack and answer.
2026-11-17 11:03:06 +00:00
aiongg a804f08d83 Context-menu part reads the hovered member through Hovered::find 2026-11-17 10:25:27 +00:00
aiongg 83ed4b0b6c Merge branch 'fw/hover' into o/stage 2026-11-17 10:17:58 +00:00
aiongg d046011855 Full-window view: read the target before borrowing the view 2026-11-17 10:17:41 +00:00
aiongg abf5962ac4 Hover follows the press winner: one resolution of what lies under the pointer
pointer::Under, found once per pass at the begin hook over last pass's shape
record, answers both the press and the hover: the press winners hover, plus
the topmost shape when it takes no press; roots with a shape under the point
contain the pointer. While a press is open only its target hovers. Arenas
read their hover and their press hit from it; the per-root layer check and
the arena's own hover and press resolves are gone, and withheld members are
dropped in the one resolution. Toasts pause on contains_pointer. Trials for
hover/press agreement, nested controls, held presses and one resolution per
pass.
2026-11-17 10:17:17 +00:00
aiongg fe6da87e8b Canvas view commands: queued app commands, 20 pt Fit on Screen, one implementation for full-window views
- Fit on Screen leaves 20 points on each side (PhotoCraft and the old framework) and fits up to the target's fit
  ceiling: 100 % for a document canvas, 400 % for a full-window dialog.
- Canvas::queued: view commands an app asks of a document's canvas run in the canvas's loop before the fired ones,
  eased the same way, and never in a measuring run.
- FullWindowView runs Zoom In, Zoom Out, Fit on Screen and 100% through ViewCommands::apply.
2026-11-17 10:10:41 +00:00
aiongg cd73a4f24a Remove the DIAG prints 2026-11-17 09:35:16 +00:00
aiongg 15d73ac5fc Merge branch 'red/ff' into m/stage 2026-11-17 08:55:31 +00:00
aiongg 80fef44001 Typing scopes: a command set marked typing is a keymap context while an instance is around the focus, so a text component's own keys work while it types; the text editor's formatting keys are one 2026-11-17 08:54:37 +00:00
aiongg 544153f5bd Tab moves focus from a text field however it got the focus: only a pressed control leaves Tab to the panels toggle 2026-11-17 08:54:37 +00:00
aiongg 4b3a558184 Remove the press-routing DIAG prints: the colour-well click reaches its member and the routing tests of rounds I-K pass 2026-11-17 08:51:00 +00:00
aiongg 2fc58c1ef7 ToolRail::show_column: the full-window workspaces' tool strips are one column wide 2026-11-17 08:31:27 +00:00
aiongg 5169a1e378 Merge branch 'red/screenmode' into m/stage 2026-11-17 08:30:02 +00:00
aiongg 6496e37e68 cargo fmt 2026-11-17 08:27:05 +00:00
aiongg f86c3b134c Keys with nothing focused match in the window's shell; a momentary command's held key makes its scope's keys work first (keymap context), and that scope's commands go to the application 2026-11-17 08:21:52 +00:00
aiongg 8d37b08071 Merge branch 'red/ff' into fw/mac1 2026-11-17 08:21:16 +00:00
aiongg 86fce21a01 cargo fmt 2026-11-17 08:07:14 +00:00
aiongg 98226eb219 Merge branch 'look/align' into fw/mac1 2026-11-17 08:04:37 +00:00
aiongg 81da1ad38b cargo fmt 2026-11-17 08:04:00 +00:00
aiongg 059d9b17d6 Tab after a press on a component toggles the panels in a canvas window: the focused stop keeps how focus reached it; focus_holds names a Tab that moves focus; typing lets only command chords and function keys fire 2026-11-17 08:03:41 +00:00
aiongg 4244120e1a DIAG: whether the press step runs in a measuring run 2026-11-17 08:03:05 +00:00
aiongg db6769d288 DIAG: the colour-well click past the arena start (the arena's own resolve, each press step, the end sweep, the member's read of the activation, the component's activation) 2026-11-17 08:02:43 +00:00
aiongg 05f34f857d Vanishing point delete trial: the first plane holds the layer's middle and the click lands on the canvas's middle, whatever zoom the fitted view takes 2026-11-17 08:02:43 +00:00
aiongg 5ccb18f828 A transformed box's corner near the origin holds the precision of the box's largest coordinate: a host's f32 write-back of a rotated text box no longer reads as a document change that cancels the handle drag after its first step 2026-11-17 08:02:42 +00:00
aiongg db4365d954 TransformFields panel form: the angle's rotate glyph sits beside its field in the column's label column, as W, X and H do; the bar keeps it inside 2026-11-17 07:59:12 +00:00
aiongg 54ccab3324 Text part: the text adapter gives the editor its line's baseline, so the egui runtime layer imports no primitives 2026-11-17 07:59:12 +00:00
aiongg 490a9e0207 Text in a control's line sits on the line's baseline: a field's mono digits and its unit share the body text's baseline 2026-11-17 07:52:46 +00:00
aiongg c44c32beb7 Test fixture: recorded paint nobody took drops its texture changes unrendered 2026-11-17 07:52:46 +00:00
aiongg 1a55c72e1e Grid: each column is a column group, so the labels beside the fields of one column share a width and the fields start at one x 2026-11-17 07:52:46 +00:00
aiongg f4eb126da2 Merge branch 'fw/press-route' into k/stage
# Conflicts:
#	crates/ui-contract/src/runtime/commands/board.rs
2026-11-17 07:22:17 +00:00
aiongg aef9f695dd cargo fmt 2026-11-17 07:21:19 +00:00
aiongg b0810ed1f4 A full-window workspace reports the canvas it shows its image on (WorkspacePass::canvas); the dialog host names the canvas of the latest open dialog that has one (StackDialog::canvas, DialogHost::canvas), where an app's tool input in document points goes 2026-11-17 07:19:41 +00:00
aiongg d722349048 Merge branch 'red/p2fw' into fw/mac1 2026-11-17 07:16:34 +00:00
aiongg 85d1947cbf Merge branch 'red/ff' into fw/mac1 2026-11-17 07:16:34 +00:00
aiongg fe8fdf6eea TransformBox corners take the first quarter of each side's band beside them, at most the band's width along it, as PhotoCraft's box does 2026-11-17 07:13:24 +00:00
aiongg 71b4720b98 A press at a document point past the window goes to the topmost recorded layer with a press-taking shape there that shows inside its clip; DIAG lists every recorded layer at the press for the Liquify, vanishing point and crop tests 2026-11-17 07:13:24 +00:00
aiongg b3eae86124 A settled region's replay makes its arena registrations again (a root's step 8, members joining, over parts, the body layer): a press that arrives with the pointer reaches a member the region shows 2026-11-17 07:13:24 +00:00
aiongg 9d931633b1 Held input keeps each event's arrival time in the event's own record: the input hook's stages from the one-press rule to the key stage (hold_back_presses, the IME hook, the sampler hook, the modal drop, the key strip and its focus-move cut) work on Arrived records and egui's events are built from what they leave; the in-order lookup of held events goes 2026-11-17 07:10:05 +00:00
aiongg 714367de38 Merge branch 'tool/cl-app' into fw/mac1 2026-11-17 07:09:49 +00:00
aiongg b0a40c30e8 A fired command carries the input time of its event: a key's press and release fire with the time they arrived at, events held to a later frame keep theirs; the double-press matcher and the opacity digit pairs read that time 2026-11-17 07:07:07 +00:00
aiongg 453d906fdf Design lint: list the rail story's width marker 2026-11-17 07:06:20 +00:00
aiongg 2b19a28742 Rail story: allow marker covers its width scope 2026-11-17 07:06:20 +00:00
aiongg ab09b3fc28 Design lint: rail trials compare within a point, story strip sizes from IconicSizes, dead rail exemptions removed 2026-11-17 07:06:20 +00:00
aiongg d414c24ad7 Dialog host forgets a layer's open slot through runtime memory, not the body layer 2026-11-17 07:06:19 +00:00
aiongg af2681cd26 Remove the access-focus DIAG print: the Layers row takes accessibility focus 2026-11-17 07:01:50 +00:00
aiongg 110f62f255 Merge branch 'fw/press-route' into fw/mac1
# Conflicts:
#	crates/ui-contract/src/primitives/sensing.rs
2026-11-17 06:31:19 +00:00
aiongg 053d567561 Press routing by kind: a press's click and its drag each go to the root whose shape is on top for that kind; under a drag-only grip a child keeps its click, a drag-only root below a button takes the drag; TransformBox parts take the click with the drag so a press on the box is the box's alone; DIAG covers the two trials (CRAFT_DIAG_TEST) 2026-11-17 06:20:27 +00:00
aiongg c17f5d7e49 Merge branch 'look/align' into fw/mac1 2026-11-17 06:17:59 +00:00
aiongg c25070dbe3 Merge branch 'fw276/fix2' into fw/mac1 2026-11-17 06:17:59 +00:00