Windows: implement with_resizable (#540) (#541)

* Windows: implement with_resizable (#540)

* Fixed typo
This commit is contained in:
Danny Fritz 2018-06-02 08:51:24 -06:00 committed by Francesca Frangipane
parent bbfe57400d
commit 58a00bffbb
5 changed files with 46 additions and 0 deletions

View file

@ -49,6 +49,17 @@ impl WindowBuilder {
self
}
/// Sets whether the window is resizable or not
///
/// ## Platform-specific
///
/// This only has an effect on Windows.
#[inline]
pub fn with_resizable(mut self, resizable: bool) -> WindowBuilder {
self.window.resizable = resizable;
self
}
/// Requests a specific title for the window.
#[inline]
pub fn with_title<T: Into<String>>(mut self, title: T) -> WindowBuilder {