Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
include
effects
Sk1DPathEffect.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 Sk1DPathEffect_DEFINED
9
#define Sk1DPathEffect_DEFINED
10
11
#include "
include/core/SkRefCnt.h
"
12
#include "
include/core/SkScalar.h
"
13
#include "
include/core/SkTypes.h
"
14
15
class
SkPath
;
16
class
SkPathEffect
;
17
18
class
SK_API
SkPath1DPathEffect
{
19
public
:
20
enum
Style
{
21
kTranslate_Style
,
// translate the shape to each position
22
kRotate_Style
,
// rotate the shape about its center
23
kMorph_Style
,
// transform each point, and turn lines into curves
24
25
kLastEnum_Style = kMorph_Style,
26
};
27
28
/** Dash by replicating the specified path.
29
@param path The path to replicate (dash)
30
@param advance The space between instances of path
31
@param phase distance (mod advance) along path for its initial position
32
@param style how to transform path at each point (based on the current
33
position and tangent)
34
*/
35
static
sk_sp<SkPathEffect>
Make
(
const
SkPath
& path,
SkScalar
advance,
SkScalar
phase, Style);
36
37
static
void
RegisterFlattenables();
38
};
39
40
#endif
SK_API
#define SK_API
Definition
SkAPI.h:35
Make
static std::unique_ptr< SkEncoder > Make(SkWStream *dst, const SkPixmap *src, const SkYUVAPixmaps *srcYUVA, const SkColorSpace *srcYUVAColorSpace, const SkJpegEncoder::Options &options)
Definition
SkJpegEncoderImpl.cpp:259
SkRefCnt.h
SkScalar.h
SkTypes.h
SkPath1DPathEffect
Definition
Sk1DPathEffect.h:18
SkPath1DPathEffect::Style
Style
Definition
Sk1DPathEffect.h:20
SkPath1DPathEffect::kTranslate_Style
@ kTranslate_Style
Definition
Sk1DPathEffect.h:21
SkPath1DPathEffect::kMorph_Style
@ kMorph_Style
Definition
Sk1DPathEffect.h:23
SkPath1DPathEffect::kRotate_Style
@ kRotate_Style
Definition
Sk1DPathEffect.h:22
SkPathEffect
Definition
SkPathEffect.h:35
SkPath
Definition
SkPath.h:59
sk_sp
Definition
SkRefCnt.h:220
SkScalar
float SkScalar
Definition
extension.cpp:12
Generated on Fri Apr 26 2024 06:16:11 for Flutter Engine by
1.9.8