/third_party/flutter/flutter/packages/flutter/test/painting/ |
D | text_painter_test.dart | 13 final TextPainter painter = TextPainter() 17 painter.text = TextSpan(text: text); 18 painter.layout(); 20 Offset caretOffset = painter.getOffsetForCaret( 25 caretOffset = painter.getOffsetForCaret(ui.TextPosition(offset: text.length), ui.Rect.zero); 26 expect(caretOffset.dx, painter.width); 30 painter.text = TextSpan(text: text); 31 painter.layout(); 32 caretOffset = painter.getOffsetForCaret(ui.TextPosition(offset: text.length), ui.Rect.zero); 33 expect(caretOffset.dx, painter.width); [all …]
|
D | text_painter_rtl_test.dart | 14 final TextPainter painter = TextPainter() 17 painter.text = const TextSpan( 21 painter.layout(); 24 painter.getWordBoundary(const TextPosition(offset: 1, affinity: TextAffinity.downstream)), 28 painter.getWordBoundary(const TextPosition(offset: 5, affinity: TextAffinity.downstream)), 32 painter.getWordBoundary(const TextPosition(offset: 9, affinity: TextAffinity.downstream)), 38 final TextPainter painter = TextPainter() 41 painter.text = const TextSpan( 46 TextSpan textSpan = painter.text; 48 painter.layout(); [all …]
|
D | box_decoration_test.dart | 16 final BoxPainter painter = decoration.createBoxPainter(); 20 painter.paint( 33 painter.paint( 58 final BoxPainter painter = decoration.createBoxPainter(); 62 painter.paint(
|
D | shape_decoration_test.dart | 70 final BoxPainter painter = decoration.createBoxPainter(() { log.add(0); }); 71 …expect((Canvas canvas) => painter.paint(canvas, Offset.zero, const ImageConfiguration(size: Size(1… 74 return painter.paint( 88 return painter.paint(
|
/third_party/flutter/flutter/packages/flutter/test/widgets/ |
D | overscroll_indicator_test.dart | 36 final RenderObject painter = tester.renderObject(find.byType(CustomPaint)); 38 expect(painter, doesNotOverscroll); 42 expect(painter, doesNotOverscroll); 44 expect(painter, doesNotOverscroll); 46 expect(painter, doesNotOverscroll); 50 expect(painter, doesNotOverscroll); 52 expect(painter, doesNotOverscroll); 55 expect(painter, paints..circle(color: const Color(0x0DFFFFFF))); 58 expect(painter, doesNotOverscroll); 103 final RenderObject painter = tester.renderObject(find.byType(CustomPaint)); [all …]
|
D | scrollbar_test.dart | 44 ScrollbarPainter painter; 47 tearDown(() => painter = null); 69 painter = _buildPainter( 75 painter.paint(testCanvas, size); 86 painter.update(metrics.copyWith(pixels: newPixels), metrics.axisDirection); 88 painter.paint(testCanvas, size); 110 painter = _buildPainter( 127 painter.update(metrics, metrics.axisDirection); 128 painter.paint(testCanvas, size); 158 painter = _buildPainter( [all …]
|
D | custom_painter_test.dart | 32 painter: _PainterWithoutSemantics(), 84 painter: _PainterWithSemantics( 120 painter: _PainterWithSemantics( 179 painter: _PainterWithSemantics( 223 painter: _PainterWithSemantics( 280 painter: _PainterWithSemantics( 325 painter: _PainterWithSemantics( 406 painter: _PainterWithSemantics( 453 painter: _PainterWithSemantics( 506 painter: _SemanticsDiffTest(<String>[ [all …]
|
D | custom_paint_test.dart | 28 painter: TestCustomPainter( 37 painter: TestCustomPainter( 89 painter: TestCustomPainter(log: log),
|
D | navigator_and_layers_test.dart | 40 painter: TestCustomPainter( 46 painter: TestCustomPainter(
|
/third_party/boost/tools/build/example/qt/qt4/hello/ |
D | arrow.cpp | 31 Arrow_widget::draw_arrow(int x1, int y1, int x2, int y2, QPainter& painter) in draw_arrow() argument 93 painter.save(); in draw_arrow() 94 painter.setBrush(Qt::NoBrush); in draw_arrow() 95 painter.drawPath(arrow); in draw_arrow() 96 painter.restore(); in draw_arrow() 98 painter.save(); in draw_arrow() 99 painter.translate(x2, y2); in draw_arrow() 101 painter.rotate(-90); in draw_arrow() 102 painter.rotate(-end_angle); in draw_arrow() 103 painter.rotate(180); in draw_arrow() [all …]
|
/third_party/flutter/flutter/packages/flutter/test/rendering/ |
D | object_test.dart | 104 …_testPaintingContextLayerReuse<ClipRectLayer>((PaintingContextCallback painter, PaintingContext co… 105 return context.pushClipRect(true, offset, Rect.zero, painter, oldLayer: oldLayer); 110 …_testPaintingContextLayerReuse<ClipRRectLayer>((PaintingContextCallback painter, PaintingContext c… 111 …ct.zero, RRect.fromRectAndRadius(Rect.zero, const Radius.circular(1.0)), painter, oldLayer: oldLay… 116 …_testPaintingContextLayerReuse<ClipPathLayer>((PaintingContextCallback painter, PaintingContext co… 117 return context.pushClipPath(true, offset, Rect.zero, Path(), painter, oldLayer: oldLayer); 122 …_testPaintingContextLayerReuse<ColorFilterLayer>((PaintingContextCallback painter, PaintingContext… 123 …, const ColorFilter.mode(Color.fromRGBO(0, 0, 0, 1.0), BlendMode.clear), painter, oldLayer: oldLay… 128 …_testPaintingContextLayerReuse<TransformLayer>((PaintingContextCallback painter, PaintingContext c… 129 return context.pushTransform(true, offset, Matrix4.identity(), painter, oldLayer: oldLayer); [all …]
|
D | recording_canvas.dart | 108 … PaintingContextCallback painter, { Clip clipBehavior = Clip.hardEdge, ClipRectLayer oldLayer }) { 109 …clipRectAndPaint(clipRect.shift(offset), clipBehavior, clipRect.shift(offset), () => painter(this,… 115 …PaintingContextCallback painter, { Clip clipBehavior = Clip.antiAlias, ClipRRectLayer oldLayer }) { 117 …clipRRectAndPaint(clipRRect.shift(offset), clipBehavior, bounds.shift(offset), () => painter(this,… 123 … PaintingContextCallback painter, { Clip clipBehavior = Clip.antiAlias, ClipPathLayer oldLayer }) { 124 …clipPathAndPaint(clipPath.shift(offset), clipBehavior, bounds.shift(offset), () => painter(this, o… 130 PaintingContextCallback painter, { TransformLayer oldLayer }) { 133 painter(this, offset); 139 OpacityLayer pushOpacity(Offset offset, int alpha, PaintingContextCallback painter, 142 painter(this, offset); [all …]
|
D | overflow_test.dart | 22 painter: TestCallbackPainter( 42 painter: TestCallbackPainter(
|
/third_party/flutter/flutter/packages/flutter/lib/src/painting/ |
D | clip.dart | 12 …ipAndPaint(void canvasClipCall(bool doAntiAlias), Clip clipBehavior, Rect bounds, void painter()) { 29 painter(); 40 void clipPathAndPaint(Path path, Clip clipBehavior, Rect bounds, void painter()) { 41 …bool doAntiAias) => canvas.clipPath(path, doAntiAlias: doAntiAias), clipBehavior, bounds, painter); 48 void clipRRectAndPaint(RRect rrect, Clip clipBehavior, Rect bounds, void painter()) { 49 …ol doAntiAias) => canvas.clipRRect(rrect, doAntiAlias: doAntiAias), clipBehavior, bounds, painter); 56 void clipRectAndPaint(Rect rect, Clip clipBehavior, Rect bounds, void painter()) { 57 …bool doAntiAias) => canvas.clipRect(rect, doAntiAlias: doAntiAias), clipBehavior, bounds, painter);
|
/third_party/flutter/flutter/packages/flutter/test/material/ |
D | animated_icons_private_test.dart | 97 final _AnimatedIconPainter painter = _AnimatedIconPainter( 105 painter.paint(mockCanvas, size); 119 final _AnimatedIconPainter painter = _AnimatedIconPainter( 127 painter.paint(mockCanvas, size); 141 final _AnimatedIconPainter painter = _AnimatedIconPainter( 149 painter.paint(mockCanvas, size); 163 final _AnimatedIconPainter painter = _AnimatedIconPainter( 171 painter.paint(mockCanvas, size); 176 final _AnimatedIconPainter painter = _AnimatedIconPainter( 184 painter.paint(mockCanvas, size); [all …]
|
D | animated_icons_test.dart | 33 customPaint.painter.paint(canvas, const Size(48.0, 48.0)); 55 customPaint.painter.paint(canvas, const Size(48.0, 48.0)); 77 customPaint.painter.paint(canvas, const Size(48.0, 48.0)); 99 customPaint.painter.paint(canvas, const Size(12.0, 12.0)); 123 customPaint.painter.paint(canvas, const Size(12.0, 12.0)); 165 customPaint.painter.paint(canvas, const Size(48.0, 48.0)); 189 customPaint.painter.paint(canvas, const Size(48.0, 48.0)); 212 customPaint.painter.paint(canvas, const Size(48.0, 48.0));
|
D | time_picker_test.dart | 303 final dynamic dialPainter = dialPaint.painter; 305 expect(primaryOuterLabels.map<String>((dynamic tp) => tp.painter.text.text), labels12To11); 309 expect(secondaryOuterLabels.map<String>((dynamic tp) => tp.painter.text.text), labels12To11); 317 final dynamic dialPainter = dialPaint.painter; 319 expect(primaryOuterLabels.map<String>((dynamic tp) => tp.painter.text.text), labels00To23); 321 …expect(primaryInnerLabels.map<String>((dynamic tp) => tp.painter.text.text), labels12To11TwoDigit); 324 expect(secondaryOuterLabels.map<String>((dynamic tp) => tp.painter.text.text), labels00To23); 326 …expect(secondaryInnerLabels.map<String>((dynamic tp) => tp.painter.text.text), labels12To11TwoDigi… 363 final CustomPainter dialPainter = dialPaint.painter; 402 final CustomPainter dialPainter = dialPaint.painter; [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/wpa_gui-qt4/ |
D | signalbar.cpp | 26 void SignalBar::paint(QPainter *painter, in paint() argument 34 QStyledItemDelegate::paint(painter, option, index); in paint() 57 &opts, painter); in paint()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/wpa_gui-qt4/ |
D | signalbar.cpp | 26 void SignalBar::paint(QPainter *painter, in paint() argument 34 QStyledItemDelegate::paint(painter, option, index); in paint() 57 &opts, painter); in paint()
|
/third_party/boost/libs/geometry/example/with_external_libs/ |
D | x06_qt_world_mapper.cpp | 69 QPainter painter(this); in paintEvent() local 70 painter.setBrush(Qt::green); in paintEvent() 71 painter.setRenderHint(QPainter::Antialiasing); in paintEvent() 86 painter.drawPolygon(qring); in paintEvent()
|
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/ |
D | custom_paint.dart | 30 /// To implement a custom painter, either subclass or implement this interface 70 /// custom painter that paints a sky. 111 /// // Since this Sky painter has no fields, it always paints 126 /// * [Canvas], the class that a custom painter uses to paint. 132 /// Creates a custom painter. 134 /// The painter will repaint whenever `repaint` notifies its listeners. 191 /// by this painter. 193 /// If the returned function is null, this painter will not contribute new 195 /// to this painter will not create a semantics boundary. However, if 206 /// Called whenever a new instance of the custom painter delegate class is [all …]
|
/third_party/flutter/flutter/packages/flutter_localizations/test/material/ |
D | time_picker_test.dart | 176 final dynamic dialPainter = dialPaint.painter; 178 expect(primaryOuterLabels.map<String>((dynamic tp) => tp.painter.text.text), labels12To11); 182 expect(secondaryOuterLabels.map<String>((dynamic tp) => tp.painter.text.text), labels12To11); 190 final dynamic dialPainter = dialPaint.painter; 192 expect(primaryOuterLabels.map<String>((dynamic tp) => tp.painter.text.text), labels00To23); 194 …expect(primaryInnerLabels.map<String>((dynamic tp) => tp.painter.text.text), labels12To11TwoDigit); 197 expect(secondaryOuterLabels.map<String>((dynamic tp) => tp.painter.text.text), labels00To23); 199 …expect(secondaryInnerLabels.map<String>((dynamic tp) => tp.painter.text.text), labels12To11TwoDigi…
|
/third_party/skia/bench/ |
D | GlyphQuadFillBench.cpp | 48 SkGlyphRunListPainter painter{props, kUnknown_SkColorType, in onPerCanvasPreDraw() local 54 fBlob = GrTextBlob::Make(glyphRunList, paint, drawMatrix, control, &painter); in onPerCanvasPreDraw()
|
/third_party/flutter/flutter/packages/flutter/test/cupertino/ |
D | tab_scaffold_test.dart | 60 painter: TestCallbackPainter( 250 painter: TestCallbackPainter( 286 painter: TestCallbackPainter( 305 painter: TestCallbackPainter( 593 painter: TestCallbackPainter( 615 painter: TestCallbackPainter( 650 painter: TestCallbackPainter( 672 painter: TestCallbackPainter( 789 painter: TestCallbackPainter( 802 painter: TestCallbackPainter( [all …]
|
/third_party/flutter/flutter/examples/flutter_gallery/lib/demo/transformations/ |
D | transformations_demo.dart | 31 final BoardPainter painter = BoardPainter( 67 painter: painter,
|