Trait winit::platform::macos::MonitorHandleExtMacOS

source ·
pub trait MonitorHandleExtMacOS {
    // Required methods
    fn native_id(&self) -> u32;
    fn ns_screen(&self) -> Option<*mut c_void>;
}
Available on macos_platform only.
Expand description

Additional methods on MonitorHandle that are specific to MacOS.

Required Methods§

source

fn native_id(&self) -> u32

Returns the identifier of the monitor for Cocoa.

source

fn ns_screen(&self) -> Option<*mut c_void>

Returns a pointer to the NSScreen representing this monitor.

Implementors§