Fixed testing example add minor functionality

This commit is contained in:
Rene Eichhorn
2017-05-14 16:59:51 +02:00
parent d3b6744618
commit 394d39c437
3 changed files with 73 additions and 23 deletions

View File

@ -103,6 +103,11 @@ impl<'a> Compositor<'a> {
pub fn post_present_handoff(&self) {
unsafe { (self.0.PostPresentHandoff.unwrap())() };
}
/// Return whether the compositor is fullscreen.
pub fn is_fullscreen(&self) -> bool {
unsafe { (self.0.IsFullscreen.unwrap())() }
}
}
#[derive(Debug, Copy, Clone)]