rio_window::platform::macos

Trait MonitorHandleExtMacOS

Source
pub trait MonitorHandleExtMacOS {
    // Required methods
    fn native_id(&self) -> u32;
    fn ns_screen(&self) -> Option<*mut c_void>;
}
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§