[−][src]Struct druid_shell::WindowBuilder
A builder type for creating new windows.
Methods
impl WindowBuilder
[src]
pub fn new() -> WindowBuilder
[src]
Create a new WindowBuilder
pub fn set_handler(&mut self, handler: Box<dyn WinHandler>)
[src]
Set the WinHandler
. This is the object that will receive
callbacks from this window.
pub fn set_size(&mut self, size: Size)
[src]
Set the window's initial size.
pub fn set_min_size(&mut self, size: Size)
[src]
Set the window's initial size.
pub fn resizable(&mut self, resizable: bool)
[src]
Set whether the window should be resizable
pub fn show_titlebar(&mut self, show_titlebar: bool)
[src]
Set whether the window should have a titlebar and decorations
pub fn set_title(&mut self, title: impl Into<String>)
[src]
Set the window's initial title.
pub fn set_menu(&mut self, menu: Menu)
[src]
Set the window's menu.
pub fn build(self) -> Result<WindowHandle, Error>
[src]
Attempt to construct the platform window.
If this fails, your application should exit.
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,
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> RoundFrom<T> for T
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
fn round_into(self) -> U
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.
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>,