Skip to main content

drive_live_embedded

Function drive_live_embedded 

Source
pub fn drive_live_embedded<A: ResourceApp, T>(
    drive: impl FnOnce(&mut EmbeddedApp) -> T,
) -> Result<T, LaunchError>
Expand description

drive_live_window with the window shown in a region of a host’s scene, as the shell shows an in-process app: the real app in a ui_core::app::EmbeddedApp, which the drive lays out, draws into its own scene and feeds input through [ui_core::app::EmbeddedApp::input_for_test].

§Errors

Returns any launch, storage or construction failure.