Expand description
DOM Event System
Implements W3C-style DOM events with capture/bubble propagation, hit testing against layout boxes, and event listener management. All coordinates use 26.6 fixed-point arithmetic (i32).
Structs§
- Event
- A DOM event
- Event
Dispatcher - Dispatches DOM events with capture/bubble propagation
- Event
Listener - An event listener registration
- HitRect
- Axis-aligned bounding box for a layout element (pixel coordinates)
- Node
Tree - Simple tree structure for tracking parent-child relationships
Enums§
- Event
Phase - Event propagation phase
- Event
Type - DOM event type enumeration
Constants§
- FP_
SHIFT - Shift amount for 26.6 fixed-point
Functions§
- fp_
from_ int - Convert integer to 26.6 fixed-point
- fp_
to_ int - Convert 26.6 fixed-point to integer (truncate)
Type Aliases§
- Fixed
Point - 26.6 fixed-point coordinate (from Phase A layout module)
- NodeId
- Node identifier (arena index into DOM tree)