Lines Matching refs:rect
23 #include "base/geometry/rect.h"
40 explicit RRect(const Rect& rect) : rect_(rect) {}
46 static RRect MakeRect(const Rect& rect)
49 rrect.SetRect(rect);
53 static RRect MakeRRect(const Rect& rect, const Radius& radius)
56 rrect.SetRectWithSimpleRadius(rect, radius.GetX().Value(), radius.GetY().Value());
60 static RRect MakeRRect(const Rect& rect, double x, double y)
63 rrect.SetRectWithSimpleRadius(rect, x, y);
67 static RRect MakeOval(const Rect& rect)
70 rrect.SetOval(rect);
84 void SetRect(const Rect& rect)
86 rect_ = rect;
94 void SetRectWithSimpleRadius(const Rect& rect, double xRadius, double yRadius)
96 rect_ = rect;
100 if (rect_.Width() < (xRadius + xRadius) || rect.Height() < (yRadius + yRadius)) {
101 double scale = std::min(rect.Width() / (xRadius + xRadius), rect.Height() / (yRadius + yRadius));
118 void SetOval(const Rect& rect)
120 rect_ = rect;
121 double xRadius = rect.Width() / 2;
122 double yRadius = rect.Height() / 2;