Class StickyPositionConstraint


  • public class StickyPositionConstraint
    extends java.lang.Object
    Sticky position constraints.
    • Constructor Detail

      • StickyPositionConstraint

        public StickyPositionConstraint​(Rect stickyBoxRect,
                                        Rect containingBlockRect,
                                        java.util.Optional<LayerId> nearestLayerShiftingStickyBox,
                                        java.util.Optional<LayerId> nearestLayerShiftingContainingBlock)
    • Method Detail

      • getStickyBoxRect

        public Rect getStickyBoxRect()
        Layout rectangle of the sticky element before being shifted
      • getContainingBlockRect

        public Rect getContainingBlockRect()
        Layout rectangle of the containing block of the sticky element
      • getNearestLayerShiftingStickyBox

        public java.util.Optional<LayerId> getNearestLayerShiftingStickyBox()
        The nearest sticky layer that shifts the sticky box
      • getNearestLayerShiftingContainingBlock

        public java.util.Optional<LayerId> getNearestLayerShiftingContainingBlock()
        The nearest sticky layer that shifts the containing block