Home | History | Annotate | Download | only in gfx

Lines Matching defs:RECT

21 typedef struct tagRECT RECT;
28 class Rect {
30 Rect();
31 Rect(int width, int height);
32 Rect(int x, int y, int width, int height);
34 explicit Rect(const RECT& r);
36 explicit Rect(const CGRect& r);
38 explicit Rect(const GdkRectangle& r);
40 Rect(const gfx::Point& origin, const gfx::Size& size);
42 ~Rect() {}
45 Rect& operator=(const RECT& r);
47 Rect& operator=(const CGRect& r);
49 Rect& operator=(const GdkRectangle& r);
92 bool operator==(const Rect& other) const;
94 bool operator!=(const Rect& other) const {
99 // Construct an equivalent Win32 RECT object.
100 RECT ToRECT() const;
119 bool Contains(const Rect& rect) const;
122 bool Intersects(const Rect& rect) const;
125 Rect Intersect(const Rect& rect) const;
129 Rect Union(const Rect& rect) const;
131 // Computes the rectangle resulting from subtracting |rect| from |this|. If
132 // |rect| does not intersect completely in either the x- or y-direction, then
133 // |*this| is returned. If |rect| contains |this|, then an empty Rect is
135 Rect Subtract(const Rect& rect) const;
138 bool Equals(const Rect& rect) const {
139 return *this == rect;
147 Rect AdjustToFit(const Rect& rect) const;
154 bool SharesEdgeWith(const gfx::Rect& rect) const;
163 std::ostream& operator<<(std::ostream& out, const gfx::Rect& r);