#include <Skottie.h>
|
| ~Animation () |
|
void | render (SkCanvas *canvas, const SkRect *dst=nullptr) const |
| Draws the current animation frame. More...
|
|
void | render (SkCanvas *canvas, const SkRect *dst, RenderFlags) const |
|
void | seek (SkScalar t, sksg::InvalidationController *ic=nullptr) |
| [Deprecated: use one of the other versions. More...
|
|
void | seekFrame (double t, sksg::InvalidationController *ic=nullptr) |
| Update the animation state to match |t|, specified as a frame index i.e. More...
|
|
void | seekFrameTime (double t, sksg::InvalidationController *=nullptr) |
| Update the animation state to match t, specifed in frame time i.e. More...
|
|
double | duration () const |
| Returns the animation duration in seconds. More...
|
|
double | fps () const |
| Returns the animation frame rate (frames / second). More...
|
|
double | inPoint () const |
| Animation in point, in frame index units. More...
|
|
double | outPoint () const |
| Animation out point, in frame index units. More...
|
|
const SkString & | version () const |
|
const SkSize & | size () const |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
void | deref () const |
|
bool | refCntGreaterThan (int32_t threadIsolatedTestCnt) const |
|
◆ RenderFlags
◆ RenderFlag
Enumerator |
---|
kSkipTopLevelIsolation | |
kDisableTopLevelClipping | |
◆ ~Animation()
skottie::Animation::~Animation |
( |
| ) |
|
◆ deref()
◆ duration()
double skottie::Animation::duration |
( |
| ) |
const |
|
inline |
Returns the animation duration in seconds.
◆ fps()
double skottie::Animation::fps |
( |
| ) |
const |
|
inline |
Returns the animation frame rate (frames / second).
◆ inPoint()
double skottie::Animation::inPoint |
( |
| ) |
const |
|
inline |
◆ Make() [1/2]
static sk_sp<Animation> skottie::Animation::Make |
( |
const char * |
data, |
|
|
size_t |
length |
|
) |
| |
|
static |
◆ Make() [2/2]
◆ MakeFromFile()
static sk_sp<Animation> skottie::Animation::MakeFromFile |
( |
const char |
path[] | ) |
|
|
static |
◆ outPoint()
double skottie::Animation::outPoint |
( |
| ) |
const |
|
inline |
◆ ref()
◆ refCntGreaterThan()
◆ render() [1/2]
◆ render() [2/2]
void skottie::Animation::render |
( |
SkCanvas * |
canvas, |
|
|
const SkRect * |
dst = nullptr |
|
) |
| const |
Draws the current animation frame.
It is undefined behavior to call render() on a newly created Animation before specifying an initial frame via one of the seek() variants.
- Parameters
-
canvas | destination canvas |
dst | optional destination rect |
flags | optional RenderFlags |
◆ seek()
[Deprecated: use one of the other versions.
]
Updates the animation state for |t|.
- Parameters
-
t | normalized [0..1] frame selector (0 -> first frame, 1 -> final frame) |
ic | optional invalidation controller (dirty region tracking) |
◆ seekFrame()
Update the animation state to match |t|, specified as a frame index i.e.
relative to duration() * fps().
Fractional values are allowed and meaningful - e.g.
0.0 -> first frame 1.0 -> second frame 0.5 -> halfway between first and second frame
◆ seekFrameTime()
Update the animation state to match t, specifed in frame time i.e.
relative to duration().
◆ size()
const SkSize& skottie::Animation::size |
( |
| ) |
const |
|
inline |
◆ unique()
◆ unref()
◆ version()
const SkString& skottie::Animation::version |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: