Struct browser_window::window::WindowBuilder
source · pub struct WindowBuilder { /* private fields */ }
Expand description
Exposes functionality related to constructing a window.
Implementations§
source§impl WindowBuilder
impl WindowBuilder
sourcepub fn borders(&mut self, value: bool)
pub fn borders(&mut self, value: bool)
Sets whether or not the window has borders. Default is true.
sourcepub fn height(&mut self, height: u32)
pub fn height(&mut self, height: u32)
Sets the height that the browser window will be created with initially
sourcepub fn minimizable(&mut self, value: bool)
pub fn minimizable(&mut self, value: bool)
Sets whether or not the window has a minimize button on the title bar Default is true
sourcepub fn parent<W>(&mut self, bw: &W)where
W: HasHandle<WindowHandle>,
pub fn parent<W>(&mut self, bw: &W)where
W: HasHandle<WindowHandle>,
Configure a parent window.
When a parent window closes, this browser window will close as well.
This could be a reference to a Browser
or BrowserThreaded
handle.
pub fn new() -> Self
sourcepub fn size(&mut self, width: u32, height: u32)
pub fn size(&mut self, width: u32, height: u32)
Sets the width and height of the browser window
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