Flutter Engine
The Flutter Engine
SkCornerPathEffect.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 SkCornerPathEffect_DEFINED
9#define SkCornerPathEffect_DEFINED
10
14
15class SkPathEffect;
16
17/** \class SkCornerPathEffect
18
19 SkCornerPathEffect is a subclass of SkPathEffect that can turn sharp corners
20 into various treatments (e.g. rounded corners)
21*/
23public:
24 /** radius must be > 0 to have an effect. It specifies the distance from each corner
25 that should be "rounded".
26 */
27 static sk_sp<SkPathEffect> Make(SkScalar radius);
28
29 static void RegisterFlattenables();
30};
31
32#endif
#define SK_API
Definition: SkAPI.h:35
float SkScalar
Definition: extension.cpp:12
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)