Convert new fullscreen API in all platforms
This commit is contained in:
parent
1382adbf11
commit
9693f7caa9
10 changed files with 14 additions and 28 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue