Struct browser_window::window::WindowBuilder [−][src]
Exposes functionality related to constructing a window.
Implementations
impl WindowBuilder
[src]
pub fn borders(&mut self, value: bool) -> &mut Self
[src]
Sets whether or not the window has borders. Default is true.
pub fn height(&mut self, height: u32) -> &mut Self
[src]
Sets the height that the browser window will be created with initially
pub fn minimizable(&mut self, value: bool) -> &mut Self
[src]
Sets whether or not the window has a minimize button on the title bar Default is true
pub fn parent<W>(&mut self, bw: &W) -> &mut Self where
W: OwnedWindow,
[src]
W: OwnedWindow,
Sets the opacity of the window.
An opacity of 255 is the default and means the window is fully visible.
An lower opacity means the window will be transparent.
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
[src]
pub fn size(&mut self, width: u32, height: u32) -> &mut Self
[src]
Sets the width and height of the browser window
pub fn title<S: Into<String>>(&mut self, title: S) -> &mut Self
[src]
Sets the title of the window.
pub fn width(&mut self, width: u32) -> &mut Self
[src]
Sets the width that the browser window will be created with initially.
pub fn resizable(&mut self, resizable: bool) -> &mut Self
[src]
Sets whether or not the window will be resizable. Default is true.
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,