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) -> &mut Self
pub fn borders(&mut self, value: bool) -> &mut Self
Sets whether or not the window has borders. Default is true.
sourcepub fn height(&mut self, height: u32) -> &mut Self
pub fn height(&mut self, height: u32) -> &mut Self
Sets the height that the browser window will be created with initially
sourcepub fn minimizable(&mut self, value: bool) -> &mut Self
pub fn minimizable(&mut self, value: bool) -> &mut Self
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) -> &mut Selfwhere
W: OwnedWindow,
pub fn parent<W>(&mut self, bw: &W) -> &mut Selfwhere
W: OwnedWindow,
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) -> &mut Self
pub fn size(&mut self, width: u32, height: u32) -> &mut Self
Sets the width and height of the browser window
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