Struct lambda::render::window::WindowBuilder
source · pub struct WindowBuilder { /* private fields */ }
Implementations§
source§impl WindowBuilder
impl WindowBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
A new window builder will be 480x360 by default and have the name “Window”. After customizing the window with whatever properties your application needs, you can supply it an event loop to process the events that will be generated by the window.
sourcepub fn with_name(self, name: &str) -> Self
pub fn with_name(self, name: &str) -> Self
The name to be displayed in the title bar of the window.
sourcepub fn with_dimensions(self, width: u32, height: u32) -> Self
pub fn with_dimensions(self, width: u32, height: u32) -> Self
Specify the dimensions for the window (Defaults to 480 x 360).