• Home
  • Raw
  • Download

Lines Matching +full:cap +full:- +full:std

4  * Use of this source code is governed by a BSD-style license that can be
23 node->setOpacity(sr->readFloat("opacity")); in parse_node()
29 if (node->style() == SkPaint::kFill_Style) { in parse_fill_stroke()
34 node->setFillRule(gFillTypeMap[std::min<size_t>(sr->readUInt8("fillRule"), in parse_fill_stroke()
35 SK_ARRAY_COUNT(gFillTypeMap) - 1)]); in parse_fill_stroke()
37 node->setStrokeWidth(sr->readFloat("width")); in parse_fill_stroke()
39 static constexpr SkPaint::Cap gCapMap[] = { in parse_fill_stroke()
44 node->setStrokeCap(gCapMap[std::min<size_t>(sr->readUInt8("cap"), in parse_fill_stroke()
45 SK_ARRAY_COUNT(gCapMap) - 1)]); in parse_fill_stroke()
52 node->setStrokeJoin(gJoinMap[std::min<size_t>(sr->readUInt8("join"), in parse_fill_stroke()
53 SK_ARRAY_COUNT(gJoinMap) - 1)]); in parse_fill_stroke()
60 node->setStrokeTrim(gTrimMap[std::min<size_t>(sr->readUInt8("trim"), in parse_fill_stroke()
61 SK_ARRAY_COUNT(gTrimMap) - 1)]); in parse_fill_stroke()
63 if (node->getStrokeTrim() != Paint::StrokeTrim::kOff) { in parse_fill_stroke()
64 node->setStrokeTrimStart (sr->readFloat("start" )); in parse_fill_stroke()
65 node->setStrokeTrimEnd (sr->readFloat("end" )); in parse_fill_stroke()
66 node->setStrokeTrimOffset(sr->readFloat("offset")); in parse_fill_stroke()
74 paint->setAntiAlias(true); in onApply()
75 paint->setStyle(this->style()); in onApply()
77 paint->setStrokeWidth(fStrokeWidth); in onApply()
78 paint->setStrokeCap (fStrokeCap ); in onApply()
79 paint->setStrokeJoin (fStrokeJoin ); in onApply()