Flutter Engine
The Flutter Engine
Public 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
 

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
virtual void onSync ()=0
 
void shrink_to_fit ()
 
void attachDiscardableAdapter (sk_sp< AnimatablePropertyContainer >)
 
- Protected Member Functions inherited from skottie::internal::Animator
 Animator ()=default
 
virtual StateChanged onSeek (float t)=0
 

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)

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