Skip to content

RRect is worthless #769

@Hixie

Description

@Hixie

Features to consider adding to RRect:

  • static zero
  • left
  • top
  • right
  • bottom
  • xRadius
  • yRadius
  • width
  • height
  • shortestSide
  • outerRect (bounding box)
  • safeInnerRect (biggest rect entirely inscribed in rounded rect)
  • somethingSomethingRect (the rect you get if you only use the flat sides of the rounded rect)
  • size
  • isEmpty
  • isStadium (one or both sides has a radius half that side's dimension)
  • isCircle (width and height are the same, both radii are greater than half the width or height)
  • contains
  • center
  • inflate
  • deflate
  • lerp
  • operator ==, hashCode
  • toString

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: new featureNothing broken; request for a new capabilityengineflutter/engine related. See also e: labels.waiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions