-
public final class StickyPositionConstraintSticky position constraints.
-
-
Field Summary
Fields Modifier and Type Field Description private final RectstickyBoxRectprivate final RectcontainingBlockRectprivate final StringnearestLayerShiftingStickyBoxprivate final StringnearestLayerShiftingContainingBlock
-
Constructor Summary
Constructors Constructor Description StickyPositionConstraint(Rect stickyBoxRect, Rect containingBlockRect, String nearestLayerShiftingStickyBox, String nearestLayerShiftingContainingBlock)
-
Method Summary
Modifier and Type Method Description final Rectcomponent1()final Rectcomponent2()final Stringcomponent3()final Stringcomponent4()final StickyPositionConstraintcopy(Rect stickyBoxRect, Rect containingBlockRect, String nearestLayerShiftingStickyBox, String nearestLayerShiftingContainingBlock)final RectgetStickyBoxRect()Layout rectangle of the sticky element before being shifted final RectgetContainingBlockRect()Layout rectangle of the containing block of the sticky element final StringgetNearestLayerShiftingStickyBox()The nearest sticky layer that shifts the sticky box final StringgetNearestLayerShiftingContainingBlock()The nearest sticky layer that shifts the containing block -
-
Method Detail
-
component1
final Rect component1()
-
component2
final Rect component2()
-
component3
final String component3()
-
component4
final String component4()
-
copy
final StickyPositionConstraint copy(Rect stickyBoxRect, Rect containingBlockRect, String nearestLayerShiftingStickyBox, String nearestLayerShiftingContainingBlock)
-
getStickyBoxRect
final Rect getStickyBoxRect()
Layout rectangle of the sticky element before being shifted
-
getContainingBlockRect
final Rect getContainingBlockRect()
Layout rectangle of the containing block of the sticky element
-
getNearestLayerShiftingStickyBox
final String getNearestLayerShiftingStickyBox()
The nearest sticky layer that shifts the sticky box
-
getNearestLayerShiftingContainingBlock
final String getNearestLayerShiftingContainingBlock()
The nearest sticky layer that shifts the containing block
-
-
-
-