Lines Matching refs:result
77 const Rect result(left+rhs.x, top+rhs.y, right+rhs.x, bottom+rhs.y);
78 return result;
83 const Rect result(left-rhs.x, top-rhs.y, right-rhs.x, bottom-rhs.y);
84 return result;
87 bool Rect::intersect(const Rect& with, Rect* result) const
89 result->left = max(left, with.left);
90 result->top = max(top, with.top);
91 result->right = min(right, with.right);
92 result->bottom = min(bottom, with.bottom);
93 return !(result->isEmpty());
97 Rect result(*this);
99 result = Rect(width - result.right, result.top,
100 width - result.left, result.bottom);
103 result = Rect(result.left, height - result.bottom,
104 result.right, height - result.top);
107 int left = height - result.bottom;
108 int top = result.left;
109 int right = height - result.top;
110 int bottom = result.right;
111 result = Rect(left, top, right, bottom);
113 return result;