Lines Matching refs:rhs

62 Region::Region(const Region& rhs)
63 : mStorage(rhs.mStorage)
66 validate(rhs, "rhs copy-ctor");
70 Region::Region(const Rect& rhs) {
71 mStorage.add(rhs);
205 Region& Region::operator = (const Region& rhs)
209 validate(rhs, "rhs.operator=");
211 mStorage = rhs.mStorage;
294 Region& Region::orSelf(const Region& rhs) {
295 return operationSelf(rhs, op_or);
297 Region& Region::xorSelf(const Region& rhs) {
298 return operationSelf(rhs, op_xor);
300 Region& Region::andSelf(const Region& rhs) {
301 return operationSelf(rhs, op_and);
303 Region& Region::subtractSelf(const Region& rhs) {
304 return operationSelf(rhs, op_nand);
306 Region& Region::operationSelf(const Region& rhs, int op) {
308 boolean_operation(op, *this, lhs, rhs);
319 const Region Region::merge(const Rect& rhs) const {
320 return operation(rhs, op_or);
322 const Region Region::mergeExclusive(const Rect& rhs) const {
323 return operation(rhs, op_xor);
325 const Region Region::intersect(const Rect& rhs) const {
326 return operation(rhs, op_and);
328 const Region Region::subtract(const Rect& rhs) const {
329 return operation(rhs, op_nand);
331 const Region Region::operation(const Rect& rhs, int op) const {
333 boolean_operation(op, result, *this, rhs);
339 const Region Region::merge(const Region& rhs) const {
340 return operation(rhs, op_or);
342 const Region Region::mergeExclusive(const Region& rhs) const {
343 return operation(rhs, op_xor);
345 const Region Region::intersect(const Region& rhs) const {
346 return operation(rhs, op_and);
348 const Region Region::subtract(const Region& rhs) const {
349 return operation(rhs, op_nand);
351 const Region Region::operation(const Region& rhs, int op) const {
353 boolean_operation(op, result, *this, rhs);
365 Region& Region::orSelf(const Region& rhs, int dx, int dy) {
366 return operationSelf(rhs, dx, dy, op_or);
368 Region& Region::xorSelf(const Region& rhs, int dx, int dy) {
369 return operationSelf(rhs, dx, dy, op_xor);
371 Region& Region::andSelf(const Region& rhs, int dx, int dy) {
372 return operationSelf(rhs, dx, dy, op_and);
374 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) {
375 return operationSelf(rhs, dx, dy, op_nand);
377 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) {
379 boolean_operation(op, *this, lhs, rhs, dx, dy);
385 const Region Region::merge(const Region& rhs, int dx, int dy) const {
386 return operation(rhs, dx, dy, op_or);
388 const Region Region::mergeExclusive(const Region& rhs, int dx, int dy) const {
389 return operation(rhs, dx, dy, op_xor);
391 const Region Region::intersect(const Region& rhs, int dx, int dy) const {
392 return operation(rhs, dx, dy, op_and);
394 const Region Region::subtract(const Region& rhs, int dx, int dy) const {
395 return operation(rhs, dx, dy, op_nand);
397 const Region Region::operation(const Region& rhs, int dx, int dy, int op) const {
399 boolean_operation(op, result, *this, rhs, dx, dy);
454 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; }
456 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; }
561 const Region& rhs, int dx, int dy)
565 validate(rhs, "boolean_operation (before): rhs");
573 Rect const * const rhs_rects = rhs.getArray(&rhs_count);
585 validate(rhs, "boolean_operation: rhs");
653 rhs.dump("rhs");
671 const Rect& rhs, int dx, int dy)
673 if (!rhs.isValid()) {
675 op, rhs.left, rhs.top, rhs.right, rhs.bottom);
680 boolean_operation(op, dst, lhs, Region(rhs), dx, dy);
686 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy);
697 const Region& lhs, const Region& rhs)
699 boolean_operation(op, dst, lhs, rhs, 0, 0);
703 const Region& lhs, const Rect& rhs)
705 boolean_operation(op, dst, lhs, rhs, 0, 0);