pub struct WindowBuilder { /* private fields */ }Expand description
Builder for a Window.
Implementations§
Source§impl WindowBuilder
impl WindowBuilder
Sourcepub fn size(self, width: i32, height: i32) -> Self
pub fn size(self, width: i32, height: i32) -> Self
Sets the initial outer window size, including non-client borders, in pixels.
Sourcepub fn style(self, style: u32) -> Self
pub fn style(self, style: u32) -> Self
Sets the window style (WS_*). Defaults to WS_OVERLAPPEDWINDOW.
Sourcepub fn ex_style(self, ex_style: u32) -> Self
pub fn ex_style(self, ex_style: u32) -> Self
Sets the extended window style (WS_EX_*). Defaults to none.
Sourcepub fn on_message<F>(self, handler: F) -> Self
pub fn on_message<F>(self, handler: F) -> Self
Sets a handler called for every window message. Return Some(result) to
handle the message, or None to fall through to default processing.
Auto Trait Implementations§
impl !RefUnwindSafe for WindowBuilder
impl !Send for WindowBuilder
impl !Sync for WindowBuilder
impl !UnwindSafe for WindowBuilder
impl Freeze for WindowBuilder
impl Unpin for WindowBuilder
impl UnsafeUnpin 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