Expand description
Application-facing renderer type for browser/WASM targets.
HTMLRenderer is the main entry point: wire it into CotisApp
with a layout manager and render-list pipe, then drive frames through
AsyncRenderApp::compute_frame_async.
Each frame:
CotisRendererAsync::draw_frameawaits the JSwaitForNextFramehelper.- Render commands (types implementing
HTMLDrawable) are drawn viadraw_html_render_commands.
Cotis context traits (CotisWindowContext,
CotisFrameContext, text measuring, etc.) are
implemented in crate::cotis_traits.
Custom DOM hosts and form reading: crate::custom_data and
HTMLRenderer::get_custom_element_html / HTMLRenderer::get_custom_element_properties.
Image URLs: crate::images.
Structs§
- HTML
Renderer - Async HTML/CSS renderer for Cotis applications running in the browser.
Type Aliases§
- Loop
Routine - Reserved type alias for a synchronous loop callback (currently unused).
- Measure
FunType - Reserved type alias for a text-measuring callback (currently unused).