Home | History | Annotate | Download | only in core

Lines Matching refs:top

39     /** Returns the rectangle's height. This does not check for a valid rectangle (i.e. top <= bottom)
61 void set(int32_t left, int32_t top, int32_t right, int32_t bottom) {
63 fTop = top;
69 and adding dy to its top and bottom.
84 making the rectangle wider. The same hods true for dy and the top and bottom.
94 empty. The left and top are considered to be inside, while the right
106 bool contains(int32_t left, int32_t top, int32_t right, int32_t bottom) const {
107 return left < right && top < bottom && !this->isEmpty() && // check for empties
108 fLeft <= left && fTop <= top &&
126 bool containsNoEmptyCheck(int32_t left, int32_t top,
129 SkASSERT(left < right && top < bottom);
131 return fLeft <= left && fTop <= top &&
184 /** If the rectangle specified by left,top,right,bottom intersects this rectangle,
189 bool intersect(int32_t left, int32_t top, int32_t right, int32_t bottom) {
190 if (left < right && top < bottom && !this->isEmpty() &&
191 fLeft < right && left < fRight && fTop < bottom && top < fBottom) {
193 if (fTop < top) fTop = top;
213 void join(int32_t left, int32_t top, int32_t right, int32_t bottom);
223 /** Swap top/bottom or left/right if there are flipped.
226 When this returns, left <= right && top <= bottom
285 void set(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) {
287 fTop = top;
295 void iset(int left, int top, int right, int bottom) {
297 fTop = SkIntToScalar(top);
309 and adding dy to its top and bottom.
324 making the rectangle wider. The same hods true for dy and the top and bottom.
339 /** If this rectangle intersects the rectangle specified by left, top, right, bottom,
344 bool intersect(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
349 bool intersects(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) const {
351 left < right && top < bottom &&
355 fTop < bottom && top < fBottom;
370 void join(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom);
380 /** Returns true if (p.fX,p.fY) is inside the rectangle. The left and top coordinates of
392 /** Returns true if (x,y) is inside the rectangle. The left and top coordinates of
421 /** Set the dst integer rectangle by rounding "out" this rectangle, choosing the floor of top and left,
429 /** Swap top/bottom or left/right if there are flipped.
432 top <= bottom