pub struct WindowBuilder { /* private fields */ }
Expand description
Window builder.
Implementations§
Source§impl WindowBuilder
impl WindowBuilder
Sourcepub fn with_title<S>(self, title: S) -> WindowBuilder
pub fn with_title<S>(self, title: S) -> WindowBuilder
Sourcepub fn with_init_mode(self, mode: InitMode) -> WindowBuilder
pub fn with_init_mode(self, mode: InitMode) -> WindowBuilder
Sourcepub fn with_size(self, size: Size) -> WindowBuilder
pub fn with_size(self, size: Size) -> WindowBuilder
Sourcepub fn with_logical_size<S>(self, size: S) -> WindowBuilder
pub fn with_logical_size<S>(self, size: S) -> WindowBuilder
Sets a logical frame size of the window under building.
§Parameters:
size
- Logical window frame size.
Sourcepub fn with_physical_size<S>(self, size: S) -> WindowBuilder
pub fn with_physical_size<S>(self, size: S) -> WindowBuilder
Sets a physical frame size of the window under building.
§Parameters:
size
- Physical window frame size.
Sourcepub fn with_options(self, options: WindowOptions) -> WindowBuilder
pub fn with_options(self, options: WindowOptions) -> WindowBuilder
Sourcepub fn build(self, ctx: &impl ContextOwner) -> Window
pub fn build(self, ctx: &impl ContextOwner) -> Window
Trait Implementations§
Source§impl Default for WindowBuilder
impl Default for WindowBuilder
Source§fn default() -> WindowBuilder
fn default() -> WindowBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WindowBuilder
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