Skia
2D Graphics Library
Sk2DPathEffect.h
Go to the documentation of this file.
1 /*
2  * Copyright 2006 The Android Open Source Project
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 Sk2DPathEffect_DEFINED
9 #define Sk2DPathEffect_DEFINED
10 
11 #include "include/core/SkRefCnt.h"
12 #include "include/core/SkScalar.h"
13 #include "include/core/SkTypes.h"
14 
15 class SkMatrix;
16 class SkPath;
17 class SkPathEffect;
18 
19 class SK_API SkLine2DPathEffect {
20 public:
21  static sk_sp<SkPathEffect> Make(SkScalar width, const SkMatrix& matrix);
22 
23  static void RegisterFlattenables();
24 };
25 
26 class SK_API SkPath2DPathEffect {
27 public:
28  static sk_sp<SkPathEffect> Make(const SkMatrix& matrix, const SkPath& path);
29 
30  static void RegisterFlattenables();
31 };
32 
33 #endif
float SkScalar
Definition: SkScalar.h:14
Definition: Sk2DPathEffect.h:19
static void RegisterFlattenables()
static sk_sp< SkPathEffect > Make(SkScalar width, const SkMatrix &matrix)
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
Definition: Sk2DPathEffect.h:26
static sk_sp< SkPathEffect > Make(const SkMatrix &matrix, const SkPath &path)
static void RegisterFlattenables()
SkPathEffect is the base class for objects in the SkPaint that affect the geometry of a drawing primi...
Definition: SkPathEffect.h:28
SkPath contain geometry.
Definition: SkPath.h:58