Skip to main content

run_static

Function run_static 

Source
pub fn run_static(
    options: WindowOptions,
    theme: Theme,
    view: impl Fn(&Theme) -> Element<()> + 'static,
) -> Result<(), ShellError>
Expand description

Opens a window showing a message-free element view. The view is rebuilt on every redraw; scroll state persists in a FrameState. Blocks until the window closes.