Skip to main content

create_showcase_app

Function create_showcase_app 

Source
pub fn create_showcase_app(
    headless: bool,
    mode: RenderMode,
) -> Result<(App, ShowcaseState), PlatformError>
Expand description

Builds an App and reactive ShowcaseState configured for either native OS or headless mode.

§Arguments

  • bool - When true, uses deterministic HeadlessPlatform; otherwise uses the active native OS backend.
  • RenderMode - Initial rendering pipeline mode.

§Returns

  • Result<(App, ShowcaseState), PlatformError> - Initialized showcase app and state.