maximized/fullscreen as noops for other platforms
This commit is contained in:
parent
eff04394c9
commit
b35c4a5ee5
6 changed files with 44 additions and 10 deletions
|
|
@ -2,7 +2,7 @@ use core_graphics::display;
|
|||
use std::collections::VecDeque;
|
||||
use native_monitor::NativeMonitorId;
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, PartialEq)]
|
||||
pub struct MonitorId(u32);
|
||||
|
||||
pub fn get_available_monitors() -> VecDeque<MonitorId> {
|
||||
|
|
|
|||
|
|
@ -383,7 +383,7 @@ impl Window {
|
|||
|
||||
fn create_window(attrs: &WindowAttributes) -> Option<IdRef> {
|
||||
unsafe {
|
||||
let screen = match attrs.monitor {
|
||||
let screen = match attrs.fullscreen.get_monitor() {
|
||||
Some(ref monitor_id) => {
|
||||
let native_id = match monitor_id.get_native_identifier() {
|
||||
NativeMonitorId::Numeric(num) => num,
|
||||
|
|
@ -637,6 +637,14 @@ impl Window {
|
|||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_maximized(&self, maximized: bool) {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_fullscreen_windowed(&self, fullscreen: bool) {
|
||||
}
|
||||
}
|
||||
|
||||
// Convert the `cocoa::base::id` associated with a window to a usize to use as a unique identifier
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue