Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skottie::internal::AnimationBuilder::AutoPropertyTracker Class Reference

#include <SkottiePriv.h>

Public Member Functions

 AutoPropertyTracker (const AnimationBuilder *builder, const skjson::ObjectValue &obj, const PropertyObserver::NodeType node_type)
 
 ~AutoPropertyTracker ()
 

Detailed Description

Definition at line 163 of file SkottiePriv.h.

Constructor & Destructor Documentation

◆ AutoPropertyTracker()

skottie::internal::AnimationBuilder::AutoPropertyTracker::AutoPropertyTracker ( const AnimationBuilder builder,
const skjson::ObjectValue obj,
const PropertyObserver::NodeType  node_type 
)
inline

Definition at line 165 of file SkottiePriv.h.

166 : fBuilder(builder)
167 , fPrevContext(builder->fPropertyObserverContext), fNodeType(node_type) {
168 if (fBuilder->fPropertyObserver) {
169 auto observer = builder->fPropertyObserver.get();
170 this->updateContext(observer, obj);
171 observer->onEnterNode(fBuilder->fPropertyObserverContext, fNodeType);
172 }
173 }

◆ ~AutoPropertyTracker()

skottie::internal::AnimationBuilder::AutoPropertyTracker::~AutoPropertyTracker ( )
inline

Definition at line 175 of file SkottiePriv.h.

175 {
176 if (fBuilder->fPropertyObserver) {
177 fBuilder->fPropertyObserver->onLeavingNode(fBuilder->fPropertyObserverContext, fNodeType);
178 fBuilder->fPropertyObserverContext = fPrevContext;
179 }
180 }

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