46 int x1 = std::max(a.
X(), b.
X());
48 int y1 = std::max(a.
Y(), b.
Y());
55 return Rectangle(x1, y1, x2 - x1, y2 - y1);
61 int x1 = std::min(a.x, b.x);
62 int x2 = std::max(a.x + a.width, b.x + b.width);
63 int y1 = std::min(a.y, b.y);
64 int y2 = std::max(a.y + a.height, b.y + b.height);
66 return Rectangle(x1, y1, x2 - x1, y2 - y1);
70 return (lhs.x == rhs.x && lhs.y == rhs.y && lhs.width == rhs.width && lhs.height == rhs.height);
74 return (
int) ((quint32) rect.x ^
75 (((quint32) rect.y << 13) | ((quint32) rect.y >> 19)) ^
76 (((quint32) rect.width << 26) | ((quint32) rect.width >> 6)) ^
77 (((quint32) rect.height << 7) | ((quint32) rect.height >> 25)));