Skia
2D Graphics Library
SkPathUtils.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 Google LLC
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 #ifndef SkPathUtils_DEFINED
8 #define SkPathUtils_DEFINED
9 
10 #include "include/core/SkScalar.h"
11 #include "include/core/SkTypes.h"
12 
13 class SkMatrix;
14 class SkPaint;
15 class SkPath;
16 struct SkRect;
17 
18 namespace skpathutils {
19 
32 SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst,
33  const SkRect *cullRect, SkScalar resScale = 1);
34 
35 SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst,
36  const SkRect *cullRect, const SkMatrix &ctm);
37 
38 SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst);
39 
40 }
41 
42 #endif
float SkScalar
Definition: SkScalar.h:14
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
SkPaint controls options applied when drawing.
Definition: SkPaint.h:44
SkPath contain geometry.
Definition: SkPath.h:58
Definition: SkPathUtils.h:18
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
Returns the filled equivalent of the stroked path.
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582