Home
last modified time | relevance | path

Searched refs:rect2 (Results 1 – 25 of 54) sorted by relevance

123

/external/skqp/tests/
DPathOpsDRectTest.cpp46 SkDRect rect, rect2; in DEF_TEST() local
53 rect2.setBounds(quad); in DEF_TEST()
54 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
56 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; in DEF_TEST()
58 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; in DEF_TEST()
67 rect2.setBounds(cubic); in DEF_TEST()
68 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
70 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; in DEF_TEST()
72 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; in DEF_TEST()
DPathOpsCubicIntersectionTest.cpp494 SkDRect rect1, rect2; in CubicIntersection_RandTest() local
499 rect2.setBounds(c2); in CubicIntersection_RandTest()
500 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight in CubicIntersection_RandTest()
501 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom; in CubicIntersection_RandTest()
DWriter32Test.cpp193 const SkRect rect2 = SkRect::MakeXYWH(5, 6, 7, 8); in testOverwriteT() local
213 writer->overwriteTAt(padding + sizeof(uint32_t), rect2); in testOverwriteT()
217 REPORTER_ASSERT(reporter, writer->readTAt<SkRect>(padding + sizeof(uint32_t)) == rect2); in testOverwriteT()
DPathOpsBuilderTest.cpp54 SkPath rect2, rect3; in DEF_TEST() local
55 rect2.addRect(2, 1, 4, 3, SkPath::kCW_Direction); in DEF_TEST()
58 builder.add(rect2, kUnion_SkPathOp); in DEF_TEST()
/external/skia/tests/
DPathOpsDRectTest.cpp46 SkDRect rect, rect2; in DEF_TEST() local
53 rect2.setBounds(quad); in DEF_TEST()
54 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
56 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; in DEF_TEST()
58 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; in DEF_TEST()
67 rect2.setBounds(cubic); in DEF_TEST()
68 REPORTER_ASSERT(reporter, rect.intersects(rect2)); in DEF_TEST()
70 SkDPoint leftTop = {rect2.fLeft, rect2.fTop}; in DEF_TEST()
72 SkDPoint rightBottom = {rect2.fRight, rect2.fBottom}; in DEF_TEST()
DPathOpsCubicIntersectionTest.cpp495 SkDRect rect1, rect2; in CubicIntersection_RandTest() local
500 rect2.setBounds(c2); in CubicIntersection_RandTest()
501 bool boundsIntersect = rect1.fLeft <= rect2.fRight && rect2.fLeft <= rect2.fRight in CubicIntersection_RandTest()
502 && rect1.fTop <= rect2.fBottom && rect2.fTop <= rect1.fBottom; in CubicIntersection_RandTest()
DWriter32Test.cpp193 const SkRect rect2 = SkRect::MakeXYWH(5, 6, 7, 8); in testOverwriteT() local
213 writer->overwriteTAt(padding + sizeof(uint32_t), rect2); in testOverwriteT()
217 REPORTER_ASSERT(reporter, writer->readTAt<SkRect>(padding + sizeof(uint32_t)) == rect2); in testOverwriteT()
DPathOpsBuilderTest.cpp54 SkPath rect2, rect3; in DEF_TEST() local
55 rect2.addRect(2, 1, 4, 3, SkPath::kCW_Direction); in DEF_TEST()
58 builder.add(rect2, kUnion_SkPathOp); in DEF_TEST()
/external/skia/experimental/c-api-example/
Dskia-c-example.c62 sk_rect_t rect2; in draw() local
63 rect2.left = 120.0f; in draw()
64 rect2.top = 120.0f; in draw()
65 rect2.right = 520.0f; in draw()
66 rect2.bottom = 360.0f; in draw()
67 sk_canvas_draw_oval(canvas, &rect2, fill); in draw()
Dc.md83 sk_rect_t rect2;
84 rect2.left = 120.0f;
85 rect2.top = 120.0f;
86 rect2.right = 520.0f;
87 rect2.bottom = 360.0f;
88 sk_canvas_draw_oval(canvas, &rect2, fill);
/external/skqp/experimental/c-api-example/
Dskia-c-example.c62 sk_rect_t rect2; in draw() local
63 rect2.left = 120.0f; in draw()
64 rect2.top = 120.0f; in draw()
65 rect2.right = 520.0f; in draw()
66 rect2.bottom = 360.0f; in draw()
67 sk_canvas_draw_oval(canvas, &rect2, fill); in draw()
Dc.md83 sk_rect_t rect2;
84 rect2.left = 120.0f;
85 rect2.top = 120.0f;
86 rect2.right = 520.0f;
87 rect2.bottom = 360.0f;
88 sk_canvas_draw_oval(canvas, &rect2, fill);
/external/skia/gm/
Dclip_strokerect.cpp54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw() local
57 canvas->clipRect(rect2, true); in onDraw()
63 canvas->drawRect(rect2, p); in onDraw()
Dclipdrawdraw.cpp47 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); variable
50 Draw(canvas, rect2);
Dthinstrokedrects.cpp36 constexpr SkRect rect2 = { 0, 0, 20, 20 }; in onDraw() local
63 canvas->drawRect(rect2, paint); in onDraw()
/external/skqp/gm/
Dclip_strokerect.cpp54 SkRect rect2 = SkRect::MakeXYWH(20, 120, 100, 19); in onDraw() local
57 canvas->clipRect(rect2, true); in onDraw()
63 canvas->drawRect(rect2, p); in onDraw()
Dclipdrawdraw.cpp47 const SkRect rect2 = SkRect::MakeLTRB(207.5f, 179.499f, 530.5f, 429.5f); variable
50 Draw(canvas, rect2);
Dthinstrokedrects.cpp36 constexpr SkRect rect2 = { 0, 0, 20, 20 }; in onDraw() local
63 canvas->drawRect(rect2, paint); in onDraw()
/external/fonttools/Lib/fontTools/misc/
DarrayTools.py86 def sectRect(rect1, rect2): argument
92 (xMin2, yMin2, xMax2, yMax2) = rect2
99 def unionRect(rect1, rect2): argument
105 (xMin2, yMin2, xMax2, yMax2) = rect2
/external/libmojo/mojo/public/cpp/bindings/tests/
Dtype_conversion_unittest.cc150 RectPtr rect2(Rect::From(rr)); in TEST() local
151 EXPECT_EQ(rect->x, rect2->x); in TEST()
152 EXPECT_EQ(rect->y, rect2->y); in TEST()
153 EXPECT_EQ(rect->width, rect2->width); in TEST()
154 EXPECT_EQ(rect->height, rect2->height); in TEST()
/external/skia/docs/
DSkRect_Reference.bmh116 SkRect rect2 = SkRect::MakeIWH(25, 35);
119 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ?
286 SkRect rect2 = SkRect::MakeIWH(2, 35);
287 SkDebugf("rect1 %c= rect2\n", rect1 == rect2 ? '=' : '!');
289 rect1 == rect2
977 SkRect rect2;
978 rect2.set(3, 4, 1, 2);
979 SkDebugf("rect2: {%g, %g, %g, %g}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
982 rect2: {3, 4, 1, 2}
1008 SkRect rect2;
[all …]
DSkIRect_Reference.bmh109 SkIRect rect2 = SkIRect::MakeSize({25, 35});
112 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ?
787 SkIRect rect2;
788 rect2.set(3, 4, 1, 2);
789 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
792 rect2: {3, 4, 1, 2}
818 SkIRect rect2;
819 rect2.setLTRB(3, 4, 1, 2);
820 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
823 rect2: {3, 4, 1, 2}
/external/skqp/docs/
DSkRect_Reference.bmh133 SkRect rect2 = SkRect::MakeIWH(25, 35);
136 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ?
319 SkRect rect2 = SkRect::MakeIWH(2, 35);
320 SkDebugf("rect1 %c= rect2\n", rect1 == rect2 ? '=' : '!');
322 rect1 == rect2
1057 SkRect rect2;
1058 rect2.set(3, 4, 1, 2);
1059 SkDebugf("rect2: {%g, %g, %g, %g}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
1062 rect2: {3, 4, 1, 2}
1088 SkRect rect2;
[all …]
DSkIRect_Reference.bmh120 SkIRect rect2 = SkIRect::MakeSize({25, 35});
123 SkDebugf("all %s" "equal\n", rect1 == rect2 && rect2 == rect3 && rect3 == rect4 ?
772 SkIRect rect2;
773 rect2.set(3, 4, 1, 2);
774 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
777 rect2: {3, 4, 1, 2}
802 SkIRect rect2;
803 rect2.setLTRB(3, 4, 1, 2);
804 SkDebugf("rect2: {%d, %d, %d, %d}\n", rect2.fLeft, rect2.fTop, rect2.fRight, rect2.fBottom);
807 rect2: {3, 4, 1, 2}
/external/python/cpython2/Mac/Demo/PICTbrowse/
DoldPICTbrowse.py94 rect2 = rect[0]+1, rect[1]+1, rect[2]-17, rect[3]-17 # Scroll bar space
95 self.list = List.LNew(rect2, (0, 0, 1, len(contents)), (0,0), 0, self.wid,

123