8#ifndef SkPathBuilder_DEFINED
9#define SkPathBuilder_DEFINED
21#include <initializer_list>
37 SkRect computeBounds()
const;
64 return this->conicTo(pts[0], pts[1],
w);
72 return this->cubicTo(pts[0], pts[1], pts[2]);
80 return this->polylineTo(list.begin(),
SkToInt(list.size()));
89 return this->rQuadTo({x1, y1}, {x2, y2});
93 return this->rConicTo({x1, y1}, {x2, y2},
w);
97 return this->rCubicTo({x1, y1}, {x2, y2}, {x3, y3});
195 return this->addRect(
rect,
dir, 0);
199 return this->addOval(
rect,
dir, 1);
211 return this->addPolygon(list.begin(),
SkToInt(list.size()), isClosed);
218 void incReserve(
int extraPtCount,
int extraVerbCount);
220 this->incReserve(extraPtCount, extraPtCount);
238 unsigned fSegmentMask;
249 IsA fIsA = kIsA_JustMoves;
251 bool fIsACCW =
false;
253 int countVerbs()
const {
return fVerbs.
size(); }
257 fIsA = kIsA_MoreThanMoves;
258 if (fNeedsMoveVerb) {
259 this->moveTo(fLastMovePoint);
constexpr int SkToInt(S x)
SkPathBuilder & lineTo(SkScalar x, SkScalar y)
SkPathBuilder & polylineTo(const std::initializer_list< SkPoint > &list)
SkPathBuilder & toggleInverseFillType()
SkPathBuilder & operator=(const SkPathBuilder &)=default
SkPathBuilder(const SkPathBuilder &)=default
void incReserve(int extraPtCount)
SkPathBuilder & setFillType(SkPathFillType ft)
SkPathFillType fillType() const
SkPathBuilder & quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2)
SkPathBuilder & cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
SkPathBuilder & quadTo(const SkPoint pts[2])
SkPathBuilder & rQuadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2)
SkPathBuilder & rLineTo(SkScalar x, SkScalar y)
SkPathBuilder & addPolygon(const std::initializer_list< SkPoint > &list, bool isClosed)
SkPathBuilder & conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar w)
SkPathBuilder & addRRect(const SkRRect &rrect, SkPathDirection dir=SkPathDirection::kCW)
SkPathBuilder & moveTo(SkScalar x, SkScalar y)
SkPathBuilder & cubicTo(const SkPoint pts[3])
SkPathBuilder & addRect(const SkRect &rect, SkPathDirection dir=SkPathDirection::kCW)
SkPathBuilder & rConicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar w)
SkPathBuilder & setIsVolatile(bool isVolatile)
SkPathBuilder & conicTo(const SkPoint pts[2], SkScalar w)
@ kSmall_ArcSize
smaller of arc pair
@ kLarge_ArcSize
larger of arc pair
SkPathBuilder & rCubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar x3, SkScalar y3)
SkPathBuilder & addOval(const SkRect &rect, SkPathDirection dir=SkPathDirection::kCW)
sk_sp< SkBlender > blender SkRect rect
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
static void make(SkBitmap *bitmap, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace)
static constexpr SkPoint Make(float x, float y)