Lines Matching defs:set
37 r.set(0, 0, w, h);
43 r.set(0, 0, size.width(), size.height());
49 rect.set(l, t, r, b);
55 r.set(x, y, x + w, y + h);
123 /** Set the rectangle to (0,0,0,0)
127 void set(int32_t left, int32_t top, int32_t right, int32_t bottom) {
133 // alias for set(l, t, r, b)
135 this->set(left, top, right, bottom);
183 /** Offset set the rectangle by adding dx to its left and right,
279 /** If r intersects this rectangle, return true and set this rectangle to that
287 /** If rectangles a and b intersect, return true and set this rectangle to
305 /** If rectangles a and b intersect, return true and set this rectangle to
326 return true and set this rectangle to that intersection,
362 If this rectangle is empty, just set it to the specified rectangle. If the specified
368 If this rectangle is empty, just set it to the specified rectangle. If the specified
407 r.set(0, 0, w, h);
413 r.set(0, 0, SkIntToScalar(w), SkIntToScalar(h));
419 r.set(0, 0, size.width(), size.height());
425 rect.set(l, t, r, b);
431 r.set(x, y, x + w, y + h);
438 r.set(SkIntToScalar(irect.fLeft),
447 r.set(SkIntToScalar(irect.fLeft),
508 /** Set this rectangle to the empty rectangle (0,0,0,0)
512 void set(const SkIRect& src) {
519 void set(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) {
525 // alias for set(l, t, r, b)
527 this->set(left, top, right, bottom);
541 * Set this rectangle to be left/top at 0,0, and have the specified width
550 /** Set this rectangle to be the bounds of the array of points.
551 If the array is empty (count == 0), then set this rectangle
554 void set(const SkPoint pts[], int count) {
555 // set() had been checking for non-finite values, so keep that behavior
557 // set() be simpler/faster, and not check for those.
561 // alias for set(pts, count)
567 * Compute the bounds of the array of points, and set this rect to that
569 * in which case this rect is set to empty and false is returned.
573 void set(const SkPoint& p0, const SkPoint& p1) {
632 /** Offset set the rectangle by adding dx to its left and right,
675 /** If this rectangle intersects r, return true and set this rectangle to that
682 return true and set this rectangle to that intersection, otherwise return false
690 * If rectangles a and b intersect, return true and set this rectangle to
731 * If this rectangle is empty, just set it to the specified rectangle.
737 If this rectangle is empty, just set it to the specified rectangle. If the specified
818 * Set the dst rectangle by rounding this rectangle's coordinates to their
823 dst->set(SkScalarRoundToInt(fLeft), SkScalarRoundToInt(fTop),
841 dst->set(SkDScalarRoundToInt(fLeft), SkDScalarRoundToInt(fTop),
846 * Set the dst rectangle by rounding "out" this rectangle, choosing the
851 dst->set(SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop),
856 * Set the dst rectangle by rounding "out" this rectangle, choosing the
862 dst->set(SkScalarFloorToScalar(fLeft),
869 * Set the dst rectangle by rounding "in" this rectangle, choosing the
876 dst->set(SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTop),