/third_party/skia/experimental/graphite/src/geom/ |
D | Rect.h | 27 class Rect { 29 AI Rect() = default; 30 AI Rect(float l, float t, float r, float b) : fVals(NegateBotRight({l,t,r,b})) {} in Rect() function 31 AI Rect(float2 topLeft, float2 botRight) : fVals(topLeft, -botRight) {} in Rect() function 32 AI Rect(const SkRect& r) : fVals(NegateBotRight(float4::Load(r.asScalars()))) {} in Rect() function 34 AI static Rect XYWH(float x, float y, float w, float h) { in XYWH() 35 return Rect(x, y, x + w, y + h); in XYWH() 37 AI static Rect XYWH(float2 topLeft, float2 size) { in XYWH() 38 return Rect(topLeft, topLeft + size); in XYWH() 40 AI static Rect WH(float w, float h) { in WH() [all …]
|
D | BoundsManager.h | 35 virtual CompressedPaintersOrder getMostRecentDraw(const Rect& bounds) const = 0; 37 virtual bool isOccluded(const Rect& bounds, PaintersDepth z) const = 0; 39 virtual void recordDraw(const Rect& bounds, 54 CompressedPaintersOrder getMostRecentDraw(const Rect& bounds) const override { in getMostRecentDraw() 58 bool isOccluded(const Rect& bounds, PaintersDepth z) const override { return false; } in isOccluded() 60 void recordDraw(const Rect& bounds, CompressedPaintersOrder order, PaintersDepth z, 77 CompressedPaintersOrder getMostRecentDraw(const Rect& bounds) const override { in getMostRecentDraw() 87 bool isOccluded(const Rect& bounds, PaintersDepth z) const override { in isOccluded() 97 void recordDraw(const Rect& bounds, CompressedPaintersOrder order, PaintersDepth z, 104 Rect fBounds;
|
D | Transform.cpp | 17 Rect map_rect(const SkM44& m, const Rect& r) { in map_rect() 45 Rect Transform::mapRect(const Rect& rect) const { return map_rect(fM, rect); } in mapRect() 46 Rect Transform::inverseMapRect(const Rect& rect) const { return map_rect(fInvM, rect); } in inverseMapRect()
|
/third_party/flutter/flutter/packages/flutter/test/widgets/ |
D | image_rtl_test.dart | 69 ..clipRect(rect: const Rect.fromLTRB(0.0, 0.0, 100.0, 50.0)) 73 …..drawImageRect(source: const Rect.fromLTRB(0.0, 0.0, 16.0, 9.0), destination: const Rect.fromLTRB… 74 …..drawImageRect(source: const Rect.fromLTRB(0.0, 0.0, 16.0, 9.0), destination: const Rect.fromLTRB… 75 …..drawImageRect(source: const Rect.fromLTRB(0.0, 0.0, 16.0, 9.0), destination: const Rect.fromLTRB… 76 …..drawImageRect(source: const Rect.fromLTRB(0.0, 0.0, 16.0, 9.0), destination: const Rect.fromLTRB… 77 …..drawImageRect(source: const Rect.fromLTRB(0.0, 0.0, 16.0, 9.0), destination: const Rect.fromLTRB… 78 …..drawImageRect(source: const Rect.fromLTRB(0.0, 0.0, 16.0, 9.0), destination: const Rect.fromLTRB… 79 …..drawImageRect(source: const Rect.fromLTRB(0.0, 0.0, 16.0, 9.0), destination: const Rect.fromLTRB… 108 ..clipRect(rect: const Rect.fromLTRB(0.0, 0.0, 100.0, 50.0)) 109 …..drawImageRect(source: const Rect.fromLTRB(0.0, 0.0, 16.0, 9.0), destination: const Rect.fromLTRB… [all …]
|
D | slivers_padding_test.dart | 29 void verify(WidgetTester tester, List<Rect> answerKey) { 30 …final List<Rect> testAnswers = tester.renderObjectList<RenderBox>(find.byType(SizedBox, skipOffsta… 34 return Rect.fromPoints(topLeft, bottomRight); 45 verify(tester, <Rect>[ 46 const Rect.fromLTWH(0.0, 0.0, 800.0, 400.0), 47 const Rect.fromLTWH(25.0, 420.0, 760.0, 400.0), 48 const Rect.fromLTWH(0.0, 855.0, 800.0, 400.0), 52 verify(tester, <Rect>[ 53 const Rect.fromLTWH(0.0, -200.0, 800.0, 400.0), 54 const Rect.fromLTWH(25.0, 220.0, 760.0, 400.0), [all …]
|
D | list_body_test.dart | 15 void expectRects(WidgetTester tester, List<Rect> expected) { 18 final List<Rect> actual = <Rect>[]; 38 <Rect>[ 39 const Rect.fromLTWH(0.0, 0.0, 800.0, 150.0), 40 const Rect.fromLTWH(0.0, 150.0, 800.0, 150.0), 41 const Rect.fromLTWH(0.0, 300.0, 800.0, 150.0), 42 const Rect.fromLTWH(0.0, 450.0, 800.0, 150.0), 55 <Rect>[ 56 const Rect.fromLTWH(0.0, 450.0, 800.0, 150.0), 57 const Rect.fromLTWH(0.0, 300.0, 800.0, 150.0), [all …]
|
D | safe_area_test.dart | 196 void verify(WidgetTester tester, List<Rect> expectedRects) { 197 …final List<Rect> testAnswers = tester.renderObjectList<RenderBox>(find.byType(SizedBox)).map<Rect>( 201 return Rect.fromPoints(topLeft, bottomRight); 217 verify(tester, <Rect>[ 218 const Rect.fromLTWH(0.0, 0.0, 800.0, 100.0), 219 const Rect.fromLTWH(0.0, 120.0, 780.0, 100.0), 220 const Rect.fromLTWH(0.0, 240.0, 800.0, 100.0), 235 verify(tester, <Rect>[ 236 const Rect.fromLTWH(0.0, 0.0, 800.0, 100.0), 237 const Rect.fromLTWH(20.0, 110.0, 760.0, 100.0), [all …]
|
/third_party/flutter/engine/flutter/lib/web_ui/test/ |
D | geometry_test.dart | 75 group('Rect', () { 76 test('Rect accessors', () { 77 final Rect r = Rect.fromLTRB(1.0, 3.0, 5.0, 7.0); 84 test('Rect created by width and height', () { 85 final Rect r = Rect.fromLTWH(1.0, 3.0, 5.0, 7.0); 94 test('Rect intersection', () { 95 final Rect r1 = Rect.fromLTRB(0.0, 0.0, 100.0, 100.0); 96 final Rect r2 = Rect.fromLTRB(50.0, 50.0, 200.0, 200.0); 97 final Rect r3 = r1.intersect(r2); 103 final Rect r4 = r2.intersect(r1); [all …]
|
D | path_test.dart | 68 path.addRect(Rect.fromLTWH(1.0, 2.0, 3.0, 4.0)); 69 expect(path.webOnlyPathAsRect, Rect.fromLTWH(1.0, 2.0, 3.0, 4.0)); 79 path.addRect(Rect.fromLTWH(1.0, 2.0, 3.0, 4.0)); 80 path.addRect(Rect.fromLTWH(5.0, 6.0, 7.0, 8.0)); 87 Rect.fromLTWH(1.0, 2.0, 3.0, 4.0), Radius.circular(2.0))); 91 Rect.fromLTWH(1.0, 2.0, 3.0, 4.0), Radius.circular(2.0))); 101 path.addRect(Rect.fromLTWH(1.0, 2.0, 3.0, 4.0)); 110 Rect.fromLTWH(1.0, 2.0, 3.0, 4.0), Radius.circular(2.0))); 112 Rect.fromLTWH(1.0, 2.0, 3.0, 4.0), Radius.circular(2.0))); 118 expect(emptyPath.getBounds(), Rect.zero); [all …]
|
/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | notched_shapes_test.dart | 14 const Rect host = Rect.fromLTRB(0.0, 100.0, 300.0, 300.0); 15 const Rect guest = Rect.fromLTWH(50.0, 50.0, 10.0, 10.0); 32 const Rect host = Rect.fromLTRB(0.0, 100.0, 300.0, 300.0); 33 const Rect guest = Rect.fromLTRB(190.0, 85.0, 210.0, 105.0); 42 const Rect host = Rect.fromLTRB(0.0, 100.0, 300.0, 300.0); 43 const Rect guest = Rect.fromLTRB(190.0, 95.0, 210.0, 115.0); 51 const Rect host = Rect.fromLTRB(0.0, 100.0, 300.0, 300.0); 68 const Rect.fromLTWH(-200.0, -100.0, 50.0, 100.0), 69 const Rect.fromLTWH(-175.0, -110.0, 100.0, 100.0), 80 areaToCompare: const Rect.fromLTWH(-300.0, -300.0, 600.0, 600.0), [all …]
|
D | text_painter_test.dart | 22 ui.Rect.zero, 25 caretOffset = painter.getOffsetForCaret(ui.TextPosition(offset: text.length), ui.Rect.zero); 32 caretOffset = painter.getOffsetForCaret(ui.TextPosition(offset: text.length), ui.Rect.zero); 44 Offset caretOffset = painter.getOffsetForCaret(const ui.TextPosition(offset: 0), ui.Rect.zero); 46 caretOffset = painter.getOffsetForCaret(const ui.TextPosition(offset: 1), ui.Rect.zero); 48 caretOffset = painter.getOffsetForCaret(const ui.TextPosition(offset: 2), ui.Rect.zero); 55 caretOffset = painter.getOffsetForCaret(const ui.TextPosition(offset: 0), ui.Rect.zero); 57 caretOffset = painter.getOffsetForCaret(const ui.TextPosition(offset: 1), ui.Rect.zero); 73 Offset caretOffset = painter.getOffsetForCaret(const ui.TextPosition(offset: 0), ui.Rect.zero); 75 … caretOffset = painter.getOffsetForCaret(const ui.TextPosition(offset: text.length), ui.Rect.zero); [all …]
|
D | matrix_utils_test.dart | 13 …const Rect evilRect = Rect.fromLTRB(0.0, -1.7976931348623157e+308, 800.0, 1.7976931348623157e+308); 15 final Rect transformedRect = MatrixUtils.transformRect(transform, evilRect); 133 const Rect rectangle20x20 = Rect.fromLTRB(10, 20, 30, 40); 144 const Rect.fromLTRB(20, 40, 60, 80), 150 within<Rect>(distance: 0.00001, from: const Rect.fromLTRB(-40.0, 10.0, -20.0, 30.0)), 162 final Rect rect = Rect.fromLTRB(11.0 * i, 12.0 * i, 15.0 * i, 18.0 * i); 163 final Rect golden = _vectorWiseTransformRect(transform, rect); 166 within<Rect>(distance: 0.00001, from: golden), 186 Rect _vectorWiseTransformRect(Matrix4 transform, Rect rect) { 191 return Rect.fromLTRB(
|
/third_party/flutter/flutter/packages/flutter/test/material/ |
D | arc_test.dart | 26 begin: const Rect.fromLTWH(0.0, 0.0, 10.0, 10.0), 27 end: const Rect.fromLTWH(0.0, 10.0, 10.0, 10.0), 31 begin: const Rect.fromLTWH(0.0, 0.0, 10.0, 10.0), 32 end: const Rect.fromLTWH(0.0, 10.0, 10.0, 10.0), 55 begin: const Rect.fromLTWH(0.0, 0.0, 10.0, 10.0), 56 end: const Rect.fromLTWH(0.0, 10.0, 10.0, 10.0), 58 expect(tween.lerp(0.5), equals(const Rect.fromLTWH(0.0, 5.0, 10.0, 10.0))); 62 begin: const Rect.fromLTWH(0.0, 0.0, 10.0, 10.0), 63 end: const Rect.fromLTWH(10.0, 0.0, 10.0, 10.0), 65 expect(tween.lerp(0.5), equals(const Rect.fromLTWH(5.0, 0.0, 10.0, 10.0))); [all …]
|
D | list_tile_test.dart | 116 final Rect tileRect = tester.getRect(find.byType(ListTile)); 589 …expect(tester.getRect(find.byType(ListTile).at(0)), const Rect.fromLTWH( 0.0, … 590 …expect(tester.getRect(find.byType(CircleAvatar).at(0)), const Rect.fromLTWH( 16.0, … 591 …expect(tester.getRect(find.byType(Placeholder).at(0)), const Rect.fromLTWH(800.0 - 24.0 - 16.0, … 592 …expect(tester.getRect(find.byType(ListTile).at(1)), const Rect.fromLTWH( 0.0, … 593 …expect(tester.getRect(find.byType(CircleAvatar).at(1)), const Rect.fromLTWH( 16.0, 1… 594 …expect(tester.getRect(find.byType(Placeholder).at(1)), const Rect.fromLTWH(800.0 - 24.0 - 16.0, 1… 619 …expect(tester.getRect(find.byType(ListTile).at(0)), const Rect.fromLTWH( 0.0, … 620 …expect(tester.getRect(find.byType(CircleAvatar).at(0)), const Rect.fromLTWH( 16.0, … 621 …expect(tester.getRect(find.byType(Placeholder).at(0)), const Rect.fromLTWH(800.0 - 24.0 - 16.0, … [all …]
|
/third_party/flutter/engine/flutter/testing/dart/ |
D | geometry_test.dart | 113 group('Rect', () { 115 const Rect r = Rect.fromLTRB(1.0, 3.0, 5.0, 7.0); 116 expect(r.toString(), 'Rect.fromLTRB(1.0, 3.0, 5.0, 7.0)'); 119 test('Rect accessors', () { 120 const Rect r = Rect.fromLTRB(1.0, 3.0, 5.0, 7.0); 127 test('Rect.fromCenter', () { 128 Rect rect = Rect.fromCenter(center: const Offset(1.0, 3.0), width: 5.0, height: 7.0); 134 rect = Rect.fromCenter(center: const Offset(0.0, 0.0), width: 0.0, height: 0.0); 140 rect = Rect.fromCenter(center: const Offset(double.nan, 0.0), width: 0.0, height: 0.0); 146 rect = Rect.fromCenter(center: const Offset(0.0, double.nan), width: 0.0, height: 0.0); [all …]
|
D | path_test.dart | 12 const Rect r = Rect.fromLTRB(1.0, 3.0, 5.0, 7.0); 16 expect(p.getBounds(), equals(const Rect.fromLTRB(1.0, 3.0, 20.0, 15.0))); 20 final Rect c1 = Rect.fromCircle(center: const Offset(10.0, 10.0), radius: 10.0); 21 final Rect c2 = Rect.fromCircle(center: const Offset(5.0, 5.0), radius: 10.0); 22 final Rect c1UnionC2 = c1.expandToInclude(c2); 23 final Rect c1IntersectC2 = c1.intersect(c2); 45 final Rect c1 = Rect.fromCircle(center: const Offset(10.0, 10.0), radius: 10.0); 46 final Rect c2 = Rect.fromCircle(center: const Offset(5.0, 5.0), radius: 10.0); 47 final Rect c1UnionC2 = c1.expandToInclude(c2); 48 final Rect c1IntersectC2 = c1.intersect(c2); [all …]
|
/third_party/flutter/skia/tools/lua/ |
D | skia.lua | 20 Sk.Rect = { left = 0, top = 0, right = 0, bottom = 0 } 21 Sk.Rect.__index = Sk.Rect 23 function Sk.Rect.new(l, t, r, b) 35 setmetatable(rect, Sk.Rect) 39 function Sk.Rect:width() 43 function Sk.Rect:height() 47 function Sk.Rect:isEmpty() 51 function Sk.Rect:isFinite() 59 function Sk.Rect:setEmpty() 66 function Sk.Rect:set(l, t, r, b) [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | declarationEmitExpandoWithGenericConstraint.js | 7 export interface Rect<p extends Point> { 13 export const Rect = <p extends Point>(a: p, b: p): Rect<p> => ({ a, b }); constant 20 exports.Rect = exports.Point = void 0; 23 var Rect = function (a, b) { return ({ a: a, b: b }); }; class 24 exports.Rect = Rect; 33 export interface Rect<p extends Point> { 41 export declare const Rect: <p extends Point>(a: p, b: p) => Rect<p>;
|
D | declarationEmitExpandoWithGenericConstraint.symbols | 12 export interface Rect<p extends Point> { 13 >Rect : Symbol(Rect, Decl(declarationEmitExpandoWithGenericConstraint.ts, 3, 1), Decl(declarationEm… 18 >a : Symbol(Rect.a, Decl(declarationEmitExpandoWithGenericConstraint.ts, 5, 40)) 22 >b : Symbol(Rect.b, Decl(declarationEmitExpandoWithGenericConstraint.ts, 6, 18)) 34 export const Rect = <p extends Point>(a: p, b: p): Rect<p> => ({ a, b }); 35 >Rect : Symbol(Rect, Decl(declarationEmitExpandoWithGenericConstraint.ts, 3, 1), Decl(declarationEm… 42 >Rect : Symbol(Rect, Decl(declarationEmitExpandoWithGenericConstraint.ts, 3, 1), Decl(declarationEm…
|
/third_party/skia/tests/graphite/ |
D | IntersectionTreeTest.cpp | 38 Rect rect = Rect::XYWH(rand.nextRangeF(0, 500), in DEF_GRAPHITE_TEST() 52 Rect rect = Rect::XYWH(rand.nextRangeF(0, 500), in DEF_GRAPHITE_TEST() 65 CHECK(tree.add(Rect(float2(-std::numeric_limits<float>::infinity()), in DEF_GRAPHITE_TEST() 67 CHECK(!tree.add(Rect::WH(1,1))); in DEF_GRAPHITE_TEST() 68 CHECK(!tree.add(Rect::WH(1,std::numeric_limits<float>::infinity()))); in DEF_GRAPHITE_TEST() 69 CHECK(tree.add(Rect::WH(0, 0))); in DEF_GRAPHITE_TEST() 70 CHECK(tree.add(Rect::WH(-1, 1))); in DEF_GRAPHITE_TEST() 71 CHECK(tree.add(Rect::WH(1, std::numeric_limits<float>::quiet_NaN()))); in DEF_GRAPHITE_TEST()
|
D | RectTest.cpp | 17 const Rect rect = skRect; in DEF_GRAPHITE_TEST() 26 const Rect rect2(l,t,r,b); in DEF_GRAPHITE_TEST() 30 CHECK(rect2 == Rect(float2(l,t), float2(r,b))); in DEF_GRAPHITE_TEST() 31 CHECK(rect2 == Rect(skRect2)); in DEF_GRAPHITE_TEST() 38 CHECK(rect2 == Rect::XYWH(l, t, r - l, b - t)); in DEF_GRAPHITE_TEST() 39 CHECK(rect2 == Rect::XYWH(float2(l, t), float2(r - l, b - t))); in DEF_GRAPHITE_TEST() 41 CHECK(rect2 == Rect::WH(r - l, b - t)); in DEF_GRAPHITE_TEST() 42 CHECK(rect2 == Rect::WH(float2(r - l, b - t))); in DEF_GRAPHITE_TEST() 44 CHECK(rect2 == Rect::FromVals(rect2.vals())); in DEF_GRAPHITE_TEST() 57 Rect setTest(-99,-99,99,99); in DEF_GRAPHITE_TEST() [all …]
|
/third_party/flutter/flutter/packages/flutter/test/semantics/ |
D | semantics_test.dart | 42 ..rect = const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0) 58 ..rect = const Rect.fromLTRB(5.0, 5.0, 10.0, 10.0) 68 ..rect = const Rect.fromLTRB(0.0, 0.0, 10.0, 10.0); 77 ..rect = const Rect.fromLTRB(5.0, 5.0, 10.0, 10.0) 87 ..rect = const Rect.fromLTRB(42.0, 42.0, 10.0, 10.0) 118 ..rect = const Rect.fromLTRB(5.0, 5.0, 10.0, 10.0), 121 ..rect = const Rect.fromLTRB(10.0, 10.0, 20.0, 20.0) 130 ..rect = const Rect.fromLTRB(0.0, 0.0, 20.0, 20.0); 133 ..rect = const Rect.fromLTRB(40.0, 14.0, 20.0, 20.0); 150 …' Previous child: SemanticsNode#6(STALE, owner: null, merged up ⬆️, Rect.fromLTRB(0.0, 0.0, 20.0… [all …]
|
/third_party/skia/modules/sksg/src/ |
D | SkSGRect.cpp | 16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect() function in sksg::Rect 18 void Rect::onClip(SkCanvas* canvas, bool antiAlias) const { in onClip() 22 void Rect::onDraw(SkCanvas* canvas, const SkPaint& paint) const { in onDraw() 26 bool Rect::onContains(const SkPoint& p) const { in onContains() 30 SkRect Rect::onRevalidate(InvalidationController*, const SkMatrix&) { in onRevalidate() 36 SkPath Rect::onAsPath() const { in onAsPath() 37 return SkPath::Rect(fRect, this->getDirection(), this->getInitialPointIndex()); in onAsPath()
|
/third_party/flutter/skia/modules/sksg/src/ |
D | SkSGRect.cpp | 16 Rect::Rect(const SkRect& rect) : fRect(rect) {} in Rect() function in sksg::Rect 18 void Rect::onClip(SkCanvas* canvas, bool antiAlias) const { in onClip() 22 void Rect::onDraw(SkCanvas* canvas, const SkPaint& paint) const { in onDraw() 26 bool Rect::onContains(const SkPoint& p) const { in onContains() 30 SkRect Rect::onRevalidate(InvalidationController*, const SkMatrix&) { in onRevalidate() 36 SkPath Rect::onAsPath() const { in onAsPath()
|
/third_party/skia/modules/sksg/include/ |
D | SkSGRect.h | 25 class Rect final : public GeometryNode { 27 static sk_sp<Rect> Make() { return sk_sp<Rect>(new Rect(SkRect::MakeEmpty())); } in Make() 28 static sk_sp<Rect> Make(const SkRect& r) { return sk_sp<Rect>(new Rect(r)); } in Make() 47 explicit Rect(const SkRect&);
|