Home | History | Annotate | Download | only in core

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
463 SkScalar left() const { return fLeft; }
480 /** return the 4 points that enclose the rectangle (top-left, top-right, bottom-right,
481 bottom-left). TODO: Consider adding param to control whether quad is CW or CCW.
496 void set(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) {
497 fLeft = left;
503 void setLTRB(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) {
504 this->set(left, top, right, bottom);
510 void iset(int left, int top, int right, int bottom) {
511 fLeft = SkIntToScalar(left);
518 * Set this rectangle to be left/top at 0,0, and have the specified width
588 /** Offset set the rectangle by adding dx to its left and right,
637 /** If this rectangle intersects the rectangle specified by left, top, right, bottom,
642 bool intersect(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
648 bool intersects(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) const {
650 left < right && top < bottom &&
653 fLeft < right && left < fRight &&
677 void join(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
694 * contains() treats the left and top different from the right and bottom.
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.
786 * Swap top/bottom or left/right if there are flipped (i.e. if width()
789 * other. When this returns, left <= right && top <= bottom