Flutter Engine
The Flutter Engine
|
#include <SkottieUtils.h>
Classes | |
struct | MarkerInfo |
class | MarkerInterceptor |
class | PropertyInterceptor |
Public Types | |
enum class | Mode { kCollapseProperties , kNamespacedProperties } |
using | PropKey = std::string |
CustomPropertyManager implements a property management scheme where color/opacity/transform attributes are grouped and manipulated by name (one-to-many mapping).
Attach to an Animation::Builder using the utility methods below to intercept properties and markers at build time.
Definition at line 46 of file SkottieUtils.h.
using skottie_utils::CustomPropertyManager::PropKey = std::string |
Definition at line 58 of file SkottieUtils.h.
|
strong |
Enumerator | |
---|---|
kCollapseProperties | |
kNamespacedProperties |
Definition at line 48 of file SkottieUtils.h.
|
explicit |
Definition at line 97 of file SkottieUtils.cpp.
|
default |
skottie::ColorPropertyValue skottie_utils::CustomPropertyManager::getColor | ( | const PropKey & | key | ) | const |
Definition at line 178 of file SkottieUtils.cpp.
std::unique_ptr< skottie::ColorPropertyHandle > skottie_utils::CustomPropertyManager::getColorHandle | ( | const PropKey & | key, |
size_t | index | ||
) | const |
Definition at line 183 of file SkottieUtils.cpp.
std::vector< CustomPropertyManager::PropKey > skottie_utils::CustomPropertyManager::getColorProps | ( | ) | const |
Definition at line 174 of file SkottieUtils.cpp.
sk_sp< skottie::MarkerObserver > skottie_utils::CustomPropertyManager::getMarkerObserver | ( | ) | const |
Definition at line 119 of file SkottieUtils.cpp.
skottie::OpacityPropertyValue skottie_utils::CustomPropertyManager::getOpacity | ( | const PropKey & | key | ) | const |
Definition at line 196 of file SkottieUtils.cpp.
std::unique_ptr< skottie::OpacityPropertyHandle > skottie_utils::CustomPropertyManager::getOpacityHandle | ( | const PropKey & | key, |
size_t | index | ||
) | const |
Definition at line 201 of file SkottieUtils.cpp.
std::vector< CustomPropertyManager::PropKey > skottie_utils::CustomPropertyManager::getOpacityProps | ( | ) | const |
Definition at line 192 of file SkottieUtils.cpp.
sk_sp< skottie::PropertyObserver > skottie_utils::CustomPropertyManager::getPropertyObserver | ( | ) | const |
Definition at line 115 of file SkottieUtils.cpp.
skottie::TextPropertyValue skottie_utils::CustomPropertyManager::getText | ( | const PropKey & | key | ) | const |
Definition at line 233 of file SkottieUtils.cpp.
std::unique_ptr< skottie::TextPropertyHandle > skottie_utils::CustomPropertyManager::getTextHandle | ( | const PropKey & | key, |
size_t | index | ||
) | const |
Definition at line 238 of file SkottieUtils.cpp.
std::vector< CustomPropertyManager::PropKey > skottie_utils::CustomPropertyManager::getTextProps | ( | ) | const |
Definition at line 229 of file SkottieUtils.cpp.
skottie::TransformPropertyValue skottie_utils::CustomPropertyManager::getTransform | ( | const PropKey & | key | ) | const |
Definition at line 214 of file SkottieUtils.cpp.
std::unique_ptr< skottie::TransformPropertyHandle > skottie_utils::CustomPropertyManager::getTransformHandle | ( | const PropKey & | key, |
size_t | index | ||
) | const |
Definition at line 219 of file SkottieUtils.cpp.
std::vector< CustomPropertyManager::PropKey > skottie_utils::CustomPropertyManager::getTransformProps | ( | ) | const |
Definition at line 210 of file SkottieUtils.cpp.
|
inline |
Definition at line 85 of file SkottieUtils.h.
bool skottie_utils::CustomPropertyManager::setColor | ( | const PropKey & | key, |
const skottie::ColorPropertyValue & | c | ||
) |
Definition at line 187 of file SkottieUtils.cpp.
bool skottie_utils::CustomPropertyManager::setOpacity | ( | const PropKey & | key, |
const skottie::OpacityPropertyValue & | o | ||
) |
Definition at line 205 of file SkottieUtils.cpp.
bool skottie_utils::CustomPropertyManager::setText | ( | const PropKey & | key, |
const skottie::TextPropertyValue & | o | ||
) |
Definition at line 242 of file SkottieUtils.cpp.
bool skottie_utils::CustomPropertyManager::setTransform | ( | const PropKey & | key, |
const skottie::TransformPropertyValue & | t | ||
) |
Definition at line 223 of file SkottieUtils.cpp.