Lines Matching refs:result
73 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
74 return result;
78 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y);
79 return result;
82 bool Rect::intersect(const Rect& with, Rect* result) const {
83 result->left = max(left, with.left);
84 result->top = max(top, with.top);
85 result->right = min(right, with.right);
86 result->bottom = min(bottom, with.bottom);
87 return !(result->isEmpty());
91 Rect result(*this);
93 result = Rect(width - result.right, result.top, width - result.left,
94 result.bottom);
97 result = Rect(result.left, height - result.bottom, result.right,
98 height - result.top);
101 int left = height - result.bottom;
102 int top = result.left;
103 int right = height - result.top;
104 int bottom = result.right;
105 result = Rect(left, top, right, bottom);
107 return result;
111 Rect result;
121 result.clear();
123 result = *this;
127 result.right = exclude.left;
129 result.bottom = exclude.top;
131 result.left = exclude.right;
133 result.top = exclude.bottom;
138 return result;