Lines Matching refs:rhs
73 Region::Region(const Region& rhs) in Region() argument
76 mStorage.insert(mStorage.begin(), rhs.mStorage.begin(), rhs.mStorage.end()); in Region()
78 validate(rhs, "rhs copy-ctor"); in Region()
82 Region::Region(const Rect& rhs) { in Region() argument
83 mStorage.push_back(rhs); in Region()
221 Region& Region::operator = (const Region& rhs) in operator =() argument
225 validate(rhs, "rhs.operator="); in operator =()
227 if (this == &rhs) { in operator =()
233 mStorage.insert(mStorage.begin(), rhs.mStorage.begin(), rhs.mStorage.end()); in operator =()
339 Region& Region::orSelf(const Region& rhs) { in orSelf() argument
341 *this = rhs; in orSelf()
344 return operationSelf(rhs, op_or); in orSelf()
346 Region& Region::xorSelf(const Region& rhs) { in xorSelf() argument
347 return operationSelf(rhs, op_xor); in xorSelf()
349 Region& Region::andSelf(const Region& rhs) { in andSelf() argument
350 return operationSelf(rhs, op_and); in andSelf()
352 Region& Region::subtractSelf(const Region& rhs) { in subtractSelf() argument
353 return operationSelf(rhs, op_nand); in subtractSelf()
355 Region& Region::operationSelf(const Region& rhs, uint32_t op) { in operationSelf() argument
357 boolean_operation(op, *this, lhs, rhs); in operationSelf()
382 const Region Region::merge(const Rect& rhs) const { in merge()
383 return operation(rhs, op_or); in merge()
385 const Region Region::mergeExclusive(const Rect& rhs) const { in mergeExclusive()
386 return operation(rhs, op_xor); in mergeExclusive()
388 const Region Region::intersect(const Rect& rhs) const { in intersect()
389 return operation(rhs, op_and); in intersect()
391 const Region Region::subtract(const Rect& rhs) const { in subtract()
392 return operation(rhs, op_nand); in subtract()
394 const Region Region::operation(const Rect& rhs, uint32_t op) const { in operation() argument
396 boolean_operation(op, result, *this, rhs); in operation()
402 const Region Region::merge(const Region& rhs) const { in merge()
403 return operation(rhs, op_or); in merge()
405 const Region Region::mergeExclusive(const Region& rhs) const { in mergeExclusive()
406 return operation(rhs, op_xor); in mergeExclusive()
408 const Region Region::intersect(const Region& rhs) const { in intersect()
409 return operation(rhs, op_and); in intersect()
411 const Region Region::subtract(const Region& rhs) const { in subtract()
412 return operation(rhs, op_nand); in subtract()
414 const Region Region::operation(const Region& rhs, uint32_t op) const { in operation() argument
416 boolean_operation(op, result, *this, rhs); in operation()
428 Region& Region::orSelf(const Region& rhs, int dx, int dy) { in orSelf() argument
429 return operationSelf(rhs, dx, dy, op_or); in orSelf()
431 Region& Region::xorSelf(const Region& rhs, int dx, int dy) { in xorSelf() argument
432 return operationSelf(rhs, dx, dy, op_xor); in xorSelf()
434 Region& Region::andSelf(const Region& rhs, int dx, int dy) { in andSelf() argument
435 return operationSelf(rhs, dx, dy, op_and); in andSelf()
437 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) { in subtractSelf() argument
438 return operationSelf(rhs, dx, dy, op_nand); in subtractSelf()
440 Region& Region::operationSelf(const Region& rhs, int dx, int dy, uint32_t op) { in operationSelf() argument
442 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
448 const Region Region::merge(const Region& rhs, int dx, int dy) const { in merge() argument
449 return operation(rhs, dx, dy, op_or); in merge()
451 const Region Region::mergeExclusive(const Region& rhs, int dx, int dy) const { in mergeExclusive() argument
452 return operation(rhs, dx, dy, op_xor); in mergeExclusive()
454 const Region Region::intersect(const Region& rhs, int dx, int dy) const { in intersect() argument
455 return operation(rhs, dx, dy, op_and); in intersect()
457 const Region Region::subtract(const Region& rhs, int dx, int dy) const { in subtract() argument
458 return operation(rhs, dx, dy, op_nand); in subtract()
460 const Region Region::operation(const Region& rhs, int dx, int dy, uint32_t op) const { in operation() argument
462 boolean_operation(op, result, *this, rhs, dx, dy); in operation()
490 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; } in min() argument
492 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; } in max() argument
648 const Region& rhs, int dx, int dy) in boolean_operation() argument
652 validate(rhs, "boolean_operation (before): rhs"); in boolean_operation()
660 Rect const * const rhs_rects = rhs.getArray(&rhs_count); in boolean_operation()
672 validate(rhs, "boolean_operation: rhs"); in boolean_operation()
739 rhs.dump("rhs"); in boolean_operation()
757 const Rect& rhs, int dx, int dy) in boolean_operation() argument
761 if (!rhs.isValid() && rhs != Rect::INVALID_RECT) { in boolean_operation()
763 op, rhs.left, rhs.top, rhs.right, rhs.bottom); in boolean_operation()
768 boolean_operation(op, dst, lhs, Region(rhs), dx, dy); in boolean_operation()
774 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy); in boolean_operation()
785 const Region& lhs, const Region& rhs) in boolean_operation() argument
787 boolean_operation(op, dst, lhs, rhs, 0, 0); in boolean_operation()
791 const Region& lhs, const Rect& rhs) in boolean_operation() argument
793 boolean_operation(op, dst, lhs, rhs, 0, 0); in boolean_operation()