Lines Matching refs:Rect

55     op_nand = region_operator<Rect>::op_nand,
56 op_and = region_operator<Rect>::op_and,
57 op_or = region_operator<Rect>::op_or,
58 op_xor = region_operator<Rect>::op_xor
66 const Region Region::INVALID_REGION(Rect::INVALID_RECT);
71 mStorage.add(Rect(0,0)); in Region()
82 Region::Region(const Rect& rhs) { in Region()
104 static void reverseRectsResolvingJunctions(const Rect* begin, const Rect* end, in reverseRectsResolvingJunctions()
105 Vector<Rect>& dst, int spanDirection) { in reverseRectsResolvingJunctions()
108 const Rect* current = end - 1; in reverseRectsResolvingJunctions()
145 const Rect prev = dst[static_cast<size_t>(prevIndex)]; in reverseRectsResolvingJunctions()
151 dst.add(Rect(prev.right, top, right, bottom)); in reverseRectsResolvingJunctions()
156 dst.add(Rect(prev.left, top, right, bottom)); in reverseRectsResolvingJunctions()
170 dst.add(Rect(left, top, prev.left, bottom)); in reverseRectsResolvingJunctions()
175 dst.add(Rect(left, top, prev.right, bottom)); in reverseRectsResolvingJunctions()
187 dst.add(Rect(left, top, right, bottom)); in reverseRectsResolvingJunctions()
205 Vector<Rect> reversed; in createTJunctionFreeRegion()
233 const Rect bounds(getBounds()); in makeBoundsSelf()
259 mStorage.add(Rect(0,0)); in clear()
262 void Region::set(const Rect& r) in set()
271 mStorage.add(Rect(w, h)); in set()
277 mStorage.add(Rect(w, h)); in set()
288 Rect rect(l,t,r,b); in addRectUnchecked()
295 Region& Region::orSelf(const Rect& r) { in orSelf()
298 Region& Region::xorSelf(const Rect& r) { in xorSelf()
301 Region& Region::andSelf(const Rect& r) { in andSelf()
304 Region& Region::subtractSelf(const Rect& r) { in subtractSelf()
307 Region& Region::operationSelf(const Rect& r, uint32_t op) { in operationSelf()
340 Rect* rects = mStorage.editArray(); in scaleSelf()
354 const Region Region::merge(const Rect& rhs) const { in merge()
357 const Region Region::mergeExclusive(const Rect& rhs) const { in mergeExclusive()
360 const Region Region::intersect(const Rect& rhs) const { in intersect()
363 const Region Region::subtract(const Rect& rhs) const { in subtract()
366 const Region Region::operation(const Rect& rhs, uint32_t op) const { in operation()
442 class Region::rasterizer : public region_operator<Rect>::region_rasterizer
444 Rect bounds;
445 Vector<Rect>& storage;
446 Rect* head;
447 Rect* tail;
448 Vector<Rect> span;
449 Rect* cur;
458 virtual void operator()(const Rect& rect);
487 void Region::rasterizer::operator()(const Rect& rect) in operator ()()
507 Rect const* p = span.editArray(); in flushSpan()
508 Rect const* q = head; in flushSpan()
523 Rect* r = head; in flushSpan()
550 Rect b(*prev); in validate()
555 if (*cur != Rect::INVALID_RECT) { in validate()
560 if (cur->right > region_operator<Rect>::max_value) { in validate()
564 if (cur->bottom > region_operator<Rect>::max_value) { in validate()
629 Rect const * const lhs_rects = lhs.getArray(&lhs_count); in boolean_operation()
632 Rect const * const rhs_rects = rhs.getArray(&rhs_count); in boolean_operation()
634 region_operator<Rect>::region lhs_region(lhs_rects, lhs_count); in boolean_operation()
635 region_operator<Rect>::region rhs_region(rhs_rects, rhs_count, dx, dy); in boolean_operation()
636 region_operator<Rect> operation(op, lhs_region, rhs_region); in boolean_operation()
730 const Rect& rhs, int dx, int dy) in boolean_operation()
734 if (!rhs.isValid() && rhs != Rect::INVALID_RECT) { in boolean_operation()
744 Rect const * const lhs_rects = lhs.getArray(&lhs_count); in boolean_operation()
746 region_operator<Rect>::region lhs_region(lhs_rects, lhs_count); in boolean_operation()
747 region_operator<Rect>::region rhs_region(&rhs, 1, dx, dy); in boolean_operation()
748 region_operator<Rect> operation(op, lhs_region, rhs_region); in boolean_operation()
764 const Region& lhs, const Rect& rhs) in boolean_operation()
776 Rect* rects = reg.mStorage.editArray(); in translate()
797 return sizeof(uint32_t) + mStorage.size() * sizeof(Rect); in getFlattenedSize()
827 if (size < numRects * sizeof(Rect)) { in unflatten()
831 if (numRects > (UINT32_MAX / sizeof(Rect))) { in unflatten()
839 Rect rect(Rect::EMPTY_RECT); in unflatten()
876 Rect const* Region::getArray(size_t* count) const { in getArray()