Convert new fullscreen API in all platforms

This commit is contained in:
Pedro Côrte-Real 2017-08-29 01:46:03 +01:00
parent 1382adbf11
commit 9693f7caa9
10 changed files with 14 additions and 28 deletions

View file

@ -2,7 +2,7 @@ use core_graphics::display;
use std::collections::VecDeque;
use native_monitor::NativeMonitorId;
#[derive(Clone, PartialEq)]
#[derive(Clone)]
pub struct MonitorId(u32);
pub fn get_available_monitors() -> VecDeque<MonitorId> {

View file

@ -3,6 +3,7 @@ use CreationError::OsError;
use libc;
use WindowAttributes;
use FullScreenState;
use native_monitor::NativeMonitorId;
use os::macos::ActivationPolicy;
use os::macos::WindowExt;
@ -643,7 +644,7 @@ impl Window {
}
#[inline]
pub fn set_fullscreen_windowed(&self, fullscreen: bool) {
pub fn set_fullscreen(&self, state: FullScreenState) {
}
}