Skip to main content

open_window

Function open_window 

Source
pub fn open_window<V: Render + 'static>(
    options: WindowOptions,
    cx: &mut App,
    build: impl FnOnce(&mut Window, &mut App) -> Entity<V>,
) -> Result<(AnyWindowHandle, Entity<V>)>
Expand description

Open a Root-hosted window and install appearance observation automatically. Root provides the overlay, notification, focus and text-selection services.