Lines Matching refs:result
75 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
76 return result;
80 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y);
81 return result;
84 bool Rect::intersect(const Rect& with, Rect* result) const {
85 result->left = max(left, with.left);
86 result->top = max(top, with.top);
87 result->right = min(right, with.right);
88 result->bottom = min(bottom, with.bottom);
89 return !(result->isEmpty());
93 Rect result(*this);
95 result = Rect(width - result.right, result.top, width - result.left,
96 result.bottom);
99 result = Rect(result.left, height - result.bottom, result.right,
100 height - result.top);
103 int left = height - result.bottom;
104 int top = result.left;
105 int right = height - result.top;
106 int bottom = result.right;
107 result = Rect(left, top, right, bottom);
109 return result;
113 Rect result;
123 result.clear();
125 result = *this;
129 result.right = exclude.left;
131 result.bottom = exclude.top;
133 result.left = exclude.right;
135 result.top = exclude.bottom;
140 return result;