pub fn new<W>(root: W) -> PendingWindow<T>
    where
        W: Widget<T> + 'static,
    {
        // This just makes our API slightly cleaner; callers don't need to explicitly box.
        PendingWindow {
            root: Box::new(root),
            title: LocalizedString::new("app-name").into(),
            menu: MenuManager::platform_default(),
            transparent: false,
            size_policy: WindowSizePolicy::User,
        }
    }
/// Create a pending window from any widget.
Create a pending window from any widget.
Create a pending window from any widget .
pub fn new<W>(root: W) -> PendingWindow<T>
    where
        W: Widget<T> + 'static,
    {
        // This just makes our API slightly cleaner; callers don't need to explicitly box.
        PendingWindow {
            root: Box::new(root),
            title: LocalizedString::new("app-name").into(),
            menu: MenuManager::platform_default(),
            transparent: false,
            size_policy: WindowSizePolicy::User,
        }
    }
pub fn new < W > ( root : W ) -> PendingWindow < T > where W : Widget < T > + ' static , { // This just makes our API slightly cleaner; callers don't need to explicitly box. PendingWindow { root : Box :: new ( root ) , title : LocalizedString :: new ( " " ) . into ( ) , menu : MenuManager :: platform_default ( ) , transparent : false , size_policy : WindowSizePolicy :: User , } }
Create a pending window from any widget.
Create a pending window from any widget .
root
W
root
W