Skip to main content

main_display_bounds

Function main_display_bounds 

Source
pub fn main_display_bounds() -> (f64, f64, f64, f64)
Expand description

The main display’s bounds in CG points ((origin_x, origin_y, width, height)) — the rect CursorPoller normalizes the global cursor against. On non-macOS (no capture) returns a 1080p placeholder. The captured display is assumed to be the main one (multi-display targeting is a refinement — see ISS-17).