kCGDisplayStreamSourceRect

Static kCGDisplayStreamSourceRect 

Source
pub unsafe static kCGDisplayStreamSourceRect: &'static CFString
👎Deprecated: Please use ScreenCaptureKit instead.
Available on crate feature CGDisplayStream only.
Expand description

This may be used to request a subregion of the display to be provided as the source of the display stream. Use CGRectCreateDictionaryRepresentation to convert from a CGRect to the value used here. Note: The coordinate system for the source rectangle is specified in display logical coordinates and not in pixels, in order to match the normal convention on HiDPI displays.

See also Apple’s documentation