Skip to main content

open_window

Function open_window 

Source
pub fn open_window<V: View>(
    options: WindowOptions,
    cx: &mut AppContext,
    build_root: impl FnOnce(&mut WindowContext<'_>) -> Handle<V>,
) -> Result<WindowHandle<V>, AppError>
Expand description

在应用启动回调中打开桌面窗口并挂载根视图(对齐 gpui_kit::open_window(options, cx, |cx| cx.new(...)))。