- input: MouseExitEvent, ModifiersChangedEvent, PlatformInput, and
DispatchEventResult.
- platform: core Platform and PlatformWindow traits plus WindowId,
WindowBounds, WindowOptions, WindowParams, and ClipboardItem.
- window: Application, AnyWindowHandle, WindowHandle[V],
Window::from_platform, dispatch_input, prevent_default, close/activation
hooks, and replace_root_view while keeping standalone Window::new;
closing a window releases its root view; hit-testing runs between
prepaint and paint gated by pointer containment.
- platform/test: TestPlatform, TestWindow (recording Scenes and simulating
frames, input, resize, scale factor, active/hover status, and close),
TestAppContext, and VisualTestContext with automatic frame pumping and
a runaway-redraw guard.
- Tests & example: platform tests, TestPlatform/VisualTestContext unit and
panic-on-misuse tests, elements visual integration tests, and
src/examples/card updated to run on TestAppContext/VisualTestContext.
- Docs: updated docs/PORTING.md and README.md.
- input: mouse events, modifiers, dispatch phases.
- window: Element / AnyElement / IntoElement, Render / AnyView (entities
render as elements), listener(), empty(); Window with the draw cycle
(render, layout to fill the viewport, prepaint, paint, finish) and phase
checks; content-mask / element-offset / opacity / element-id stacks;
element state across frames (ElementStateKey); hitboxes, hit testing,
occlusion; mouse dispatch (capture + bubble, stop_propagation); hover-
and notify-driven invalidation of rendered views; painting: paint_quad
with device-pixel snapping, drop/inset shadows, paint_path, paint_style
(port of Style::paint).
- elements: div() (Styled, children, hover, mouse down/up/move/scroll,
clicks with element state, occlude, overflow clipping, opacity) and
canvas(); Styled extend lists generated by tools/gen_style.py.
- app: observe_notifications hook used by windows.
- Tests: end-to-end views -> scene, clicks, hover, invalidation, nested
views, bubbling, occlusion, shadows/borders/clipping, canvas, resize,
and aborts on misuse. The card example now renders a real view and
simulates hover and click.
- Docs: PORTING.md M6 status and deviations; README.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- layout: port of GPUI's TaffyLayoutEngine (request_layout,
request_measured_layout, compute_layout, layout_bounds,
stretch_auto_size_to_fill) and LayoutStyle::to_taffy, with rem resolution
and device-pixel snapping (round_half_toward_zero, stroke snapping, ceiled
measured sizes). No cross-frame node cache yet (needs element ids, M6).
- Depend on Milky2018/chicle 0.6.3, the maintained successor of
moon_taffy (which no longer compiles), instead of vendoring.
- conformance/chicle: standalone module running moon_taffy's 1,038 taffy
fixtures against chicle; all pass on wasm, wasm-gc, js and native.
- card example now lays out its content with the engine.
- Docs: PORTING.md M2 status, revised decision 3, M2 deviations; README;
NOTICE attribution for the conformance fixtures.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>