Definition at line 100 of file PathTextSlide.cpp.
◆ GlyphAnimator()
PathTextSlide::GlyphAnimator::GlyphAnimator |
( |
Glyph * |
glyphs | ) |
|
|
inline |
◆ ~GlyphAnimator()
virtual PathTextSlide::GlyphAnimator::~GlyphAnimator |
( |
| ) |
|
|
inlinevirtual |
◆ animate()
virtual bool PathTextSlide::GlyphAnimator::animate |
( |
double |
nanos, |
|
|
int |
screenWidth, |
|
|
int |
screenHeight |
|
) |
| |
|
inlinevirtual |
◆ draw()
virtual void PathTextSlide::GlyphAnimator::draw |
( |
SkCanvas * |
canvas | ) |
|
|
inlinevirtual |
Reimplemented in PathTextSlide::MovingGlyphAnimator, and PathTextSlide::WavyGlyphAnimator.
Definition at line 105 of file PathTextSlide.cpp.
105 {
106 for (int i = 0; i < kNumPaths; ++i) {
109 canvas->
translate(glyph.fPosition.x(), glyph.fPosition.y());
110 canvas->
scale(glyph.fZoom, glyph.fZoom);
111 canvas->
rotate(glyph.fSpin);
112 canvas->
translate(-glyph.fMidpt.x(), -glyph.fMidpt.y());
113 canvas->
drawPath(glyph.fPath, glyph.fPaint);
114 }
115 }
void translate(SkScalar dx, SkScalar dy)
void rotate(SkScalar degrees)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
◆ reset()
virtual void PathTextSlide::GlyphAnimator::reset |
( |
SkRandom * |
, |
|
|
int |
screenWidth, |
|
|
int |
screenHeight |
|
) |
| |
|
inlinevirtual |
◆ fGlyphs
Glyph* const PathTextSlide::GlyphAnimator::fGlyphs |
|
protected |
The documentation for this class was generated from the following file: