Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
skottie::PropertyObserver Class Reference

#include <SkottieProperty.h>

Inheritance diagram for skottie::PropertyObserver:
SkRefCnt SkRefCntBase skottie_utils::CustomPropertyManager::PropertyInterceptor

Public Types

enum class  NodeType { COMPOSITION , LAYER , EFFECT , OTHER }
 
template<typename T >
using LazyHandle = std::function< std::unique_ptr< T >()>
 

Public Member Functions

virtual void onColorProperty (const char node_name[], const LazyHandle< ColorPropertyHandle > &)
 
virtual void onOpacityProperty (const char node_name[], const LazyHandle< OpacityPropertyHandle > &)
 
virtual void onTextProperty (const char node_name[], const LazyHandle< TextPropertyHandle > &)
 
virtual void onTransformProperty (const char node_name[], const LazyHandle< TransformPropertyHandle > &)
 
virtual void onEnterNode (const char node_name[], NodeType node_type)
 
virtual void onLeavingNode (const char node_name[], NodeType node_type)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Detailed Description

A PropertyObserver can be used to track and manipulate certain properties of "interesting" Lottie nodes.

When registered with an animation builder, PropertyObserver receives notifications for various properties of layer and shape nodes. The |node_name| argument corresponds to the name ("nm") node property.

Definition at line 169 of file SkottieProperty.h.

Member Typedef Documentation

◆ LazyHandle

template<typename T >
using skottie::PropertyObserver::LazyHandle = std::function<std::unique_ptr<T>()>

Definition at line 174 of file SkottieProperty.h.

Member Enumeration Documentation

◆ NodeType

Member Function Documentation

◆ onColorProperty()

void skottie::PropertyObserver::onColorProperty ( const char  node_name[],
const LazyHandle< ColorPropertyHandle > &   
)
virtual

Definition at line 175 of file SkottieProperty.cpp.

176 {}

◆ onEnterNode()

void skottie::PropertyObserver::onEnterNode ( const char  node_name[],
NodeType  node_type 
)
virtual

Definition at line 187 of file SkottieProperty.cpp.

187{}

◆ onLeavingNode()

void skottie::PropertyObserver::onLeavingNode ( const char  node_name[],
NodeType  node_type 
)
virtual

Definition at line 189 of file SkottieProperty.cpp.

189{}

◆ onOpacityProperty()

void skottie::PropertyObserver::onOpacityProperty ( const char  node_name[],
const LazyHandle< OpacityPropertyHandle > &   
)
virtual

Definition at line 178 of file SkottieProperty.cpp.

179 {}

◆ onTextProperty()

void skottie::PropertyObserver::onTextProperty ( const char  node_name[],
const LazyHandle< TextPropertyHandle > &   
)
virtual

Definition at line 181 of file SkottieProperty.cpp.

182 {}

◆ onTransformProperty()

void skottie::PropertyObserver::onTransformProperty ( const char  node_name[],
const LazyHandle< TransformPropertyHandle > &   
)
virtual

Definition at line 184 of file SkottieProperty.cpp.

185 {}

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