-
@NotThreadSafe() public class ReactClippingViewGroupHelper
Provides implementation of common tasks for view and it's view manager supporting property
{@code * removeClippedSubviews}
.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
PROP_REMOVE_CLIPPED_SUBVIEWS
-
Method Summary
Modifier and Type Method Description static void
calculateClippingRect(View view, Rect outputRect)
Can be used by view that support {@code removeClippedSubviews}
property to calculate area thatgiven {@param view} should be clipped to based on the clipping rectangle of it's parent in casewhen parent is also set to clip it's children.-
-
Method Detail
-
calculateClippingRect
static void calculateClippingRect(View view, Rect outputRect)
Can be used by view that support
{@code removeClippedSubviews}
property to calculate area thatgiven {@param view} should be clipped to based on the clipping rectangle of it's parent in casewhen parent is also set to clip it's children.- Parameters:
view
- view that we want to calculate clipping rect foroutputRect
- where the calculated rectangle will be written
-
-
-
-