Lines Matching refs:rhs
56 Region::Region(const Region& rhs) in Region() argument
57 : mBounds(rhs.mBounds), mStorage(rhs.mStorage) in Region()
60 validate(rhs, "rhs copy-ctor"); in Region()
64 Region::Region(const Rect& rhs) in Region() argument
65 : mBounds(rhs) in Region()
79 Region& Region::operator = (const Region& rhs) in operator =() argument
83 validate(rhs, "rhs.operator="); in operator =()
85 mBounds = rhs.mBounds; in operator =()
86 mStorage = rhs.mStorage; in operator =()
143 Region& Region::orSelf(const Region& rhs) { in orSelf() argument
144 return operationSelf(rhs, op_or); in orSelf()
146 Region& Region::andSelf(const Region& rhs) { in andSelf() argument
147 return operationSelf(rhs, op_and); in andSelf()
149 Region& Region::subtractSelf(const Region& rhs) { in subtractSelf() argument
150 return operationSelf(rhs, op_nand); in subtractSelf()
152 Region& Region::operationSelf(const Region& rhs, int op) { in operationSelf() argument
154 boolean_operation(op, *this, lhs, rhs); in operationSelf()
165 const Region Region::merge(const Rect& rhs) const { in merge()
166 return operation(rhs, op_or); in merge()
168 const Region Region::intersect(const Rect& rhs) const { in intersect()
169 return operation(rhs, op_and); in intersect()
171 const Region Region::subtract(const Rect& rhs) const { in subtract()
172 return operation(rhs, op_nand); in subtract()
174 const Region Region::operation(const Rect& rhs, int op) const { in operation() argument
176 boolean_operation(op, result, *this, rhs); in operation()
182 const Region Region::merge(const Region& rhs) const { in merge()
183 return operation(rhs, op_or); in merge()
185 const Region Region::intersect(const Region& rhs) const { in intersect()
186 return operation(rhs, op_and); in intersect()
188 const Region Region::subtract(const Region& rhs) const { in subtract()
189 return operation(rhs, op_nand); in subtract()
191 const Region Region::operation(const Region& rhs, int op) const { in operation() argument
193 boolean_operation(op, result, *this, rhs); in operation()
205 Region& Region::orSelf(const Region& rhs, int dx, int dy) { in orSelf() argument
206 return operationSelf(rhs, dx, dy, op_or); in orSelf()
208 Region& Region::andSelf(const Region& rhs, int dx, int dy) { in andSelf() argument
209 return operationSelf(rhs, dx, dy, op_and); in andSelf()
211 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { in subtractSelf() argument
212 return operationSelf(rhs, dx, dy, op_nand); in subtractSelf()
214 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) { in operationSelf() argument
216 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
222 const Region Region::merge(const Region& rhs, int dx, int dy) const { in merge() argument
223 return operation(rhs, dx, dy, op_or); in merge()
225 const Region Region::intersect(const Region& rhs, int dx, int dy) const { in intersect() argument
226 return operation(rhs, dx, dy, op_and); in intersect()
228 const Region Region::subtract(const Region& rhs, int dx, int dy) const { in subtract() argument
229 return operation(rhs, dx, dy, op_nand); in subtract()
231 const Region Region::operation(const Region& rhs, int dx, int dy, int op) const { in operation() argument
233 boolean_operation(op, result, *this, rhs, dx, dy); in operation()
290 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; } in min() argument
292 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } in max() argument
371 const Region& rhs, int dx, int dy) in boolean_operation() argument
375 validate(rhs, "boolean_operation (before): rhs"); in boolean_operation()
383 Rect const * const rhs_rects = rhs.getArray(&rhs_count); in boolean_operation()
395 validate(rhs, "boolean_operation: rhs"); in boolean_operation()
462 rhs.dump("rhs"); in boolean_operation()
480 const Rect& rhs, int dx, int dy) in boolean_operation() argument
482 if (!rhs.isValid()) { in boolean_operation()
484 op, rhs.left, rhs.top, rhs.right, rhs.bottom); in boolean_operation()
489 boolean_operation(op, dst, lhs, Region(rhs), dx, dy); in boolean_operation()
495 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy); in boolean_operation()
506 const Region& lhs, const Region& rhs) in boolean_operation() argument
508 boolean_operation(op, dst, lhs, rhs, 0, 0); in boolean_operation()
512 const Region& lhs, const Rect& rhs) in boolean_operation() argument
514 boolean_operation(op, dst, lhs, rhs, 0, 0); in boolean_operation()