Definition at line 16 of file SkottieViewController.mm.
◆ SkAnimationDraw()
SkAnimationDraw::SkAnimationDraw |
( |
| ) |
|
|
default |
◆ ~SkAnimationDraw()
SkAnimationDraw::~SkAnimationDraw |
( |
| ) |
|
|
default |
◆ draw()
Definition at line 23 of file SkottieViewController.mm.
23 {
25
26 if (fAnimationSize.
width() > 0 && fAnimationSize.
height() > 0) {
33 } else {
35 }
37 }
41 fAnimation->
render(canvas);
42 }
void drawRect(const SkRect &rect, const SkPaint &paint)
void concat(const SkMatrix &matrix)
void setScaleTranslate(SkScalar sx, SkScalar sy, SkScalar tx, SkScalar ty)
void render(SkCanvas *canvas, const SkRect *dst=nullptr) const
constexpr SkColor4f kWhite
sk_sp< SkBlender > blender SkRect rect
◆ duration()
float SkAnimationDraw::duration |
( |
| ) |
|
|
inline |
◆ load()
void SkAnimationDraw::load |
( |
const void * |
data, |
|
|
size_t |
length |
|
) |
| |
|
inline |
Definition at line 44 of file SkottieViewController.mm.
44 {
47 fSize = {0, 0};
48 fAnimationSize = fAnimation ? fAnimation->
size() :
SkSize{0, 0};
49 }
const SkSize & size() const
◆ operator bool()
SkAnimationDraw::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ seek()
void SkAnimationDraw::seek |
( |
double |
time | ) |
|
|
inline |
◆ size()
SkSize SkAnimationDraw::size |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: