Function draw

Source
pub fn draw<Renderer: Renderer, Theme>(
    renderer: &mut Renderer,
    bounds: Rectangle,
    viewport_bounds: Rectangle,
    styling: &Style,
    draw_contents: impl FnOnce(&mut Renderer, &Style),
)
where Theme: Catalog,
Available on crate feature wayland and Linux and crate feature winit only.