Definition at line 25 of file PathTextSlide.cpp.
◆ PathTextSlide()
PathTextSlide::PathTextSlide |
( |
| ) |
|
|
inline |
◆ animate()
bool PathTextSlide::animate |
( |
double |
nanos | ) |
|
|
inlinefinalvirtual |
Reimplemented from Slide.
Definition at line 70 of file PathTextSlide.cpp.
70 {
72 }
std::unique_ptr< GlyphAnimator > fGlyphAnimator
◆ draw()
void PathTextSlide::draw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverridevirtual |
Implements Slide.
Definition at line 74 of file PathTextSlide.cpp.
74 {
83 }
85 }
constexpr SkColor SK_ColorBLACK
void clear(SkColor color)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
static SkMatrix Scale(SkScalar sx, SkScalar sy)
void transform(const SkMatrix &matrix, SkPath *dst, SkApplyPerspectiveClip pc=SkApplyPerspectiveClip::kYes) const
◆ load()
Reimplemented from Slide.
Definition at line 39 of file PathTextSlide.cpp.
39 {
41
46 for (
int i = 0;
i < 52; ++
i) {
47
48 char c =
"aQCDEFGH7JKLMNOPBRZTUVWXYSAbcdefghijk1mnopqrstuvwxyz"[
i];
50 const SkGlyph* glyph = pathMaker.glyph(
id);
52 glyphPaths[
i] = *glyph->
path();
53 }
54 }
55
56 for (
int i = 0;
i < kNumPaths; ++
i) {
57 const SkPath&
p = glyphPaths[
i % 52];
59 }
61 }
SkGlyphID unicharToGlyph(SkUnichar uni) const
const SkPath * path() const
static SkStrikeSpec MakeWithNoDevice(const SkFont &font, const SkPaint *paint=nullptr)
void init(SkRandom &rand, const SkPath &path)
◆ onChar()
bool PathTextSlide::onChar |
( |
SkUnichar |
unichar | ) |
|
|
overridevirtual |
Reimplemented from Slide.
Definition at line 435 of file PathTextSlide.cpp.
435 {
436 switch (unichar) {
437 case 'X':
439 return true;
440 case 'S':
443 return true;
444 case 'M':
447 return true;
448 case 'W':
451 return true;
452 }
453 return false;
454}
◆ reset()
virtual void PathTextSlide::reset |
( |
| ) |
|
|
inlinevirtual |
◆ resize()
◆ fClipPath
◆ fDoClip
bool PathTextSlide::fDoClip = false |
|
protected |
◆ fGlyphAnimator
◆ fGlyphs
Glyph PathTextSlide::fGlyphs[kNumPaths] |
|
protected |
◆ fRand
The documentation for this class was generated from the following file: