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