Skip to main content

monitor_at

Function monitor_at 

Source
pub fn monitor_at(
    monitors: &[MonitorRecord],
    global_x: i32,
    global_y: i32,
) -> Option<&MonitorRecord>
Expand description

Which monitor contains a global physical point.

Returns None when the point falls in a gap between monitors or outside every monitor — a real possibility on L-shaped layouts, and a refusal rather than a guess.