Windows & X11: Window::set_resizable (#558)

* Windows: Window::set_resizable

* X11: Window::set_resizable

* Code style regarding resizable

* X11: set_resizable remember max/min window size

* Stub out set_resizable on Android, iOS, and emscripten

* remove comment block from docs

* Windows: set_resizable in fullscreen

* Special case Xfwm

* Added fun provisos to docs
This commit is contained in:
Danny Fritz 2018-06-11 16:47:50 -06:00 committed by Francesca Frangipane
parent 2b4b64f499
commit be5a2b0e87
11 changed files with 155 additions and 26 deletions

View file

@ -232,6 +232,14 @@ impl Window {
&Window::Wayland(ref w) => w.set_max_dimensions(dimensions)
}
}
#[inline]
pub fn set_resizable(&self, resizable: bool) {
match self {
&Window::X(ref w) => w.set_resizable(resizable),
&Window::Wayland(ref _w) => unimplemented!(),
}
}
#[inline]
pub fn set_cursor(&self, cursor: MouseCursor) {