Class RRect


  • public class RRect
    extends Rect
    • Field Detail

      • _radii

        public final float[] _radii
    • Constructor Detail

      • RRect

        @Internal
        public RRect​(float l,
                     float t,
                     float r,
                     float b,
                     float[] radii)
    • Method Detail

      • makeLTRB

        public static RRect makeLTRB​(float l,
                                     float t,
                                     float r,
                                     float b,
                                     float radius)
      • makeLTRB

        public static RRect makeLTRB​(float l,
                                     float t,
                                     float r,
                                     float b,
                                     float xRad,
                                     float yRad)
      • makeLTRB

        public static RRect makeLTRB​(float l,
                                     float t,
                                     float r,
                                     float b,
                                     float tlRad,
                                     float trRad,
                                     float brRad,
                                     float blRad)
      • makeNinePatchLTRB

        public static RRect makeNinePatchLTRB​(float l,
                                              float t,
                                              float r,
                                              float b,
                                              float lRad,
                                              float tRad,
                                              float rRad,
                                              float bRad)
      • makeComplexLTRB

        public static RRect makeComplexLTRB​(float l,
                                            float t,
                                            float r,
                                            float b,
                                            float[] radii)
      • makeOvalLTRB

        public static RRect makeOvalLTRB​(float l,
                                         float t,
                                         float r,
                                         float b)
      • makePillLTRB

        public static RRect makePillLTRB​(float l,
                                         float t,
                                         float r,
                                         float b)
      • makeXYWH

        public static RRect makeXYWH​(float l,
                                     float t,
                                     float w,
                                     float h,
                                     float radius)
      • makeXYWH

        public static RRect makeXYWH​(float l,
                                     float t,
                                     float w,
                                     float h,
                                     float xRad,
                                     float yRad)
      • makeXYWH

        public static RRect makeXYWH​(float l,
                                     float t,
                                     float w,
                                     float h,
                                     float tlRad,
                                     float trRad,
                                     float brRad,
                                     float blRad)
      • makeNinePatchXYWH

        public static RRect makeNinePatchXYWH​(float l,
                                              float t,
                                              float w,
                                              float h,
                                              float lRad,
                                              float tRad,
                                              float rRad,
                                              float bRad)
      • makeComplexXYWH

        public static RRect makeComplexXYWH​(float l,
                                            float t,
                                            float w,
                                            float h,
                                            float[] radii)
      • makeOvalXYWH

        public static RRect makeOvalXYWH​(float l,
                                         float t,
                                         float w,
                                         float h)
      • makePillXYWH

        public static RRect makePillXYWH​(float l,
                                         float t,
                                         float w,
                                         float h)
      • scale

        @NotNull
        public @NotNull RRect scale​(float scale)
        Overrides:
        scale in class Rect
      • scale

        @NotNull
        public @NotNull RRect scale​(float sx,
                                    float sy)
        Overrides:
        scale in class Rect
      • offset

        @NotNull
        public @NotNull RRect offset​(float dx,
                                     float dy)
        Overrides:
        offset in class Rect
      • offset

        @NotNull
        public @NotNull RRect offset​(@NotNull
                                     @NotNull Point vec)
        Overrides:
        offset in class Rect
      • inflate

        @NotNull
        public @NotNull Rect inflate​(float spread)
        Overrides:
        inflate in class Rect
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Rect
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Rect
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
        Overrides:
        canEqual in class Rect
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Rect