pub(crate) fn current_monitor_inner(&self) -> MonitorHandle {
        unsafe {
            let screen: id = msg_send![*self.ns_window, screen];
            let desc = NSScreen::deviceDescription(screen);
            let key = util::ns_string_id_ref("NSScreenNumber");
            let value = NSDictionary::valueForKey_(desc, *key);
            let display_id = msg_send![value, unsignedIntegerValue];
            MonitorHandle {
                inner: MonitorHandleInner::new(display_id),
            }
        }
    }
// Allow directly accessing the current monitor internally without unwrapping.
Allow directly accessing the current monitor internally without unwrapping.
Allow directly accessing the current monitor internally without unwrapping .
pub(crate) fn current_monitor_inner(&self) -> MonitorHandle {
        unsafe {
            let screen: id = msg_send![*self.ns_window, screen];
            let desc = NSScreen::deviceDescription(screen);
            let key = util::ns_string_id_ref("NSScreenNumber");
            let value = NSDictionary::valueForKey_(desc, *key);
            let display_id = msg_send![value, unsignedIntegerValue];
            MonitorHandle {
                inner: MonitorHandleInner::new(display_id),
            }
        }
    }
pub ( crate ) fn current_monitor_inner ( & self ) -> MonitorHandle { unsafe { let screen : id = msg_send ! [ self ns_window screen ] ; let desc = NSScreen :: deviceDescription ( screen ) ; let key = util :: ns_string_id_ref ( " " ) ; let value = NSDictionary :: valueForKey_ ( desc , * key ) ; let display_id = msg_send ! [ value unsignedIntegerValue ] ; MonitorHandle { inner : MonitorHandleInner :: new ( display_id ) , } } }
Allow directly accessing the current monitor internally without unwrapping.
Allow directly accessing the current monitor internally without unwrapping .
&self
&self