Skip to main content

draw_html_render_commands

Function draw_html_render_commands 

Source
pub fn draw_html_render_commands(
    commands: impl Iterator<Item = impl HTMLDrawable>,
)
Expand description

Renders an iterator of drawables as one DOM frame.

Creates an HTMLCanvas, draws each item (e.g. a RenderTList from layout output), then calls HTMLCanvas::finish.