8 #ifndef SkottieProperty_DEFINED
9 #define SkottieProperty_DEFINED
19 #include "include/utils/SkTextUtils.h"
74 SkTextUtils::Align
fHAlign = SkTextUtils::kLeft_Align;
110 namespace internal {
class SceneGraphRevalidator; }
116 template <
typename ValueT,
typename NodeT>
121 : fNode(std::move(node))
122 , fRevalidator(std::move(revalidator)) {}
138 class TransformAdapter2D;
147 internal::TextAdapter>;
149 internal::TransformAdapter2D>;
161 enum class NodeType {COMPOSITION, LAYER, EFFECT, OTHER};
163 template <
typename T>
Types, consts, functions, and macros for colors.
uint32_t SkColor
32-bit ARGB color value, unpremultiplied.
Definition: SkColor.h:37
constexpr SkColor SK_ColorTRANSPARENT
Represents fully transparent SkColor.
Definition: SkColor.h:99
float SkScalar
Definition: SkScalar.h:14
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
Join
Definition: SkPaint.h:358
Definition: SkRefCnt.h:119
Light weight class for managing strings.
Definition: SkString.h:118
Definition: SkottieProperty.h:46
virtual void onDecorate(SkCanvas *, const TextInfo &)=0
Property handles are adapters between user-facing AE model/values and the internal scene-graph repres...
Definition: SkottieProperty.h:117
PropertyHandle(sk_sp< NodeT > node, sk_sp< internal::SceneGraphRevalidator > revalidator)
Definition: SkottieProperty.h:120
PropertyHandle(const PropertyHandle &)
PropertyHandle(sk_sp< NodeT >)
A PropertyObserver can be used to track and manipulate certain properties of "interesting" Lottie nod...
Definition: SkottieProperty.h:159
virtual void onTransformProperty(const char node_name[], const LazyHandle< TransformPropertyHandle > &)
NodeType
Definition: SkottieProperty.h:161
virtual void onEnterNode(const char node_name[], NodeType node_type)
virtual void onTextProperty(const char node_name[], const LazyHandle< TextPropertyHandle > &)
virtual void onOpacityProperty(const char node_name[], const LazyHandle< OpacityPropertyHandle > &)
std::function< std::unique_ptr< T >()> LazyHandle
Definition: SkottieProperty.h:164
virtual void onLeavingNode(const char node_name[], NodeType node_type)
virtual void onColorProperty(const char node_name[], const LazyHandle< ColorPropertyHandle > &)
Direction
Definition: TextShaper.h:128
ResizePolicy
Definition: TextShaper.h:109
VAlign
Definition: TextShaper.h:82
Capitalization
Definition: TextShaper.h:130
LinebreakPolicy
Definition: TextShaper.h:120
Concrete Paint node, wrapping an SkColor.
Definition: SkSGPaint.h:64
Concrete Effect node, applying opacity to its descendants.
Definition: SkSGOpacityEffect.h:19
SK_API sk_sp< SkShader > Color(SkColor)
Definition: ExternalLayer.h:16
float OpacityPropertyValue
Definition: SkottieProperty.h:37
TextPaintOrder
Definition: SkottieProperty.h:39
SkColor ColorPropertyValue
Definition: SkottieProperty.h:36
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582
static constexpr SkRect MakeEmpty()
Returns constructed SkRect set to (0, 0, 0, 0).
Definition: SkRect.h:595
Definition: SkottieProperty.h:48
float fAdvance
Definition: SkottieProperty.h:52
size_t fCluster
Definition: SkottieProperty.h:51
SkRect fBounds
Definition: SkottieProperty.h:49
SkMatrix fMatrix
Definition: SkottieProperty.h:50
Definition: SkottieProperty.h:55
float fScale
Definition: SkottieProperty.h:57
SkSpan< const GlyphInfo > fGlyphs
Definition: SkottieProperty.h:56
Definition: SkottieProperty.h:63
float fStrokeWidth
Definition: SkottieProperty.h:69
float fMaxTextSize
Definition: SkottieProperty.h:68
sk_sp< SkTypeface > fTypeface
Definition: SkottieProperty.h:64
SkPaint::Join fStrokeJoin
Definition: SkottieProperty.h:84
Shaper::Direction fDirection
Definition: SkottieProperty.h:78
SkColor fFillColor
Definition: SkottieProperty.h:81
float fLineHeight
Definition: SkottieProperty.h:70
bool fHasFill
Definition: SkottieProperty.h:85
bool operator!=(const TextPropertyValue &other) const
float fTextSize
Definition: SkottieProperty.h:66
float fMinTextSize
Definition: SkottieProperty.h:67
size_t fMaxLines
Definition: SkottieProperty.h:73
bool operator==(const TextPropertyValue &other) const
Shaper::LinebreakPolicy fLineBreak
Definition: SkottieProperty.h:77
SkRect fBox
Definition: SkottieProperty.h:80
SkString fLocale
Definition: SkottieProperty.h:92
sk_sp< GlyphDecorator > fDecorator
Definition: SkottieProperty.h:87
TextPaintOrder fPaintOrder
Definition: SkottieProperty.h:83
float fLineShift
Definition: SkottieProperty.h:71
Shaper::Capitalization fCapitalization
Definition: SkottieProperty.h:79
float fAscent
Definition: SkottieProperty.h:72
Shaper::VAlign fVAlign
Definition: SkottieProperty.h:75
SkColor fStrokeColor
Definition: SkottieProperty.h:82
bool fHasStroke
Definition: SkottieProperty.h:86
SkString fText
Definition: SkottieProperty.h:65
Shaper::ResizePolicy fResize
Definition: SkottieProperty.h:76
SkTextUtils::Align fHAlign
Definition: SkottieProperty.h:74