Skip to main content

install_window

Function install_window 

Source
pub fn install_window(
    ctx: &Context,
    viewport: ViewportId,
    window: &(impl HasWindowHandle + HasDisplayHandle),
    options: Options,
) -> Offer
Expand description

Sets up the image surface of another window (viewport), with its own handles, after install (whose render state it shares): its own parent surface, negotiated for what that window wants. Returns what the platform offers it; it is freed when the window closes (close_window). Without install first, none and why.