Flutter Engine
The Flutter Engine
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
14
15class SkPath;
16class SkPathEffect;
17
19public:
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
#define SK_API
Definition: SkAPI.h:35
Definition: SkPath.h:59
float SkScalar
Definition: extension.cpp:12
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57