Lines Matching defs:rhs

56 Region::Region(const Region& rhs)
57 : mBounds(rhs.mBounds), mStorage(rhs.mStorage)
60 validate(rhs, "rhs copy-ctor");
64 Region::Region(const Rect& rhs)
65 : mBounds(rhs)
79 Region& Region::operator = (const Region& rhs)
83 validate(rhs, "rhs.operator=");
85 mBounds = rhs.mBounds;
86 mStorage = rhs.mStorage;
146 Region& Region::orSelf(const Region& rhs) {
147 return operationSelf(rhs, op_or);
149 Region& Region::xorSelf(const Region& rhs) {
150 return operationSelf(rhs, op_xor);
152 Region& Region::andSelf(const Region& rhs) {
153 return operationSelf(rhs, op_and);
155 Region& Region::subtractSelf(const Region& rhs) {
156 return operationSelf(rhs, op_nand);
158 Region& Region::operationSelf(const Region& rhs, int op) {
160 boolean_operation(op, *this, lhs, rhs);
171 const Region Region::merge(const Rect& rhs) const {
172 return operation(rhs, op_or);
174 const Region Region::mergeExclusive(const Rect& rhs) const {
175 return operation(rhs, op_xor);
177 const Region Region::intersect(const Rect& rhs) const {
178 return operation(rhs, op_and);
180 const Region Region::subtract(const Rect& rhs) const {
181 return operation(rhs, op_nand);
183 const Region Region::operation(const Rect& rhs, int op) const {
185 boolean_operation(op, result, *this, rhs);
191 const Region Region::merge(const Region& rhs) const {
192 return operation(rhs, op_or);
194 const Region Region::mergeExclusive(const Region& rhs) const {
195 return operation(rhs, op_xor);
197 const Region Region::intersect(const Region& rhs) const {
198 return operation(rhs, op_and);
200 const Region Region::subtract(const Region& rhs) const {
201 return operation(rhs, op_nand);
203 const Region Region::operation(const Region& rhs, int op) const {
205 boolean_operation(op, result, *this, rhs);
217 Region& Region::orSelf(const Region& rhs, int dx, int dy) {
218 return operationSelf(rhs, dx, dy, op_or);
220 Region& Region::xorSelf(const Region& rhs, int dx, int dy) {
221 return operationSelf(rhs, dx, dy, op_xor);
223 Region& Region::andSelf(const Region& rhs, int dx, int dy) {
224 return operationSelf(rhs, dx, dy, op_and);
226 Region& Region::subtractSelf(const Region& rhs, int dx, int dy) {
227 return operationSelf(rhs, dx, dy, op_nand);
229 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) {
231 boolean_operation(op, *this, lhs, rhs, dx, dy);
237 const Region Region::merge(const Region& rhs, int dx, int dy) const {
238 return operation(rhs, dx, dy, op_or);
240 const Region Region::mergeExclusive(const Region& rhs, int dx, int dy) const {
241 return operation(rhs, dx, dy, op_xor);
243 const Region Region::intersect(const Region& rhs, int dx, int dy) const {
244 return operation(rhs, dx, dy, op_and);
246 const Region Region::subtract(const Region& rhs, int dx, int dy) const {
247 return operation(rhs, dx, dy, op_nand);
249 const Region Region::operation(const Region& rhs, int dx, int dy, int op) const {
251 boolean_operation(op, result, *this, rhs, dx, dy);
308 static inline T min(T rhs, T lhs) { return rhs < lhs ? rhs : lhs; }
310 static inline T max(T rhs, T lhs) { return rhs > lhs ? rhs : lhs; }
389 const Region& rhs, int dx, int dy)
393 validate(rhs, "boolean_operation (before): rhs");
401 Rect const * const rhs_rects = rhs.getArray(&rhs_count);
413 validate(rhs, "boolean_operation: rhs");
481 rhs.dump("rhs");
499 const Rect& rhs, int dx, int dy)
501 if (!rhs.isValid()) {
503 op, rhs.left, rhs.top, rhs.right, rhs.bottom);
508 boolean_operation(op, dst, lhs, Region(rhs), dx, dy);
514 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy);
525 const Region& lhs, const Region& rhs)
527 boolean_operation(op, dst, lhs, rhs, 0, 0);
531 const Region& lhs, const Rect& rhs)
533 boolean_operation(op, dst, lhs, rhs, 0, 0);