Lines Matching refs:rect
52 /** Constructs a rectangular SkRegion matching the bounds of rect.
54 @param rect bounds of constructed SkRegion
59 explicit SkRegion(const SkIRect& rect);
193 /** Constructs a rectangular SkRegion matching the bounds of rect.
194 If rect is empty, constructs empty and returns false.
196 @param rect bounds of constructed SkRegion
197 @return true if rect is not empty
201 bool setRect(const SkIRect& rect);
246 /** Returns true if SkRegion intersects rect.
247 Returns false if either rect or SkRegion is empty, or do not intersect.
249 @param rect SkIRect to intersect
250 @return true if rect and SkRegion have area in common
254 bool intersects(const SkIRect& rect) const;
313 /** Returns true if SkRegion does not intersect rect.
314 Returns true if rect is empty or SkRegion is empty.
315 May return false even though SkRegion does not intersect rect.
317 @param rect SkIRect to intersect
318 @return true if rect does not intersect
320 bool quickReject(const SkIRect& rect) const {
321 return this->isEmpty() || rect.isEmpty() ||
322 !SkIRect::Intersects(fBounds, rect);
371 /** Replaces SkRegion with the result of SkRegion op rect.
374 @param rect SkIRect operand
377 bool op(const SkIRect& rect, Op op) {
379 if (!fBounds.intersect(rect)) {
384 return this->op(*this, rect, op);
395 /** Replaces SkRegion with the result of rect op rgn.
398 @param rect SkIRect operand
404 bool op(const SkIRect& rect, const SkRegion& rgn, Op op);
406 /** Replaces SkRegion with the result of rgn op rect.
410 @param rect SkIRect operand
415 bool op(const SkRegion& rgn, const SkIRect& rect, Op op);
494 const SkIRect& rect() const { return fRect; }
544 const SkIRect& rect() const { return fRect; }
643 * is empty or a rect. In those 2 cases, we use tmpStorage to hold the
660 // If the runs define a simple rect, return true and set bounds to that
661 // rect. If not, return false and ignore bounds.