Skia
2D Graphics Library
|
#include <Skottie.h>
Classes | |
struct | Stats |
Public Types | |
enum | Flags : uint32_t { kDeferImageLoading = 0x01 , kPreferEmbeddedFonts = 0x02 } |
Public Member Functions | |
Builder (uint32_t flags=0) | |
~Builder () | |
const Stats & | getStats () const |
Returns various animation build stats. More... | |
Builder & | setResourceProvider (sk_sp< ResourceProvider >) |
Specify a loader for external resources (images, etc.). More... | |
Builder & | setFontManager (sk_sp< SkFontMgr >) |
Specify a font manager for loading animation fonts. More... | |
Builder & | setPropertyObserver (sk_sp< PropertyObserver >) |
Specify a PropertyObserver to receive callbacks during parsing. More... | |
Builder & | setLogger (sk_sp< Logger >) |
Register a Logger with this builder. More... | |
Builder & | setMarkerObserver (sk_sp< MarkerObserver >) |
Register a MarkerObserver with this builder. More... | |
Builder & | setPrecompInterceptor (sk_sp< PrecompInterceptor >) |
Register a precomp layer interceptor. More... | |
Builder & | setExpressionManager (sk_sp< ExpressionManager >) |
Registers an ExpressionManager to evaluate AE expressions. More... | |
sk_sp< Animation > | make (SkStream *) |
Animation factories. More... | |
sk_sp< Animation > | make (const char *data, size_t length) |
sk_sp< Animation > | makeFromFile (const char path[]) |
const sk_sp< SlotManager > & | getSlotManager () const |
Get handle for SlotManager after animation is built. More... | |
enum skottie::Animation::Builder::Flags : uint32_t |
|
explicit |
skottie::Animation::Builder::~Builder | ( | ) |
|
inline |
Get handle for SlotManager after animation is built.
|
inline |
Returns various animation build stats.
Builder& skottie::Animation::Builder::setExpressionManager | ( | sk_sp< ExpressionManager > | ) |
Registers an ExpressionManager to evaluate AE expressions.
If unspecified, expressions in the animation JSON will be ignored.
Specify a font manager for loading animation fonts.
Register a Logger with this builder.
Builder& skottie::Animation::Builder::setMarkerObserver | ( | sk_sp< MarkerObserver > | ) |
Register a MarkerObserver with this builder.
Builder& skottie::Animation::Builder::setPrecompInterceptor | ( | sk_sp< PrecompInterceptor > | ) |
Register a precomp layer interceptor.
This allows substituting precomp layers with custom/externally managed content.
Builder& skottie::Animation::Builder::setPropertyObserver | ( | sk_sp< PropertyObserver > | ) |
Specify a PropertyObserver to receive callbacks during parsing.
See SkottieProperty.h for more details.
Builder& skottie::Animation::Builder::setResourceProvider | ( | sk_sp< ResourceProvider > | ) |
Specify a loader for external resources (images, etc.).