Home | History | Annotate | Download | only in ui

Lines Matching refs:result

76     const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y);
77 return result;
81 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y);
82 return result;
85 bool Rect::intersect(const Rect& with, Rect* result) const {
86 result->left = max(left, with.left);
87 result->top = max(top, with.top);
88 result->right = min(right, with.right);
89 result->bottom = min(bottom, with.bottom);
90 return !(result->isEmpty());
94 Rect result(*this);
96 result = Rect(width - result.right, result.top, width - result.left,
97 result.bottom);
100 result = Rect(result.left, height - result.bottom, result.right,
101 height - result.top);
104 int left = height - result.bottom;
105 int top = result.left;
106 int right = height - result.top;
107 int bottom = result.right;
108 result = Rect(left, top, right, bottom);
110 return result;
114 Rect result(Rect::EMPTY_RECT);
124 result.clear();
126 result = *this;
130 result.right = min(result.right, exclude.left);
132 result.bottom = min(result.bottom, exclude.top);
134 result.left = max(result.left, exclude.right);
136 result.top = max(result.top, exclude.bottom);
141 return result;