Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
skottie::internal::DiscardableAdapterBase< AdapterT, T > Class Template Reference

#include <Adapter.h>

Inheritance diagram for skottie::internal::DiscardableAdapterBase< AdapterT, T >:
skottie::internal::AnimatablePropertyContainer skottie::internal::Animator SkRefCnt SkRefCntBase

Public Member Functions

const sk_sp< T > & 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
 

Static Public Member Functions

template<typename... Args>
static sk_sp< AdapterT > Make (Args &&... args)
 

Protected Member Functions

 DiscardableAdapterBase ()
 
 DiscardableAdapterBase (sk_sp< T > 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
 

Additional Inherited Members

- Public Types inherited from skottie::internal::Animator
using StateChanged = bool
 

Detailed Description

template<typename AdapterT, typename T>
class skottie::internal::DiscardableAdapterBase< AdapterT, T >

Definition at line 17 of file Adapter.h.

Constructor & Destructor Documentation

◆ DiscardableAdapterBase() [1/2]

template<typename AdapterT , typename T >
skottie::internal::DiscardableAdapterBase< AdapterT, T >::DiscardableAdapterBase ( )
inlineprotected

Definition at line 29 of file Adapter.h.

30 : fNode(T::Make()) {}

◆ DiscardableAdapterBase() [2/2]

template<typename AdapterT , typename T >
skottie::internal::DiscardableAdapterBase< AdapterT, T >::DiscardableAdapterBase ( sk_sp< T node)
inlineexplicitprotected

Definition at line 32 of file Adapter.h.

33 : fNode(std::move(node)) {}
const sk_sp< T > & node() const
Definition Adapter.h:26

Member Function Documentation

◆ Make()

template<typename AdapterT , typename T >
template<typename... Args>
static sk_sp< AdapterT > skottie::internal::DiscardableAdapterBase< AdapterT, T >::Make ( Args &&...  args)
inlinestatic

Definition at line 20 of file Adapter.h.

20 {
21 sk_sp<AdapterT> adapter(new AdapterT(std::forward<Args>(args)...));
22 adapter->shrink_to_fit();
23 return adapter;
24 }
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

◆ node()

template<typename AdapterT , typename T >
const sk_sp< T > & skottie::internal::DiscardableAdapterBase< AdapterT, T >::node ( ) const
inline

Definition at line 26 of file Adapter.h.

26{ return fNode; }

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