/external/pdfium/core/fxcrt/ |
D | fx_coordinates_unittest.cpp | 24 CFX_FloatRect rect(downwards); in TEST() local 25 EXPECT_FLOAT_EQ(rect.left, 10.0f); in TEST() 26 EXPECT_FLOAT_EQ(rect.bottom, 20.0f); in TEST() 27 EXPECT_FLOAT_EQ(rect.right, 30.0f); in TEST() 28 EXPECT_FLOAT_EQ(rect.top, 40.0f); in TEST() 32 CFX_FloatRect rect = CFX_FloatRect::GetBBox(nullptr, 0); in TEST() local 33 EXPECT_FLOAT_EQ(0.0f, rect.left); in TEST() 34 EXPECT_FLOAT_EQ(0.0f, rect.bottom); in TEST() 35 EXPECT_FLOAT_EQ(0.0f, rect.right); in TEST() 36 EXPECT_FLOAT_EQ(0.0f, rect.top); in TEST() [all …]
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_annot_unittest.cpp | 30 CFX_FloatRect rect = CPDF_Annot::RectFromQuadPointsArray(array.Get(), 0); in TEST() local 31 EXPECT_EQ(4.0f, rect.left); in TEST() 32 EXPECT_EQ(5.0f, rect.bottom); in TEST() 33 EXPECT_EQ(2.0f, rect.right); in TEST() 34 EXPECT_EQ(3.0f, rect.top); in TEST() 36 rect = CPDF_Annot::RectFromQuadPointsArray(array.Get(), 1); in TEST() 37 EXPECT_EQ(4.0f, rect.left); in TEST() 38 EXPECT_EQ(3.0f, rect.bottom); in TEST() 39 EXPECT_EQ(6.0f, rect.right); in TEST() 40 EXPECT_EQ(5.0f, rect.top); in TEST() [all …]
|
/external/skqp/docs/ |
D | SkIRect_Reference.bmh | 50 SkIRect rect = SkIRect::MakeEmpty(); 51 SkDebugf("MakeEmpty isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); 52 rect.offset(10, 10); 53 SkDebugf("offset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); 54 rect.inset(10, 10); 55 SkDebugf("inset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); 56 rect.outset(20, 20); 57 SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); 60 offset rect isEmpty: true 61 inset rect isEmpty: true [all …]
|
D | SkRect_Reference.bmh | 54 SkRect rect = SkRect::MakeEmpty(); 55 SkDebugf("MakeEmpty isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); 56 rect.offset(10, 10); 57 SkDebugf("offset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); 58 rect.inset(10, 10); 59 SkDebugf("inset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); 60 rect.outset(20, 20); 61 SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false"); 64 offset rect isEmpty: true 65 inset rect isEmpty: true [all …]
|
/external/lzma/CPP/Windows/Control/ |
D | Dialog.cpp | 82 static bool GetWorkAreaRect(RECT *rect) in GetWorkAreaRect() argument 85 return BOOLToBool(::SystemParametersInfo(SPI_GETWORKAREA, 0, rect, 0)); in GetWorkAreaRect() 95 RECT rect; in IsDialogSizeOK() local 96 GetWorkAreaRect(&rect); in IsDialogSizeOK() 97 int wx = RECT_SIZE_X(rect); in IsDialogSizeOK() 98 int wy = RECT_SIZE_Y(rect); in IsDialogSizeOK() 108 RECT rect; in GetMargins() local 109 rect.left = 0; in GetMargins() 110 rect.top = 0; in GetMargins() 111 rect.right = margin; in GetMargins() [all …]
|
/external/libchrome/ui/gfx/geometry/ |
D | rect_f.cc | 88 bool RectF::Contains(const RectF& rect) const { in Contains() 89 return rect.x() >= x() && rect.right() <= right() && rect.y() >= y() && in Contains() 90 rect.bottom() <= bottom(); in Contains() 93 bool RectF::Intersects(const RectF& rect) const { in Intersects() 94 return !IsEmpty() && !rect.IsEmpty() && rect.x() < right() && in Intersects() 95 rect.right() > x() && rect.y() < bottom() && rect.bottom() > y(); in Intersects() 98 void RectF::Intersect(const RectF& rect) { in Intersect() argument 99 if (IsEmpty() || rect.IsEmpty()) { in Intersect() 104 float rx = std::max(x(), rect.x()); in Intersect() 105 float ry = std::max(y(), rect.y()); in Intersect() [all …]
|
D | rect.cc | 165 bool Rect::Contains(const Rect& rect) const { in Contains() 166 return (rect.x() >= x() && rect.right() <= right() && rect.y() >= y() && in Contains() 167 rect.bottom() <= bottom()); in Contains() 170 bool Rect::Intersects(const Rect& rect) const { in Intersects() 171 return !(IsEmpty() || rect.IsEmpty() || rect.x() >= right() || in Intersects() 172 rect.right() <= x() || rect.y() >= bottom() || rect.bottom() <= y()); in Intersects() 175 void Rect::Intersect(const Rect& rect) { in Intersect() argument 176 if (IsEmpty() || rect.IsEmpty()) { in Intersect() 181 int left = std::max(x(), rect.x()); in Intersect() 182 int top = std::max(y(), rect.y()); in Intersect() [all …]
|
D | rect.h | 161 bool Contains(const Rect& rect) const; 165 bool Intersects(const Rect& rect) const; 168 void Intersect(const Rect& rect); 172 void Union(const Rect& rect); 176 void Subtract(const Rect& rect); 183 void AdjustToFit(const Rect& rect); 197 bool SharesEdgeWith(const Rect& rect) const; 207 int ManhattanInternalDistance(const Rect& rect) const; 211 bool ApproximatelyEqual(const Rect& rect, int tolerance) const; 271 inline Rect ScaleToEnclosingRect(const Rect& rect, in ScaleToEnclosingRect() argument [all …]
|
/external/skqp/tests/ |
D | PathOpsAsWindingTest.cpp | 12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPath::Direction dir) { in build_squircle() argument 17 path.addRect(rect, dir); in build_squircle() 21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle() 22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle() 23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle() 24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle() 25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle() 28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle() 32 SkScalar aX14 = rect.fLeft + rect.width() * 1 / 4; in build_squircle() 33 SkScalar aX34 = rect.fLeft + rect.width() * 3 / 4; in build_squircle() [all …]
|
/external/skia/tests/ |
D | PathOpsAsWindingTest.cpp | 12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPathDirection dir) { in build_squircle() argument 17 path.addRect(rect, dir); in build_squircle() 21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle() 22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle() 23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle() 24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle() 25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle() 28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle() 32 SkScalar aX14 = rect.fLeft + rect.width() * 1 / 4; in build_squircle() 33 SkScalar aX34 = rect.fLeft + rect.width() * 3 / 4; in build_squircle() [all …]
|
/external/igt-gpu-tools/lib/ |
D | igt_draw.c | 75 struct rect { struct 297 struct rect *rect, uint32_t color, int bpp) in draw_rect_ptr_linear() argument 301 for (y = rect->y; y < rect->y + rect->h; y++) { in draw_rect_ptr_linear() 303 for (x = rect->x; x < rect->x + rect->w; x++) in draw_rect_ptr_linear() 309 int swizzle, struct rect *rect, uint32_t color, in draw_rect_ptr_tiled() argument 314 for (y = rect->y; y < rect->y + rect->h; y++) { in draw_rect_ptr_tiled() 315 for (x = rect->x; x < rect->x + rect->w; x++) { in draw_rect_ptr_tiled() 333 static void draw_rect_mmap_cpu(int fd, struct buf_data *buf, struct rect *rect, in draw_rect_mmap_cpu() argument 351 draw_rect_ptr_linear(ptr, buf->stride, rect, color, buf->bpp); in draw_rect_mmap_cpu() 355 draw_rect_ptr_tiled(ptr, buf->stride, tiling, swizzle, rect, in draw_rect_mmap_cpu() [all …]
|
/external/dng_sdk/source/ |
D | dng_rect.h | 92 bool operator== (const dng_rect &rect) const; 94 bool operator!= (const dng_rect &rect) const 96 return !(*this == rect); 251 dng_rect_real64 (const dng_rect &rect) in dng_rect_real64() argument 252 : t ((real64) rect.t) in dng_rect_real64() 253 , l ((real64) rect.l) in dng_rect_real64() 254 , b ((real64) rect.b) in dng_rect_real64() 255 , r ((real64) rect.r) in dng_rect_real64() 264 bool operator== (const dng_rect_real64 &rect) const; 266 bool operator!= (const dng_rect_real64 &rect) const [all …]
|
/external/pdfium/xfa/fwl/theme/ |
D | cfwl_scrollbartp.cpp | 83 CFX_RectF rect = input_rect; in DrawThumbBtn() local 85 rect.Deflate(1, 0); in DrawThumbBtn() 87 rect.Deflate(0, 1); in DrawThumbBtn() 89 if (rect.IsEmpty(0.1f)) in DrawThumbBtn() 92 FillSolidRect(pGraphics, m_pThemeData->clrBtnBK[eState - 1][1], rect, matrix); in DrawThumbBtn() 97 path.AddRectangle(rect.left, rect.top, rect.width, rect.height); in DrawThumbBtn() 105 const CFX_RectF& rect, in DrawPaw() argument 112 if (rect.width / 2 <= fPawLen) { in DrawPaw() 113 fPawLen = (rect.width - 6) / 2; in DrawPaw() 116 float fX = rect.left + rect.width / 4; in DrawPaw() [all …]
|
/external/skia/samplecode/ |
D | SampleClock.cpp | 42 SkRect rect; in onDrawContent() local 44 rect = SkRect::MakeLTRB(200-4, -4, 240+4, 4); in onDrawContent() 47 rrect.setRectRadii(rect, radii); in onDrawContent() 68 rect = SkRect::MakeLTRB(231.5f, -2.5f, 242.5, 2.5f); in onDrawContent() 73 rrect.setRectRadii(rect, radii); in onDrawContent() 108 rect = SkRect::MakeLTRB(-20-7, -7, 80+7, 7); in onDrawContent() 113 rrect.setRectRadii(rect, radii); in onDrawContent() 129 rect = SkRect::MakeLTRB(-56-5, -5, 224+5, 5); in onDrawContent() 134 rrect.setRectRadii(rect, radii); in onDrawContent() 151 rect = SkRect::MakeLTRB(-60-3, -3, 166+3, 3); in onDrawContent() [all …]
|
/external/skqp/samplecode/ |
D | SampleClock.cpp | 52 SkRect rect; in onDrawContent() local 54 rect = SkRect::MakeLTRB(200-4, -4, 240+4, 4); in onDrawContent() 57 rrect.setRectRadii(rect, radii); in onDrawContent() 78 rect = SkRect::MakeLTRB(231.5f, -2.5f, 242.5, 2.5f); in onDrawContent() 83 rrect.setRectRadii(rect, radii); in onDrawContent() 118 rect = SkRect::MakeLTRB(-20-7, -7, 80+7, 7); in onDrawContent() 123 rrect.setRectRadii(rect, radii); in onDrawContent() 139 rect = SkRect::MakeLTRB(-56-5, -5, 224+5, 5); in onDrawContent() 144 rrect.setRectRadii(rect, radii); in onDrawContent() 161 rect = SkRect::MakeLTRB(-60-3, -3, 166+3, 3); in onDrawContent() [all …]
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_page.cpp | 102 const FX_RECT& rect, in DeviceToPage() argument 105 CFX_Matrix page2device = GetDisplayMatrix(rect, rotate); in DeviceToPage() 110 const FX_RECT& rect, in PageToDevice() argument 113 CFX_Matrix page2device = GetDisplayMatrix(rect, rotate); in PageToDevice() 117 CFX_Matrix CPDF_Page::GetDisplayMatrix(const FX_RECT& rect, int iRotate) const { in GetDisplayMatrix() argument 136 x0 = rect.left; in GetDisplayMatrix() 137 y0 = rect.bottom; in GetDisplayMatrix() 138 x1 = rect.left; in GetDisplayMatrix() 139 y1 = rect.top; in GetDisplayMatrix() 140 x2 = rect.right; in GetDisplayMatrix() [all …]
|
/external/skia/docs/examples/ |
D | Rect_makeInset.cpp | 7 SkRect rect = { 10, 50, 20, 60 }; in draw() local 8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 10 rect = rect.makeInset(15, 32); in draw() 11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|
D | IRect_makeOutset.cpp | 7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local 8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 10 rect = rect.makeOutset(15, 32); in draw() 11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|
D | Rect_makeOffset.cpp | 7 SkRect rect = { 10, 50, 20, 60 }; in draw() local 8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 10 rect = rect.makeOffset(15, 32); in draw() 11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|
D | IRect_makeInset.cpp | 7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local 8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 10 rect = rect.makeInset(15, 32); in draw() 11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|
D | Rect_makeOutset.cpp | 7 SkRect rect = { 10, 50, 20, 60 }; in draw() local 8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 10 rect = rect.makeOutset(15, 32); in draw() 11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|
D | IRect_makeOffset.cpp | 7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local 8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 10 rect = rect.makeOffset(15, 32); in draw() 11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|
D | IRect_setXYWH.cpp | 7 SkIRect rect; in draw() local 8 rect.setXYWH(5, 35, -15, 25); in draw() 9 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 10 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 11 rect.sort(); in draw() 12 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 13 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|
D | Rect_setWH.cpp | 7 SkRect rect; in draw() local 8 rect.setWH(-15, 25); in draw() 9 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 10 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 11 rect.sort(); in draw() 12 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 13 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|
D | Rect_setXYWH.cpp | 7 SkRect rect; in draw() local 8 rect.setXYWH(5, 35, -15, 25); in draw() 9 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 10 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw() 11 rect.sort(); in draw() 12 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw() 13 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
|