Contents

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 be NULL. 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