Struct rich_sdl2_rust::window::WindowBuilder
source · pub struct WindowBuilder { /* private fields */ }
Expand description
A builder for the Window
.
Implementations§
source§impl WindowBuilder
impl WindowBuilder
sourcepub fn builder(
) -> WindowBuilderBuilder<((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> WindowBuilderBuilder<((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building WindowBuilder
.
On the builder, call .title(...)
(optional), .x(...)
(optional), .y(...)
(optional), .width(...)
(optional), .height(...)
(optional), .format(...)
(optional), .context_kind(...)
(optional), .hidden(...)
(optional), .allow_high_dpi(...)
(optional), .borderless(...)
(optional), .resizable(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of WindowBuilder
.
source§impl WindowBuilder
impl WindowBuilder
sourcepub fn new_window<'video>(self, video: &'video Video<'_>) -> Window<'video>
pub fn new_window<'video>(self, video: &'video Video<'_>) -> Window<'video>
Builds the window.