Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
skottie::internal::OpacityAdapter Class Referencefinal
Inheritance diagram for skottie::internal::OpacityAdapter:
skottie::internal::DiscardableAdapterBase< OpacityAdapter, sksg::OpacityEffect > skottie::internal::AnimatablePropertyContainer skottie::internal::Animator SkRefCnt SkRefCntBase

Public Member Functions

 OpacityAdapter (const skjson::ObjectValue &jobject, sk_sp< sksg::RenderNode > child, const AnimationBuilder &abuilder)
 
- Public Member Functions inherited from skottie::internal::DiscardableAdapterBase< OpacityAdapter, sksg::OpacityEffect >
const sk_sp< sksg::OpacityEffect > & node () const
 
- Public Member Functions inherited from skottie::internal::AnimatablePropertyContainer
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)
 
- Public Member Functions inherited from skottie::internal::Animator
StateChanged seek (float t)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Private Member Functions

void onSync () override
 

Additional Inherited Members

- Public Types inherited from skottie::internal::Animator
using StateChanged = bool
 
- Static Public Member Functions inherited from skottie::internal::DiscardableAdapterBase< OpacityAdapter, sksg::OpacityEffect >
static sk_sp< OpacityAdapterMake (Args &&... args)
 
- Protected Member Functions inherited from skottie::internal::DiscardableAdapterBase< OpacityAdapter, sksg::OpacityEffect >
 DiscardableAdapterBase ()
 
 DiscardableAdapterBase (sk_sp< sksg::OpacityEffect > node)
 
- Protected Member Functions inherited from skottie::internal::AnimatablePropertyContainer
void shrink_to_fit ()
 
void attachDiscardableAdapter (sk_sp< AnimatablePropertyContainer >)
 
- Protected Member Functions inherited from skottie::internal::Animator
 Animator ()=default
 

Detailed Description

Definition at line 98 of file Skottie.cpp.

Constructor & Destructor Documentation

◆ OpacityAdapter()

skottie::internal::OpacityAdapter::OpacityAdapter ( const skjson::ObjectValue jobject,
sk_sp< sksg::RenderNode child,
const AnimationBuilder abuilder 
)
inline

Definition at line 100 of file Skottie.cpp.

103 : INHERITED(sksg::OpacityEffect::Make(std::move(child))) {
104 this->bind(abuilder, jobject["o"], fOpacity);
105 }
bool bind(const AnimationBuilder &, const skjson::ObjectValue *, T *)
static sk_sp< OpacityEffect > Make(sk_sp< RenderNode > child, float opacity=1)

Member Function Documentation

◆ onSync()

void skottie::internal::OpacityAdapter::onSync ( )
inlineoverrideprivatevirtual

Implements skottie::internal::AnimatablePropertyContainer.

Definition at line 108 of file Skottie.cpp.

108 {
109 this->node()->setOpacity(fOpacity * 0.01f);
110 }

The documentation for this class was generated from the following file: