Skip to content

Commit

Permalink
[General] Add IsWindowFullscreen FFI binding to is_window_fullscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
STBoyden committed Sep 6, 2020
1 parent 17db4d0 commit 01fff49
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions raylib/src/core/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ impl RaylibHandle {
unsafe { ffi::IsWindowResized() }
}

/// Returns whether or not window is in fullscreen or not
#[inline]
pub fn is_window_full_screen(&self) -> bool {
unsafe { ffi::IsWindowFullscreen() }
}

/// Toggles fullscreen mode (only on desktop platforms).
#[inline]
pub fn toggle_fullscreen(&mut self) {
Expand Down

0 comments on commit 01fff49

Please sign in to comment.