pub fn into_builder(
        self,
        title: &str,
        mode: Mode,
        primary_monitor: Option<MonitorHandle>,
    ) -> WindowBuilder {
        let mut window_builder = WindowBuilder::new();

        let (width, height) = self.size;

        window_builder = window_builder
            .with_title(title)
            .with_inner_size(winit::dpi::LogicalSize { width, height })
            .with_resizable(self.resizable)
            .with_decorations(self.decorations)
            .with_transparent(self.transparent)
            .with_window_icon(self.icon)
            .with_always_on_top(self.always_on_top)
            .with_fullscreen(conversion::fullscreen(primary_monitor, mode))
            .with_visible(conversion::visible(mode));

        if let Some((width, height)) = self.min_size {
            window_builder = window_builder
                .with_min_inner_size(winit::dpi::LogicalSize { width, height });
        }

        if let Some((width, height)) = self.max_size {
            window_builder = window_builder
                .with_max_inner_size(winit::dpi::LogicalSize { width, height });
        }

        #[cfg(target_os = "windows")]
        {
            use winit::platform::windows::WindowBuilderExtWindows;

            if let Some(parent) = self.platform_specific.parent {
                window_builder = window_builder.with_parent_window(parent);
            }
            window_builder = window_builder
                .with_drag_and_drop(self.platform_specific.drag_and_drop);
        }

        window_builder
    }
/// Converts the window settings into a `WindowBuilder` from `winit`.
Converts the window settings into a `WindowBuilder` from `winit`.
Converts the window settings into a ` WindowBuilder ` from ` winit ` .
pub fn into_builder(
        self,
        title: &str,
        mode: Mode,
        primary_monitor: Option<MonitorHandle>,
    ) -> WindowBuilder {
        let mut window_builder = WindowBuilder::new();
        let (width, height) = self.size;
        window_builder = window_builder
            .with_title(title)
            .with_inner_size(winit::dpi::LogicalSize { width, height })
            .with_resizable(self.resizable)
            .with_decorations(self.decorations)
            .with_transparent(self.transparent)
            .with_window_icon(self.icon)
            .with_always_on_top(self.always_on_top)
            .with_fullscreen(conversion::fullscreen(primary_monitor, mode))
            .with_visible(conversion::visible(mode));
        if let Some((width, height)) = self.min_size {
            window_builder = window_builder
                .with_min_inner_size(winit::dpi::LogicalSize { width, height });
        }
        if let Some((width, height)) = self.max_size {
            window_builder = window_builder
                .with_max_inner_size(winit::dpi::LogicalSize { width, height });
        }
        #[cfg(target_os = "windows")]
        {
            use winit::platform::windows::WindowBuilderExtWindows;
            if let Some(parent) = self.platform_specific.parent {
                window_builder = window_builder.with_parent_window(parent);
            }
            window_builder = window_builder
                .with_drag_and_drop(self.platform_specific.drag_and_drop);
        }
        window_builder
    }
pub fn into_builder ( self , title : & str , mode : Mode , primary_monitor : Option < MonitorHandle > , ) -> WindowBuilder { let mut window_builder = WindowBuilder :: new ( ) ; let ( width , height ) = self . size ; window_builder = window_builder . with_title ( title ) . with_inner_size ( winit :: dpi :: LogicalSize { width , height } ) . with_resizable ( self . resizable ) . with_decorations ( self . decorations ) . with_transparent ( self . transparent ) . with_window_icon ( self . icon ) . with_always_on_top ( self . always_on_top ) . with_fullscreen ( conversion :: fullscreen ( primary_monitor , mode ) ) . with_visible ( conversion :: visible ( mode ) ) ; if let Some ( ( width , height ) ) = self . min_size { window_builder = window_builder . with_min_inner_size ( winit :: dpi :: LogicalSize { width , height } ) ; } if let Some ( ( width , height ) ) = self . max_size { window_builder = window_builder . with_max_inner_size ( winit :: dpi :: LogicalSize { width , height } ) ; } # [ cfg ( target_os " " ) ] { use winit :: platform :: windows :: WindowBuilderExtWindows ; if let Some ( parent ) = self . platform_specific . parent { window_builder = window_builder . with_parent_window ( parent ) ; } window_builder = window_builder . with_drag_and_drop ( self . platform_specific . drag_and_drop ) ; } window_builder }
Converts the window settings into a `WindowBuilder` from `winit`.
Converts the window settings into a ` WindowBuilder ` from ` winit ` .
self
title
&str
mode
Mode
primary_monitor
Option<MonitorHandle>
self
title
&str
mode
Mode
primary_monitor
Option<MonitorHandle>