pub fn window<F: Fn(&mut BuildContext) -> Entity + 'static>(mut self, create_fn: F) -> Self {
        let (adapter, settings, receiver) = create_window(
            self.name.clone(),
            &self.theme,
            self.request_sender.clone(),
            create_fn,
            self.localization.clone(),
        );

        self.shell
            .create_window_from_settings(settings, adapter)
            .request_receiver(receiver)
            .build();

        self
    }
/// Creates a new window and add it to the application.
Creates a new window and add it to the application.
Creates a new window and add it to the application .
pub fn window<F: Fn(&mut BuildContext) -> Entity + 'static>(mut self, create_fn: F) -> Self {
        let (adapter, settings, receiver) = create_window(
            self.name.clone(),
            &self.theme,
            self.request_sender.clone(),
            create_fn,
            self.localization.clone(),
        );
        self.shell
            .create_window_from_settings(settings, adapter)
            .request_receiver(receiver)
            .build();
        self
    }
pub fn window < F : Fn ( & mut BuildContext ) -> Entity + ' static > ( mut self , create_fn : F ) -> Self { let ( adapter , settings , receiver ) = create_window ( self . name . clone ( ) , & self . theme , self . request_sender . clone ( ) , create_fn , self . localization . clone ( ) , ) ; self . shell . create_window_from_settings ( settings , adapter ) . request_receiver ( receiver ) . build ( ) ; self }
Creates a new window and add it to the application.
Creates a new window and add it to the application .
mut self
create_fn
F