• Home
  • Raw
  • Download

Lines Matching refs:Rect

45     op_nand = region_operator<Rect>::op_nand,
46 op_and = region_operator<Rect>::op_and,
47 op_or = region_operator<Rect>::op_or,
48 op_xor = region_operator<Rect>::op_xor
56 const Region Region::INVALID_REGION(Rect::INVALID_RECT);
61 mStorage.add(Rect(0,0)); in Region()
72 Region::Region(const Rect& rhs) { in Region()
94 static void reverseRectsResolvingJunctions(const Rect* begin, const Rect* end, in reverseRectsResolvingJunctions()
95 Vector<Rect>& dst, int spanDirection) { in reverseRectsResolvingJunctions()
98 const Rect* current = end - 1; in reverseRectsResolvingJunctions()
135 const Rect prev = dst[static_cast<size_t>(prevIndex)]; in reverseRectsResolvingJunctions()
141 dst.add(Rect(prev.right, top, right, bottom)); in reverseRectsResolvingJunctions()
146 dst.add(Rect(prev.left, top, right, bottom)); in reverseRectsResolvingJunctions()
160 dst.add(Rect(left, top, prev.left, bottom)); in reverseRectsResolvingJunctions()
165 dst.add(Rect(left, top, prev.right, bottom)); in reverseRectsResolvingJunctions()
177 dst.add(Rect(left, top, right, bottom)); in reverseRectsResolvingJunctions()
195 Vector<Rect> reversed; in createTJunctionFreeRegion()
223 const Rect bounds(getBounds()); in makeBoundsSelf()
249 mStorage.add(Rect(0,0)); in clear()
252 void Region::set(const Rect& r) in set()
261 mStorage.add(Rect(w, h)); in set()
267 mStorage.add(Rect(w, h)); in set()
278 Rect rect(l,t,r,b); in addRectUnchecked()
285 Region& Region::orSelf(const Rect& r) { in orSelf()
288 Region& Region::xorSelf(const Rect& r) { in xorSelf()
291 Region& Region::andSelf(const Rect& r) { in andSelf()
294 Region& Region::subtractSelf(const Rect& r) { in subtractSelf()
297 Region& Region::operationSelf(const Rect& r, int op) { in operationSelf()
330 const Region Region::merge(const Rect& rhs) const { in merge()
333 const Region Region::mergeExclusive(const Rect& rhs) const { in mergeExclusive()
336 const Region Region::intersect(const Rect& rhs) const { in intersect()
339 const Region Region::subtract(const Rect& rhs) const { in subtract()
342 const Region Region::operation(const Rect& rhs, int op) const { in operation()
418 class Region::rasterizer : public region_operator<Rect>::region_rasterizer
420 Rect bounds;
421 Vector<Rect>& storage;
422 Rect* head;
423 Rect* tail;
424 Vector<Rect> span;
425 Rect* cur;
434 virtual void operator()(const Rect& rect);
463 void Region::rasterizer::operator()(const Rect& rect) in operator ()()
483 Rect const* p = span.editArray(); in flushSpan()
484 Rect const* q = head; in flushSpan()
498 Rect* r = head; in flushSpan()
519 Rect b(*prev); in validate()
524 if (*cur != Rect::INVALID_RECT) { in validate()
529 if (cur->right > region_operator<Rect>::max_value) { in validate()
533 if (cur->bottom > region_operator<Rect>::max_value) { in validate()
596 Rect const * const lhs_rects = lhs.getArray(&lhs_count); in boolean_operation()
599 Rect const * const rhs_rects = rhs.getArray(&rhs_count); in boolean_operation()
601 region_operator<Rect>::region lhs_region(lhs_rects, lhs_count); in boolean_operation()
602 region_operator<Rect>::region rhs_region(rhs_rects, rhs_count, dx, dy); in boolean_operation()
603 region_operator<Rect> operation(op, lhs_region, rhs_region); in boolean_operation()
697 const Rect& rhs, int dx, int dy) in boolean_operation()
701 if (!rhs.isValid() && rhs != Rect::INVALID_RECT) { in boolean_operation()
711 Rect const * const lhs_rects = lhs.getArray(&lhs_count); in boolean_operation()
713 region_operator<Rect>::region lhs_region(lhs_rects, lhs_count); in boolean_operation()
714 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy); in boolean_operation()
715 region_operator<Rect> operation(op, lhs_region, rhs_region); in boolean_operation()
731 const Region& lhs, const Rect& rhs) in boolean_operation()
743 Rect* rects = reg.mStorage.editArray(); in translate()
764 return sizeof(uint32_t) + mStorage.size() * sizeof(Rect); in getFlattenedSize()
794 if (size < numRects * sizeof(Rect)) { in unflatten()
801 Rect rect(Rect::EMPTY_RECT); in unflatten()
833 Rect const* Region::getArray(size_t* count) const { in getArray()