8#ifndef SkStrokeRec_DEFINED
9#define SkStrokeRec_DEFINED
39 static constexpr int kStyleCount = kStrokeAndFill_Style + 1;
41 Style getStyle()
const;
48 return kHairline_Style == this->getStyle();
52 return kFill_Style == this->getStyle();
56 void setHairlineStyle();
63 void setStrokeStyle(
SkScalar width,
bool strokeAndFill =
false);
85 Style style = this->getStyle();
86 return (kStroke_Style == style) || (kStrokeAndFill_Style == style);
111 SkScalar getInflationRadius()
const;
131 if (!this->needToApply()) {
132 return this->getStyle() == other.
getStyle();
134 return fWidth == other.fWidth &&
136 fCap == other.fCap &&
137 fJoin == other.fJoin &&
138 fStrokeAndFill == other.fStrokeAndFill;
155 uint32_t fStrokeAndFill : 1;
static const int strokeWidth
#define SK_BEGIN_REQUIRE_DENSE
#define SK_END_REQUIRE_DENSE
@ kMiter_Join
extends to miter limit
bool hasEqualEffect(const SkStrokeRec &other) const
bool isHairlineStyle() const
SkScalar getWidth() const
void setStrokeParams(SkPaint::Cap cap, SkPaint::Join join, SkScalar miterLimit)
SkPaint::Join getJoin() const
SkPaint::Cap getCap() const
SkScalar getResScale() const
void setResScale(SkScalar rs)
SkScalar getMiter() const
SINT bool isfinite(const Vec< N, T > &v)
static SkString join(const CommandLineFlags::StringArray &)