#include <ParagraphPainter.h>
Definition at line 26 of file ParagraphPainter.h.
◆ DecorationStyle() [1/2]
skia::textlayout::ParagraphPainter::DecorationStyle::DecorationStyle |
( |
| ) |
|
◆ DecorationStyle() [2/2]
skia::textlayout::ParagraphPainter::DecorationStyle::DecorationStyle |
( |
SkColor |
color, |
|
|
SkScalar |
strokeWidth, |
|
|
std::optional< DashPathEffect > |
dashPathEffect |
|
) |
| |
Definition at line 20 of file ParagraphPainterImpl.cpp.
23 : fColor(
color), fStrokeWidth(
strokeWidth), fDashPathEffect(dashPathEffect) {
28
29 if (fDashPathEffect) {
30 const std::array<SkScalar, 4> intervals =
31 {fDashPathEffect->fOnLength, fDashPathEffect->fOffLength,
32 fDashPathEffect->fOnLength, fDashPathEffect->fOffLength};
36 }
37}
static const int strokeWidth
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
static sk_sp< SkPathEffect > Make(SkScalar segLength, SkScalar dev, uint32_t seedAssist=0)
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
void setPathEffect(sk_sp< SkPathEffect > pathEffect)
void setStrokeWidth(SkScalar width)
static sk_sp< SkPathEffect > MakeCompose(sk_sp< SkPathEffect > outer, sk_sp< SkPathEffect > inner)
◆ getColor()
SkColor skia::textlayout::ParagraphPainter::DecorationStyle::getColor |
( |
| ) |
const |
|
inline |
◆ getDashPathEffect()
std::optional< DashPathEffect > skia::textlayout::ParagraphPainter::DecorationStyle::getDashPathEffect |
( |
| ) |
const |
|
inline |
◆ getStrokeWidth()
SkScalar skia::textlayout::ParagraphPainter::DecorationStyle::getStrokeWidth |
( |
| ) |
const |
|
inline |
◆ skPaint()
const SkPaint & skia::textlayout::ParagraphPainter::DecorationStyle::skPaint |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: