1 | /* |
2 | * Copyright 2020 Google Inc. |
3 | * |
4 | * Use of this source code is governed by a BSD-style license that can be |
5 | * found in the LICENSE file. |
6 | */ |
7 | |
8 | #ifndef SkStrokeAndFillPathEffect_DEFINED |
9 | #define SkStrokeAndFillPathEffect_DEFINED |
10 | |
11 | #include "include/core/SkPaint.h" |
12 | #include "include/core/SkPathEffect.h" |
13 | #include "include/pathops/SkPathOps.h" |
14 | |
15 | class SK_API SkStrokeAndFillPathEffect { |
16 | public: |
17 | /* If the paint is set to stroke, this will add the stroke and fill geometries |
18 | * together (hoping that the winding-direction works out). |
19 | * |
20 | * If the paint is set to fill, this effect is ignored. |
21 | * |
22 | * Note that if the paint is set to stroke and the stroke-width is 0, then |
23 | * this will turn the geometry into just a fill. |
24 | */ |
25 | static sk_sp<SkPathEffect> Make(); |
26 | }; |
27 | |
28 | #endif |
29 | |