| 14 | ShapeLayer::~ShapeLayer() = default; |
| 15 | |
| 16 | void ShapeLayer::onInitialize() { |
| 17 | _strokePaint.setAntiAlias(true); |
| 18 | _strokePaint.setStroke(true); |
| 19 | _fillPaint.setAntiAlias(true); |
| 20 | _fillPaint.setStroke(false); |
| 21 | |
| 22 | setStrokeCap(PaintStrokeCapButt); |
| 23 | setStrokeJoin(PaintStrokeJoinMiter); |
| 24 | setFillColor(Color::transparent()); |
| 25 | setStrokeColor(Color::transparent()); |
| 26 | setStrokeWidth(1); |
| 27 | } |
| 28 | |
| 29 | void ShapeLayer::onDraw(DrawingContext& drawingContext) { |
| 30 | const auto& path = getActivePath(); |
nothing calls this directly
no test coverage detected