#include <Animator.h>
|
template<typename T > |
bool | bind (const AnimationBuilder &, const skjson::ObjectValue *, T *) |
|
template<typename T > |
bool | bind (const AnimationBuilder &abuilder, const skjson::ObjectValue *jobject, T &v) |
|
bool | bindAutoOrientable (const AnimationBuilder &abuilder, const skjson::ObjectValue *jobject, SkV2 *v, float *orientation) |
|
bool | isStatic () const |
|
template<> |
bool | bind (const AnimationBuilder &abuilder, const skjson::ObjectValue *jprop, ScalarValue *v) |
|
template<> |
bool | bind (const AnimationBuilder &abuilder, const skjson::ObjectValue *jprop, ShapeValue *v) |
|
template<> |
bool | bind (const AnimationBuilder &abuilder, const skjson::ObjectValue *jprop, TextValue *v) |
|
template<> |
bool | bind (const AnimationBuilder &abuilder, const skjson::ObjectValue *jprop, Vec2Value *v) |
|
template<> |
bool | bind (const AnimationBuilder &abuilder, const skjson::ObjectValue *jprop, VectorValue *v) |
|
template<> |
bool | bind (const AnimationBuilder &abuilder, const skjson::ObjectValue *jprop, ColorValue *v) |
|
StateChanged | seek (float t) |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
Definition at line 47 of file Animator.h.
◆ attachDiscardableAdapter()
Definition at line 36 of file Animator.cpp.
37 {
38 if (!child) {
39 return;
40 }
41
42 if (child->isStatic()) {
43 child->seek(0);
44 return;
45 }
46
47 fAnimators.push_back(std::move(child));
48}
◆ bind() [1/8]
◆ bind() [2/8]
Definition at line 56 of file Animator.h.
56 {
57 return this->bind<T>(abuilder, jobject, &v);
58 }
◆ bind() [3/8]
Definition at line 317 of file VectorKeyframeAnimator.cpp.
319 {
321 fHasSlotID = true;
322 abuilder.fSlotManager->trackColorValue(
SkString(sid->begin()), v,
sk_ref_sp(
this));
323 }
324 return this->
bind(abuilder, jprop,
static_cast<VectorValue*
>(v));
325}
sk_sp< T > sk_ref_sp(T *obj)
bool bind(const AnimationBuilder &, const skjson::ObjectValue *, T *)
const skjson::StringValue * ParseSlotID(const skjson::ObjectValue *jobj)
◆ bind() [4/8]
◆ bind() [5/8]
Definition at line 180 of file ShapeKeyframeAnimator.cpp.
182 {
184
185 return this->bindImpl(abuilder, jprop,
builder);
186}
static bool parse_encoding_data(const skjson::Value &jv, size_t data_len, float data[])
static bool parse_encoding_len(const skjson::Value &jv, size_t *len)
◆ bind() [6/8]
◆ bind() [7/8]
Definition at line 295 of file Vec2KeyframeAnimator.cpp.
297 {
299}
bool bindAutoOrientable(const AnimationBuilder &abuilder, const skjson::ObjectValue *jobject, SkV2 *v, float *orientation)
◆ bind() [8/8]
Definition at line 281 of file VectorKeyframeAnimator.cpp.
283 {
284 if (!jprop) {
285 return false;
286 }
287
288 if (!ParseDefault<bool>((*jprop)["s"], false)) {
289
291 v,
292
296 return true;
297 }
298 return false;
299 },
300
303 });
304
305 return this->bindImpl(abuilder, jprop,
builder);
306 }
307
308
309 *v = { 0, 0, 0 };
310 bool boundX = this->
bind(abuilder, (*jprop)[
"x"], v->data() + 0);
311 bool boundY = this->
bind(abuilder, (*jprop)[
"y"], v->data() + 1);
312 bool boundZ = this->
bind(abuilder, (*jprop)[
"z"], v->data() + 2);
313 return boundX || boundY || boundZ;
314}
static bool parse_array(const skjson::ArrayValue *ja, float *a, size_t count)
std::shared_ptr< const fml::Mapping > data
◆ bindAutoOrientable()
Definition at line 270 of file Vec2KeyframeAnimator.cpp.
272 {
273 if (!jprop) {
274 return false;
275 }
276
278 fHasSlotID = true;
279 abuilder.fSlotManager->trackVec2Value(
SkString(sid->begin()), v,
sk_ref_sp(
this));
280 }
281
282 if (!ParseDefault<bool>((*jprop)["s"], false)) {
283
284 Vec2AnimatorBuilder
builder(v, orientation);
285 return this->bindImpl(abuilder, jprop,
builder);
286 }
287
288
289 bool boundX = this->
bind(abuilder, (*jprop)[
"x"], &v->
x);
290 bool boundY = this->
bind(abuilder, (*jprop)[
"y"], &v->
y);
291 return boundX || boundY;
292}
◆ isStatic()
bool skottie::internal::AnimatablePropertyContainer::isStatic |
( |
| ) |
const |
|
inline |
Definition at line 66 of file Animator.h.
66{ return fAnimators.empty() && !fHasSlotID; }
◆ onSync()
virtual void skottie::internal::AnimatablePropertyContainer::onSync |
( |
| ) |
|
|
protectedpure virtual |
◆ shrink_to_fit()
void skottie::internal::AnimatablePropertyContainer::shrink_to_fit |
( |
| ) |
|
|
protected |
Definition at line 50 of file Animator.cpp.
50 {
51 fAnimators.shrink_to_fit();
52}
◆ skottie::SlotManager
The documentation for this class was generated from the following files: