13 const Rect& in_bounds,
31 return param.Contains(p);
43 : round_superellipse_(round_superellipse) {}
62 param.Dispatch(receiver);
Collection of functions to receive path segments from the underlying path representation via the DlPa...
RoundSuperellipsePathSource(const RoundSuperellipse &round_superellipse)
Rect GetBounds() const override
bool IsConvex() const override
~RoundSuperellipsePathSource()
FillType GetFillType() const override
void Dispatch(PathReceiver &receiver) const override
static RoundRect MakeRectRadii(const Rect &rect, const RoundingRadii &radii)
RoundSuperellipse()=default
constexpr const RoundingRadii & GetRadii() const
static RoundSuperellipse MakeRectRadii(const Rect &rect, const RoundingRadii &radii)
RoundRect ToApproximateRoundRect() const
constexpr const Rect & GetBounds() const
bool Contains(const Point &p) const
Returns true iff the provided point |p| is inside the half-open interior of this rectangle.
static RoundSuperellipseParam MakeBoundsRadii(const Rect &bounds, const RoundingRadii &radii)
RoundingRadii Scaled(const Rect &bounds) const
Returns a scaled copy of this object, ensuring that the sum of the corner radii on each side does not...
constexpr bool Contains(const TPoint< Type > &p) const
Returns true iff the provided point |p| is inside the half-open interior of this rectangle.
constexpr TRect GetPositive() const
Get a version of this rectangle that has a non-negative size.
IsFinite() const
Returns true if all of the fields of this floating point rectangle are finite.