Skip to main content

ensure_region_inside

Function ensure_region_inside 

Source
pub fn ensure_region_inside(
    target: &DisplayTarget,
    region: Region,
) -> Result<(), ComputerError>
Expand description

Reject a region that is not fully covered by the chosen monitor.

--display is a hard filter, not a crop hint: a region that hangs off the monitor is an argument error rather than a silently smaller capture.