pub fn to_windowbuilder(self, el: winit::EventsLoop) -> WindowBuilder {
        use winit::WindowAttributes;
        let attrs = WindowAttributes {
            dimensions: self.dimensions,
            max_dimensions: self.max_dimensions,
            min_dimensions: self.min_dimensions,
            title: self.title,
            visible: self.visibility,
            ..Default::default()
        };

        let mut builder = WindowBuilder::new();
        builder.window = attrs;

        if self.fullscreen {
            builder = builder.with_fullscreen(Some(el.get_primary_monitor()));
        }

        builder
    }
/// Creates a `winit::WindowBuilder` using the values set in the DisplayConfig
///
/// The EventsLoop is needed to configure a fullscreen window
Creates a `winit::WindowBuilder` using the values set in the DisplayConfig
The EventsLoop is needed to configure a fullscreen window
Creates a ` winit :: WindowBuilder ` using the values set in the DisplayConfig The EventsLoop is needed to configure a fullscreen window
pub fn to_windowbuilder(self, el: winit::EventsLoop) -> WindowBuilder {
        use winit::WindowAttributes;
        let attrs = WindowAttributes {
            dimensions: self.dimensions,
            max_dimensions: self.max_dimensions,
            min_dimensions: self.min_dimensions,
            title: self.title,
            visible: self.visibility,
            ..Default::default()
        };
        let mut builder = WindowBuilder::new();
        builder.window = attrs;
        if self.fullscreen {
            builder = builder.with_fullscreen(Some(el.get_primary_monitor()));
        }
        builder
    }
pub fn to_windowbuilder ( self , el : winit :: EventsLoop ) -> WindowBuilder { use winit :: WindowAttributes ; let attrs = WindowAttributes { dimensions : self . dimensions , max_dimensions : self . max_dimensions , min_dimensions : self . min_dimensions , title : self . title , visible : self . visibility , .. Default :: default ( ) } ; let mut builder = WindowBuilder :: new ( ) ; builder . window = attrs ; if self . fullscreen { builder = builder . with_fullscreen ( Some ( el . get_primary_monitor ( ) ) ) ; } builder }
Creates a `winit::WindowBuilder` using the values set in the DisplayConfig
The EventsLoop is needed to configure a fullscreen window
Creates a ` winit :: WindowBuilder ` using the values set in the DisplayConfig The EventsLoop is needed to configure a fullscreen window
self
el
winit::EventsLoop