Skip to main content

render_view

Function render_view 

Source
pub fn render_view(
    view: &impl View,
    size: Size,
    theme: &Theme,
    font: Option<&Font>,
) -> Scene
Expand description

Build view, lay it out to fill size logical pixels, and paint it into a fresh Scene. Text is rendered with font (pass None to skip text). Interaction handles on the elements are ignored (use layout + hit_test directly to route events).