Searched defs:fRight (Results 1 - 21 of 21) sorted by relevance

/external/skia/include/views/animated/
H A DSkBorderView.h23 SkScalar getRight() const { return fRight; }
34 SkScalar fLeft, fRight, fTop, fBottom; //margin on each side member in class:SkBorderView
/external/skia/src/pathops/
H A DSkPathOpsRect.h13 double fLeft, fTop, fRight, fBottom; member in struct:SkDRect
18 fRight = SkTMax(fRight, pt.fX);
23 return approximately_between(fLeft, pt.fX, fRight)
30 SkASSERT(fLeft <= fRight);
32 SkASSERT(r.fLeft <= r.fRight);
34 return r.fLeft <= fRight && fLeft <= r.fRight && r.fTop <= fBottom && fTop <= r.fBottom;
38 fLeft = fRight = pt.fX;
43 return fRight
[all...]
/external/pdfium/xfa/src/fwl/src/theme/
H A Dpushbuttontp.cpp40 FX_FLOAT fRight = rect.right(); local
45 strokePath.LineTo(fRight - PUSHBUTTON_SIZE_Corner, rect.top);
46 strokePath.LineTo(fRight, rect.top + PUSHBUTTON_SIZE_Corner);
47 strokePath.LineTo(fRight, fBottom - PUSHBUTTON_SIZE_Corner);
48 strokePath.LineTo(fRight - PUSHBUTTON_SIZE_Corner, fBottom);
H A Dscrollbartp.cpp226 FX_FLOAT fRight = pRect->right(); local
230 path.AddRectangle(fRight - 1, pRect->top, 1, pRect->height);
242 FX_FLOAT x2 = bVert ? fRight - 1 : pRect->left;
H A Dformtp.cpp283 FX_FLOAT fBottom, fRight; local
285 fRight = pRect->right();
292 path.LineTo(fRight - 1, fBottom - 1);
293 path.LineTo(fRight - 1, pRect->top);
300 path.LineTo(fRight - 2, fBottom - 2);
301 path.LineTo(fRight - 2, pRect->top);
308 path.LineTo(fRight - 3, fBottom - 3);
309 path.LineTo(fRight - 3, pRect->top);
316 path.LineTo(fRight - 4, fBottom - 4);
317 path.LineTo(fRight
333 FX_FLOAT fBottom, fRight; local
387 FX_FLOAT fRight = pRect->right(); local
454 FX_FLOAT fRight = pRect->right(); local
[all...]
H A Dcheckboxtp.cpp113 FX_FLOAT fRight = pRect->right(); local
163 DrawAxialShading(pGraphics, pRect->left - 1, pRect->top - 1, fRight, fBottom,
277 FX_FLOAT fRight = pRtSign->right(); local
279 path.AddLine(pRtSign->left, pRtSign->top, fRight, fBottom);
280 path.AddLine(pRtSign->left, fBottom, fRight, pRtSign->top);
H A Dwidgettp.cpp299 FX_FLOAT fRight = pRect->right(); local
309 pathLT.LineTo(fRight - fHalfWidth, fTop);
310 pathLT.LineTo(fRight - fHalfWidth, fTop + fHalfWidth);
320 pathLT.LineTo(fRight - fWidth, fTop + fHalfWidth);
321 pathLT.LineTo(fRight - fWidth, fTop + fWidth);
330 pathRB.MoveTo(fRight - fHalfWidth, fTop + fHalfWidth);
331 pathRB.LineTo(fRight - fHalfWidth, fBottom - fHalfWidth);
334 pathRB.LineTo(fRight - fWidth, fBottom - fWidth);
335 pathRB.LineTo(fRight - fWidth, fTop + fHalfWidth);
336 pathRB.LineTo(fRight
643 FX_FLOAT fRight = pRect->right(); local
[all...]
/external/skia/src/gpu/
H A DGrRect.h15 int16_t fLeft, fTop, fRight, fBottom; member in struct:GrIRect16
35 int width() const { return fRight - fLeft; }
38 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; }
45 fRight = right;
52 fRight = SkToS16(r.fRight);
H A DGrTessellator.cpp237 , fRight(nullptr)
250 Edge* fRight; // " member in struct:__anon16105::Edge
303 return activeEdges && (fLeft || fRight || activeEdges->fHead == this);
648 remove<Edge, &Edge::fLeft, &Edge::fRight>(edge, &edges->fHead, &edges->fTail);
654 Edge* next = prev ? prev->fRight : edges->fHead;
655 insert<Edge, &Edge::fLeft, &Edge::fRight>(edge, prev, next, &edges->fHead, &edges->fTail);
661 *right = v->fLastEdgeAbove->fRight;
680 for (next = edges->fHead; next != nullptr; next = next->fRight) {
867 if (edge->fRight) {
868 Vertex* rightTop = edge->fRight
[all...]
/external/pdfium/fpdfsdk/src/pdfwindow/
H A DPWL_ListCtrl.cpp63 FX_FLOAT fRight = pChild->GetItemRightMargin(); local
66 fRight);
93 FX_FLOAT fRight = pChild->GetItemRightMargin(); local
100 FX_FLOAT fItemHeight = pChild->GetItemHeight(fWidth - fLeft - fRight);
101 pChild->Move(CPDF_Rect(fLeft, fy - fItemHeight, fWidth - fRight, fy),
H A DPWL_ScrollBar.cpp905 FX_FLOAT fLeft, fRight, fTop, fBottom; local
910 fRight = TrueToFace(m_sData.fScrollPos + m_sData.fClientWidth);
912 if (fRight - fLeft < PWL_SCROLLBAR_POSBUTTON_MINWIDTH)
913 fRight = fLeft + PWL_SCROLLBAR_POSBUTTON_MINWIDTH;
915 if (fRight > rcPosArea.right) {
916 fRight = rcPosArea.right;
917 fLeft = fRight - PWL_SCROLLBAR_POSBUTTON_MINWIDTH;
920 rcPosButton = CPDF_Rect(fLeft, rcPosArea.bottom, fRight, rcPosArea.top);
/external/skia/platform_tools/android/apps/canvasproof/src/main/jni/
H A Dorg_skia_canvasproof_GaneshPictureRenderer.cpp109 jfieldID fLeft, fTop, fRight, fBottom; member in struct:__anon15947::AndroidRectHelper
111 : fLeft(nullptr), fTop(nullptr), fRight(nullptr), fBottom(nullptr) {}
118 fRight = env->GetFieldID(rectClass, "right", "I");
144 env->SetIntField(androidGraphicsRect, help.fRight, (jint)(iRect.right()));
/external/skia/include/core/
H A DSkRegion.h184 return this->quickContains(r.fLeft, r.fTop, r.fRight, r.fBottom);
202 fBounds.fRight >= right && fBounds.fBottom >= bottom;
359 int fLeft, fRight; member in class:SkRegion::Spanerator
H A DSkRect.h21 int32_t fLeft, fTop, fRight, fBottom; member in struct:SkIRect
61 int right() const { return fRight; }
72 int width() const { return fRight - fLeft; }
89 int centerX() const { return (fRight + fLeft) >> 1; }
103 bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; }
107 SK_MaxS32 == fRight &&
120 SkIsS16(fRight) && SkIsS16(fBottom);
130 fRight = right;
141 fRight = x + width;
150 fRight
268 SkASSERT(fLeft < fRight && fTop < fBottom); SkASSERT(left < right && top < bottom); return fLeft <= left && fTop <= top && fRight >= right && fBottom >= bottom; } bool containsNoEmptyCheck(const SkIRect& r) const { return containsNoEmptyCheck(r.fLeft, r.fTop, r.fRight, r.fBottom); } bool SK_WARN_UNUSED_RESULT intersect(const SkIRect& r) { return this->intersect(r.fLeft, r.fTop, r.fRight, r.fBottom); } bool SK_WARN_UNUSED_RESULT intersect(const SkIRect& a, const SkIRect& b) { if (!a.isEmpty() && !b.isEmpty() && a.fLeft < b.fRight && b.fLeft < a.fRight && a.fTop < b.fBottom && b.fTop < a.fBottom) { fLeft = SkMax32(a.fLeft, b.fLeft); fTop = SkMax32(a.fTop, b.fTop); fRight = SkMin32(a.fRight, b.fRight); fBottom = SkMin32(a.fBottom, b.fBottom); return true; } return false; } bool SK_WARN_UNUSED_RESULT intersectNoEmptyCheck(const SkIRect& a, const SkIRect& b) { SkASSERT(!a.isEmpty() && !b.isEmpty()); if (a.fLeft < b.fRight && b.fLeft < a.fRight && a.fTop < b.fBottom && b.fTop < a.fBottom) { fLeft = SkMax32(a.fLeft, b.fLeft); fTop = SkMax32(a.fTop, b.fTop); fRight = SkMin32(a.fRight, b.fRight); fBottom = SkMin32(a.fBottom, b.fBottom); return true; } return false; } bool SK_WARN_UNUSED_RESULT intersect(int32_t left, int32_t top, int32_t right, int32_t bottom) { if (left < right && top < bottom && !this->isEmpty() && fLeft < right && left < fRight && fTop < bottom && top < fBottom) { if (fLeft < left) fLeft = left; if (fTop < top) fTop = top; if (fRight > right) fRight = right; if (fBottom > bottom) fBottom = bottom; return true; } return false; } static bool Intersects(const SkIRect& a, const SkIRect& b) { return !a.isEmpty() && !b.isEmpty() && a.fLeft < b.fRight && b.fLeft < a.fRight && a.fTop < b.fBottom && b.fTop < a.fBottom; } static bool IntersectsNoEmptyCheck(const SkIRect& a, const SkIRect& b) { SkASSERT(!a.isEmpty()); SkASSERT(!b.isEmpty()); return a.fLeft < b.fRight && b.fLeft < a.fRight && a.fTop < b.fBottom && b.fTop < a.fBottom; } void join(int32_t left, int32_t top, int32_t right, int32_t bottom); void join(const SkIRect& r) { this->join(r.fLeft, r.fTop, r.fRight, r.fBottom); } void sort(); static const SkIRect& SK_WARN_UNUSED_RESULT EmptyIRect() { static const SkIRect gEmpty = { 0, 0, 0, 0 }; return gEmpty; } }; struct SK_API SkRect { SkScalar fLeft, fTop, fRight, fBottom; static SkRect SK_WARN_UNUSED_RESULT MakeEmpty() { SkRect r; r.setEmpty(); return r; } static SkRect SK_WARN_UNUSED_RESULT MakeLargest() { SkRect r; r.setLargest(); return r; } static SkRect SK_WARN_UNUSED_RESULT MakeWH(SkScalar w, SkScalar h) { SkRect r; r.set(0, 0, w, h); return r; } static SkRect SK_WARN_UNUSED_RESULT MakeIWH(int w, int h) { SkRect r; r.set(0, 0, SkIntToScalar(w), SkIntToScalar(h)); return r; } static SkRect SK_WARN_UNUSED_RESULT MakeSize(const SkSize& size) { SkRect r; r.set(0, 0, size.width(), size.height()); return r; } static SkRect SK_WARN_UNUSED_RESULT MakeLTRB(SkScalar l, SkScalar t, SkScalar r, SkScalar b) { SkRect rect; rect.set(l, t, r, b); return rect; } static SkRect SK_WARN_UNUSED_RESULT MakeXYWH(SkScalar x, SkScalar y, SkScalar w, SkScalar h) { SkRect r; r.set(x, y, x + w, y + h); return r; } SK_ATTR_DEPRECATED(�) static SkRect SK_WARN_UNUSED_RESULT MakeFromIRect(const SkIRect& irect) { SkRect r; r.set(SkIntToScalar(irect.fLeft), SkIntToScalar(irect.fTop), SkIntToScalar(irect.fRight), SkIntToScalar(irect.fBottom)); return r; } static SkRect SK_WARN_UNUSED_RESULT Make(const SkIRect& irect) { SkRect r; r.set(SkIntToScalar(irect.fLeft), SkIntToScalar(irect.fTop), SkIntToScalar(irect.fRight), SkIntToScalar(irect.fBottom)); return r; } bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; } bool isLargest() const { return SK_ScalarMin == fLeft && SK_ScalarMin == fTop && SK_ScalarMax == fRight && SK_ScalarMax == fBottom; } bool isFinite() const { float accum = 0; accum *= fLeft; accum *= fTop; accum *= fRight; accum *= fBottom; SkASSERT(0 == accum || SkScalarIsNaN(accum)); return !SkScalarIsNaN(accum); } SkScalar x() const { return fLeft; } SkScalar y() const { return fTop; } SkScalar left() const { return fLeft; } SkScalar top() const { return fTop; } SkScalar right() const { return fRight; } SkScalar bottom() const { return fBottom; } SkScalar width() const { return fRight - fLeft; } SkScalar height() const { return fBottom - fTop; } SkScalar centerX() const { return SkScalarHalf(fLeft + fRight); } SkScalar centerY() const { return SkScalarHalf(fTop + fBottom); } friend bool operator==(const SkRect& a, const SkRect& b) { return SkScalarsEqual((SkScalar*)&a, (SkScalar*)&b, 4); } friend bool operator!=(const SkRect& a, const SkRect& b) { return !SkScalarsEqual((SkScalar*)&a, (SkScalar*)&b, 4); } void toQuad(SkPoint quad[4]) const; void setEmpty() { memset(this, 0, sizeof(*this)); } void set(const SkIRect& src) { fLeft = SkIntToScalar(src.fLeft); fTop = SkIntToScalar(src.fTop); fRight = SkIntToScalar(src.fRight); fBottom = SkIntToScalar(src.fBottom); } void set(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) { fLeft = left; fTop = top; fRight = right; fBottom = bottom; } void setLTRB(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) { this->set(left, top, right, bottom); } void iset(int left, int top, int right, int bottom) { fLeft = SkIntToScalar(left); fTop = SkIntToScalar(top); fRight = SkIntToScalar(right); fBottom = SkIntToScalar(bottom); } void isetWH(int width, int height) { fLeft = fTop = 0; fRight = SkIntToScalar(width); fBottom = SkIntToScalar(height); } void set(const SkPoint pts[], int count) { (void)this->setBoundsCheck(pts, count); } void setBounds(const SkPoint pts[], int count) { (void)this->setBoundsCheck(pts, count); } bool setBoundsCheck(const SkPoint pts[], int count); void set(const SkPoint& p0, const SkPoint& p1) { fLeft = SkMinScalar(p0.fX, p1.fX); fRight = SkMaxScalar(p0.fX, p1.fX); fTop = SkMinScalar(p0.fY, p1.fY); fBottom = SkMaxScalar(p0.fY, p1.fY); } void setXYWH(SkScalar x, SkScalar y, SkScalar width, SkScalar height) { fLeft = x; fTop = y; fRight = x + width; fBottom = y + height; } void setWH(SkScalar width, SkScalar height) { fLeft = 0; fTop = 0; fRight = width; fBottom = height; } void setLargest() { fLeft = fTop = SK_ScalarMin; fRight = fBottom = SK_ScalarMax; } void setLargestInverted() { fLeft = fTop = SK_ScalarMax; fRight = fBottom = SK_ScalarMin; } SkRect makeOffset(SkScalar dx, SkScalar dy) const { return MakeLTRB(fLeft + dx, fTop + dy, fRight + dx, fBottom + dy); } SkRect makeInset(SkScalar dx, SkScalar dy) const { return MakeLTRB(fLeft + dx, fTop + dy, fRight - dx, fBottom - dy); } SkRect makeOutset(SkScalar dx, SkScalar dy) const { return MakeLTRB(fLeft - dx, fTop - dy, fRight + dx, fBottom + dy); } void offset(SkScalar dx, SkScalar dy) { fLeft += dx; fTop += dy; fRight += dx; fBottom += dy; } void offset(const SkPoint& delta) { this->offset(delta.fX, delta.fY); } void offsetTo(SkScalar newX, SkScalar newY) { fRight += newX - fLeft; fBottom += newY - fTop; fLeft = newX; fTop = newY; } void inset(SkScalar dx, SkScalar dy) { fLeft += dx; fTop += dy; fRight -= dx; fBottom -= dy; } void outset(SkScalar dx, SkScalar dy) { this->inset(-dx, -dy); } bool SK_WARN_UNUSED_RESULT intersect(const SkRect& r); bool SK_WARN_UNUSED_RESULT intersect(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom); bool SK_WARN_UNUSED_RESULT intersect(const SkRect& a, const SkRect& b); private: static bool Intersects(SkScalar al, SkScalar at, SkScalar ar, SkScalar ab, SkScalar bl, SkScalar bt, SkScalar br, SkScalar bb) { SkScalar L = SkMaxScalar(al, bl); SkScalar R = SkMinScalar(ar, br); SkScalar T = SkMaxScalar(at, bt); SkScalar B = SkMinScalar(ab, bb); return L < R && T < B; } public: bool intersects(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom) const { return Intersects(fLeft, fTop, fRight, fBottom, left, top, right, bottom); } bool intersects(const SkRect& r) const { return Intersects(fLeft, fTop, fRight, fBottom, r.fLeft, r.fTop, r.fRight, r.fBottom); } static bool Intersects(const SkRect& a, const SkRect& b) { return Intersects(a.fLeft, a.fTop, a.fRight, a.fBottom, b.fLeft, b.fTop, b.fRight, b.fBottom); } void join(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom); void join(const SkRect& r) { this->join(r.fLeft, r.fTop, r.fRight, r.fBottom); } void joinNonEmptyArg(const SkRect& r) { SkASSERT(!r.isEmpty()); if (fLeft >= fRight || fTop >= fBottom) { *this = r; } else { this->joinPossiblyEmptyRect(r); } } void joinPossiblyEmptyRect(const SkRect& r) { fLeft = SkMinScalar(fLeft, r.left()); fTop = SkMinScalar(fTop, r.top()); fRight = SkMaxScalar(fRight, r.right()); fBottom = SkMaxScalar(fBottom, r.bottom()); } void growToInclude(SkScalar x, SkScalar y) { fLeft = SkMinScalar(x, fLeft); fRight = SkMaxScalar(x, fRight); fTop = SkMinScalar(y, fTop); fBottom = SkMaxScalar(y, fBottom); } void growToInclude(const SkPoint pts[], int count) { this->growToInclude(pts, sizeof(SkPoint), count); } void growToInclude(const SkPoint pts[], size_t stride, int count) { SkASSERT(count >= 0); SkASSERT(stride >= sizeof(SkPoint)); const SkPoint* end = (const SkPoint*)((intptr_t)pts + count * stride); for (; pts < end; pts = (const SkPoint*)((intptr_t)pts + stride)) { this->growToInclude(pts->fX, pts->fY); } } bool contains(const SkRect& r) const { return !r.isEmpty() && !this->isEmpty() && fLeft <= r.fLeft && fTop <= r.fTop && fRight >= r.fRight && fBottom >= r.fBottom; } bool contains(const SkIRect& r) const { return !r.isEmpty() && !this->isEmpty() && fLeft <= SkIntToScalar(r.fLeft) && fTop <= SkIntToScalar(r.fTop) && fRight >= SkIntToScalar(r.fRight) && fBottom >= SkIntToScalar(r.fBottom); } void round(SkIRect* dst) const { SkASSERT(dst); dst->set(SkScalarRoundToInt(fLeft), SkScalarRoundToInt(fTop), SkScalarRoundToInt(fRight), SkScalarRoundToInt(fBottom)); } void roundOut(SkIRect* dst) const { SkASSERT(dst); dst->set(SkScalarFloorToInt(fLeft), SkScalarFloorToInt(fTop), SkScalarCeilToInt(fRight), SkScalarCeilToInt(fBottom)); } void roundOut(SkRect* dst) const { dst->set(SkScalarFloorToScalar(fLeft), SkScalarFloorToScalar(fTop), SkScalarCeilToScalar(fRight), SkScalarCeilToScalar(fBottom)); } void roundIn(SkIRect* dst) const { SkASSERT(dst); dst->set(SkScalarCeilToInt(fLeft), SkScalarCeilToInt(fTop), SkScalarFloorToInt(fRight), SkScalarFloorToInt(fBottom)); } SkIRect round() const { SkIRect ir; this->round(&ir); return ir; } SkIRect roundOut() const { SkIRect ir; this->roundOut(&ir); return ir; } void sort() { if (fLeft > fRight) argument
[all...]
/external/pdfium/xfa/src/fwl/src/basewidget/
H A Dfwl_scrollbarimp.cpp450 FX_FLOAT fRight = m_rtThumb.right(); local
451 FX_FLOAT ix = (m_rtThumb.left + fRight) / 2;
/external/pdfium/core/src/fpdfdoc/
H A Ddoc_ap.cpp807 FX_FLOAT fRight = rect.right; local
818 sAppStream << fLeft << " " << fBottom << " " << fRight - fLeft << " "
821 << fRight - fLeft - fWidth * 2 << " "
837 sAppStream << fRight - fWidth / 2 << " " << fTop - fWidth / 2
839 sAppStream << fRight - fWidth / 2 << " " << fBottom + fWidth / 2
854 sAppStream << fRight - fHalfWidth << " " << fTop - fHalfWidth
856 sAppStream << fRight - fHalfWidth * 2 << " " << fTop - fHalfWidth * 2
866 sAppStream << fRight - fHalfWidth << " " << fTop - fHalfWidth
868 sAppStream << fRight - fHalfWidth << " " << fBottom + fHalfWidth
874 sAppStream << fRight
[all...]
/external/pdfium/xfa/src/fxfa/src/app/
H A Dxfa_textlayout.cpp1681 FX_FLOAT fRight = 0; local
1684 fRight = p->rtPiece.right();
1687 pPiece->rtPiece.width + pPiece->rtPiece.left - fRight;
H A Dxfa_ffwidget.cpp1707 FX_FLOAT fRight = rt.right(); local
1712 pathLT.LineTo(fRight, rt.top);
1713 pathLT.LineTo(fRight - fLineWidth, rt.top + fLineWidth);
1722 pathRB.MoveTo(fRight, rt.top);
1723 pathRB.LineTo(fRight, fBottom);
1726 pathRB.LineTo(fRight - fLineWidth, fBottom - fLineWidth);
1727 pathRB.LineTo(fRight - fLineWidth, rt.top + fLineWidth);
1728 pathRB.LineTo(fRight, rt.top);
/external/skia/src/core/
H A DSkAAClip.cpp482 fBounds.fRight -= riteZeros;
845 int w = r.fRight - r.fLeft;
1247 fBuilder->addRun(fLeft, y - 1, 0, fRight - fLeft);
1258 fRight = builder->getBounds().fRight;
1333 if (right > fRight) {
1335 localCount -= right - fRight;
1352 int fRight; member in class:SkAAClip::BuilderBlitter
1459 fBoundsRight = bounds.fRight;
1461 fRight
1495 int fRight; member in class:RowIter
[all...]
/external/sqlite/dist/orig/
H A Dsqlite3.c156065 RtreeDValue fRight = aDistance[aRight[iRight]]; local
[all...]
/external/sqlite/dist/
H A Dsqlite3.c156095 RtreeDValue fRight = aDistance[aRight[iRight]]; local
[all...]

Completed in 781 milliseconds