• Home
  • Raw
  • Download

Lines Matching refs:Rect

37 class GFX_EXPORT Rect
38 : public RectBase<Rect, Point, Size, Insets, Vector2d, int> {
40 Rect() : RectBase<Rect, Point, Size, Insets, Vector2d, int>(Point()) {} in Rect() function
42 Rect(int width, int height) in Rect() function
43 : RectBase<Rect, Point, Size, Insets, Vector2d, int> in Rect()
46 Rect(int x, int y, int width, int height) in Rect() function
47 : RectBase<Rect, Point, Size, Insets, Vector2d, int> in Rect()
51 explicit Rect(const RECT& r);
53 explicit Rect(const CGRect& r);
56 explicit Rect(const gfx::Size& size) in Rect() function
57 : RectBase<Rect, Point, Size, Insets, Vector2d, int>(size) {} in Rect()
59 Rect(const gfx::Point& origin, const gfx::Size& size) in Rect() function
60 : RectBase<Rect, Point, Size, Insets, Vector2d, int>(origin, size) {} in Rect()
62 ~Rect() {} in ~Rect()
79 inline bool operator==(const Rect& lhs, const Rect& rhs) {
83 inline bool operator!=(const Rect& lhs, const Rect& rhs) {
87 GFX_EXPORT Rect operator+(const Rect& lhs, const Vector2d& rhs);
88 GFX_EXPORT Rect operator-(const Rect& lhs, const Vector2d& rhs);
90 inline Rect operator+(const Vector2d& lhs, const Rect& rhs) {
94 GFX_EXPORT Rect IntersectRects(const Rect& a, const Rect& b);
95 GFX_EXPORT Rect UnionRects(const Rect& a, const Rect& b);
96 GFX_EXPORT Rect SubtractRects(const Rect& a, const Rect& b);
104 GFX_EXPORT Rect BoundingRect(const Point& p1, const Point& p2);
106 inline Rect ScaleToEnclosingRect(const Rect& rect, in ScaleToEnclosingRect()
113 return Rect(x, y, r - x, b - y); in ScaleToEnclosingRect()
116 inline Rect ScaleToEnclosingRect(const Rect& rect, float scale) { in ScaleToEnclosingRect()
120 inline Rect ScaleToEnclosedRect(const Rect& rect, in ScaleToEnclosedRect()
127 return Rect(x, y, r - x, b - y); in ScaleToEnclosedRect()
130 inline Rect ScaleToEnclosedRect(const Rect& rect, float scale) { in ScaleToEnclosedRect()
135 extern template class RectBase<Rect, Point, Size, Insets, Vector2d, int>;
141 void PrintTo(const Rect& rect, ::std::ostream* os);