Feat/fullscreen getters (#838)

* feat: [macos] add get_fullscreen and get_simple_fullscreen

* feat: [windows] add get_fullscreen

* feat: [ios] add get_fullscreen

* feat: [android] add get_fullscreen

* feat: [emscripten] add get_fullscreen

* feat: [linux] add get_fullscreen

* feedback: `get_fullscreen() -> bool` -> `get_fullscreen() -> Option<Id>`
This commit is contained in:
acheronfail
2019-04-26 03:09:32 +10:00
committed by Osspial
parent 4e5321b0aa
commit 4469f29e70
11 changed files with 95 additions and 2 deletions

View File

@@ -355,6 +355,12 @@ impl Window {
});
}
#[inline]
pub fn get_fullscreen(&self) -> Option<RootMonitorId> {
let window_state = self.window_state.lock().unwrap();
window_state.fullscreen.clone()
}
#[inline]
pub fn set_fullscreen(&self, monitor: Option<RootMonitorId>) {
unsafe {