getRects(_:rectCount:)
Returns an array of rectangles that describe where the frame has changed since the previous frame.
Declaration
func getRects(_ rectType: CGDisplayStreamUpdateRectType, rectCount: UnsafeMutablePointer<Int>) -> UnsafePointer<CGRect>?Parameters
- rectType:
The rectangles you are interested in. See Cgdisplaystreamupdaterecttype.
- rectCount:
A pointer to a
size_t. This value must not beNULL. On return, this location is updated to contain the number of rectangles in the returned array.
Return Value
An array of CGRect structures.
Discussion
Do not free the array. It is managed automatically by the update and disposed of when the update object is destroyed.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()