[][src]Struct druid_shell::WindowBuilder

pub struct 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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.