* Windows: implement with_resizable (#540) * Fixed typo
This commit is contained in:
parent
bbfe57400d
commit
58a00bffbb
5 changed files with 46 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue