pub fn new<U, W: Widget<U>>(
        parent_id: WidgetId,
        window_config: WindowConfig,
        widget: W,
        data: U,
        env: Env,
    ) -> SubWindowDesc
    where
        W: 'static,
        U: Data,
    {
        let host_id = WidgetId::next();
        let sub_window_host = SubWindowHost::new(host_id, parent_id, widget, data, env).boxed();
        SubWindowDesc {
            host_id,
            sub_window_root: sub_window_host,
            window_config,
            window_id: WindowId::next(),
        }
    }
/// Creates a subwindow requirement that hosts the provided widget within a sub window host.
/// It will synchronise data updates with the provided parent_id if "sync" is true, and it will expect to be sent
/// SUB_WINDOW_PARENT_TO_HOST commands to update the provided data for the widget.
Creates a subwindow requirement that hosts the provided widget within a sub window host.
It will synchronise data updates with the provided parent_id if "sync" is true, and it will expect to be sent
SUB_WINDOW_PARENT_TO_HOST commands to update the provided data for the widget.
Creates a subwindow requirement that hosts the provided widget within a sub window host . It will synchronise data updates with the provided parent_id if " sync " is true and it will expect to be sent SUB_WINDOW_PARENT_TO_HOST commands to update the provided data for the widget .
pub fn new<U, W: Widget<U>>(
        parent_id: WidgetId,
        window_config: WindowConfig,
        widget: W,
        data: U,
        env: Env,
    ) -> SubWindowDesc
    where
        W: 'static,
        U: Data,
    {
        let host_id = WidgetId::next();
        let sub_window_host = SubWindowHost::new(host_id, parent_id, widget, data, env).boxed();
        SubWindowDesc {
            host_id,
            sub_window_root: sub_window_host,
            window_config,
            window_id: WindowId::next(),
        }
    }
pub fn new < U , W : Widget < U > > ( parent_id : WidgetId , window_config : WindowConfig , widget : W , data : U , env : Env , ) -> SubWindowDesc where W : ' static , U : Data , { let host_id = WidgetId :: next ( ) ; let sub_window_host = SubWindowHost :: new ( host_id , parent_id , widget , data , env ) . boxed ( ) ; SubWindowDesc { host_id , sub_window_root : sub_window_host , window_config , window_id : WindowId :: next ( ) , } }
Creates a subwindow requirement that hosts the provided widget within a sub window host.
Creates a subwindow requirement that hosts the provided widget within a sub window host .
parent_id
WidgetId
window_config
WindowConfig
widget
W
data
U
env
Env
parent_id
WidgetId
window_config
WindowConfig
widget
W
data
U
env
Env