calculateClippingRect

open fun calculateClippingRect(view: View, outputRect: Rect)

Can be used by view that support removeClippedSubviews property to calculate area that given {@param view} should be clipped to based on the clipping rectangle of it's parent in case when parent is also set to clip it's children.

Parameters

view

view that we want to calculate clipping rect for

outputRect

where the calculated rectangle will be written