Expand description
Cotis context trait implementations for HTMLRenderer.
These traits connect the renderer to the Cotis app loop:
| Trait | Provides |
|---|---|
RendererTextMeasuringProvider | Browser-based text measurement via renderer.js |
CotisWindowContext | Viewport size in pixels |
CotisFrameContext | Frame delta time in seconds |
cotis_utils::traits::CotisRenderContext | Provided automatically via blanket impl when window + frame traits are implemented |
RenderCompatibleWith | No-op layout init hook |
Mouse input is implemented on HTMLRenderer directly (see the interactivity module).
Keyboard state is available through HTMLInteractivity in the interactivity module
(SimpleKeyboardProvider).