feat: add Window::is_resizable (#2171)

* feat: add `Window::is_resizable`

* move it right after `set_resizable`
This commit is contained in:
Amr Bashir 2022-02-17 17:03:17 +02:00 committed by GitHub
parent fa14863284
commit daf0d6b9a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 52 additions and 0 deletions

View file

@ -366,6 +366,11 @@ impl Window {
x11_or_wayland!(match self; Window(w) => w.set_resizable(resizable))
}
#[inline]
pub fn is_resizable(&self) -> bool {
x11_or_wayland!(match self; Window(w) => w.is_resizable())
}
#[inline]
pub fn set_cursor_icon(&self, cursor: CursorIcon) {
x11_or_wayland!(match self; Window(w) => w.set_cursor_icon(cursor))