⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module events

Module events 

Source
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
EventDispatcher
Dispatches DOM events with capture/bubble propagation
EventListener
An event listener registration
HitRect
Axis-aligned bounding box for a layout element (pixel coordinates)
NodeTree
Simple tree structure for tracking parent-child relationships

Enums§

EventPhase
Event propagation phase
EventType
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§

FixedPoint
26.6 fixed-point coordinate (from Phase A layout module)
NodeId
Node identifier (arena index into DOM tree)