#include <round_superellipse_param.h>
Classes | |
struct | Octant |
struct | Quadrant |
Public Member Functions | |
bool | Contains (const Point &point) const |
void | Dispatch (PathReceiver &receiver) const |
Static Public Member Functions | |
static RoundSuperellipseParam | MakeBoundsRadii (const Rect &bounds, const RoundingRadii &radii) |
static RoundSuperellipseParam | MakeBoundsRadius (const Rect &bounds, Scalar radius) |
Public Attributes | |
Quadrant | top_right |
Quadrant | bottom_right |
Quadrant | bottom_left |
Quadrant | top_left |
bool | all_corners_same |
Static Public Attributes | |
static constexpr Scalar | kGapFactor = 0.29289321881f |
Definition at line 18 of file round_superellipse_param.h.
bool impeller::RoundSuperellipseParam::Contains | ( | const Point & | point | ) | const |
Definition at line 550 of file round_superellipse_param.cc.
References all_corners_same, bottom_left, bottom_right, impeller::CornerContains(), top_left, and top_right.
void impeller::RoundSuperellipseParam::Dispatch | ( | PathReceiver & | receiver | ) | const |
Definition at line 526 of file round_superellipse_param.cc.
References all_corners_same, bottom_left, bottom_right, impeller::PathReceiver::Close(), impeller::PathReceiver::LineTo(), impeller::PathReceiver::MoveTo(), impeller::RoundSuperellipseParam::Octant::offset, impeller::RoundSuperellipseParam::Quadrant::offset, impeller::RoundSuperellipseParam::Octant::se_a, impeller::RoundSuperellipseParam::Quadrant::signed_scale, start, impeller::RoundSuperellipseParam::Quadrant::top, top_left, and top_right.
Referenced by impeller::testing::TEST().
|
static |
Definition at line 487 of file round_superellipse_param.cc.
References impeller::RoundingRadii::AreAllCornersSame(), impeller::RoundingRadii::bottom_left, impeller::RoundingRadii::bottom_right, impeller::TRect< T >::GetBottom(), impeller::TRect< T >::GetCenter(), impeller::TRect< T >::GetLeft(), impeller::TRect< T >::GetLeftBottom(), impeller::TRect< T >::GetLeftTop(), impeller::TRect< T >::GetRight(), impeller::TRect< T >::GetRightBottom(), impeller::TRect< T >::GetRightTop(), impeller::TRect< T >::GetTop(), impeller::TSize< T >::height, impeller::TSize< T >::IsEmpty(), impeller::RoundingRadii::top_left, top_right, impeller::RoundingRadii::top_right, and impeller::TSize< T >::width.
Referenced by impeller::RoundSuperellipse::Contains(), impeller::RoundSuperellipsePathSource::Dispatch(), and impeller::testing::TEST().
|
static |
Definition at line 477 of file round_superellipse_param.cc.
References impeller::TRect< T >::GetCenter(), impeller::TRect< T >::GetRightTop(), and top_right.
bool impeller::RoundSuperellipseParam::all_corners_same |
Definition at line 95 of file round_superellipse_param.h.
Referenced by Contains(), and Dispatch().
Quadrant impeller::RoundSuperellipseParam::bottom_left |
Definition at line 91 of file round_superellipse_param.h.
Referenced by Contains(), and Dispatch().
Quadrant impeller::RoundSuperellipseParam::bottom_right |
Definition at line 90 of file round_superellipse_param.h.
Referenced by Contains(), and Dispatch().
|
staticconstexpr |
Definition at line 127 of file round_superellipse_param.h.
Quadrant impeller::RoundSuperellipseParam::top_left |
Definition at line 92 of file round_superellipse_param.h.
Referenced by Contains(), and Dispatch().
Quadrant impeller::RoundSuperellipseParam::top_right |
Definition at line 89 of file round_superellipse_param.h.
Referenced by Contains(), Dispatch(), MakeBoundsRadii(), and MakeBoundsRadius().