Lines Matching refs:left
59 int left() const { return fLeft; }
64 /** return the left edge of the rect */
70 * (i.e. left <= right) so the result may be negative.
82 * method is defined to return (right + left) >> 1.
85 * (right + left) / 2 when the sum is negative.
125 void set(int32_t left, int32_t top, int32_t right, int32_t bottom) {
126 fLeft = left;
132 void setLTRB(int32_t left, int32_t top, int32_t right, int32_t bottom) {
133 this->set(left, top, right, bottom);
160 /** Offset set the rectangle by adding dx to its left and right,
207 empty. The left and top are considered to be inside, while the right
219 bool contains(int32_t left, int32_t top, int32_t right, int32_t bottom) const {
220 return left < right && top < bottom && !this->isEmpty() && // check for empties
221 fLeft <= left && fTop <= top &&
239 bool containsNoEmptyCheck(int32_t left, int32_t top,
242 SkASSERT(left < right && top < bottom);
244 return fLeft <= left && fTop <= top &&
301 /** If the rectangle specified by left,top,right,bottom intersects this rectangle,
306 bool intersect(int32_t left, int32_t top, int32_t right, int32_t bottom) {
307 if (left < right && top < bottom && !this->isEmpty() &&
308 fLeft < right && left < fRight && fTop < bottom && top < fBottom) {
309 if (fLeft < left) fLeft = left;
340 void join(int32_t left, int32_t top, int32_t right, int32_t bottom);
350 /** Swap top/bottom or left/right if there are flipped.
353 When this returns, left <= right && top <= bottom
452 SkScalar left() const { return fLeft; }
484 void set(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) {
485 fLeft = left;
491 void setLTRB(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) {
492 this->set(left, top, right, bottom);
498 void iset(int left, int top, int right, int bottom) {
499 fLeft = SkIntToScalar(left);
506 * Set this rectangle to be left/top at 0,0, and have the specified width
576 /** Offset set the rectangle by adding dx to its left and right,
625 /** If this rectangle intersects the rectangle specified by left, top, right, bottom,
630 bool intersect(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
636 bool intersects(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) const {
638 left < right && top < bottom &&
641 fLeft < right && left < fRight &&
665 void join(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
682 * contains() treats the left and top different from the right and bottom.
697 * Contains treats the left and top differently from the right and bottom.
698 * The left and top coordinates of the rectangle are themselves considered
711 * Contains treats the left and top differently from the right and bottom.
712 * The left and top coordinates of the rectangle are themselves considered
743 * SkScalarFloor of top and left, and the SkScalarCeil of right and bottom.
753 * floor of top and left, and the ceil of right and bottom. If this rect
765 * ceil of top and left, and the floor of right and bottom. This does *not*
767 * e.g. left >= right or top >= bottom. Call isEmpty() to detect that.
777 * Swap top/bottom or left/right if there are flipped (i.e. if width()
780 * other. When this returns, left <= right && top <= bottom