Skip to main content

build_scene_with_root

Function build_scene_with_root 

Source
pub fn build_scene_with_root<'a>(
    children: &'a [ChildComponent],
    viewport: (f32, f32),
    root_css: CssStyle,
) -> BuiltScene<'a>
Expand description

Same as build_scene but lets the caller supply the root container’s CssStyle. Width/height are forced to the viewport regardless.