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.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for WindowBuilder
impl Send for WindowBuilder
impl Sync for WindowBuilder
impl Unpin for WindowBuilder
impl UnwindSafe for WindowBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more