46 return !(*
this== other);
58 return !(*
this == other);
65 : fNode(
std::move(node)), fRevalidator(nullptr) {}
69 : fNode(other.fNode), fRevalidator(other.fRevalidator) {}
76 return fNode->getColor();
84 fRevalidator->revalidate();
90 : fNode(
std::move(node)), fRevalidator(nullptr) {}
94 : fNode(other.fNode), fRevalidator(other.fRevalidator) {}
101 return fNode->getOpacity() * 100;
106 fNode->setOpacity(o / 100);
109 fRevalidator->revalidate();
115 : fNode(
std::move(node)), fRevalidator(nullptr) {}
119 : fNode(other.fNode), fRevalidator(other.fRevalidator) {}
126 return fNode->getText();
134 fRevalidator->revalidate();
140 : fNode(
std::move(node)), fRevalidator(nullptr) {}
144 : fNode(other.fNode), fRevalidator(other.fRevalidator) {}
152 fNode->getAnchorPoint(),
153 fNode->getPosition(),
155 fNode->getRotation(),
163 fNode->setAnchorPoint(t.fAnchorPoint);
164 fNode->setPosition(t.fPosition);
165 fNode->setScale(t.fScale);
166 fNode->setRotation(t.fRotation);
167 fNode->setSkew(t.fSkew);
168 fNode->setSkewAxis(t.fSkewAxis);
171 fRevalidator->revalidate();
PropertyHandle(sk_sp< NodeT >)
virtual void onTransformProperty(const char node_name[], const LazyHandle< TransformPropertyHandle > &)
virtual void onLeavingNode(const char node_name[], NodeType node_type)
virtual void onOpacityProperty(const char node_name[], const LazyHandle< OpacityPropertyHandle > &)
virtual void onTextProperty(const char node_name[], const LazyHandle< TextPropertyHandle > &)
virtual void onEnterNode(const char node_name[], NodeType node_type)
std::function< std::unique_ptr< T >()> LazyHandle
virtual void onColorProperty(const char node_name[], const LazyHandle< ColorPropertyHandle > &)
PropertyHandle< TransformPropertyValue, internal::TransformAdapter2D > TransformPropertyHandle
PropertyHandle< ColorPropertyValue, sksg::Color > ColorPropertyHandle
PropertyHandle< TextPropertyValue, internal::TextAdapter > TextPropertyHandle
float OpacityPropertyValue
PropertyHandle< OpacityPropertyValue, sksg::OpacityEffect > OpacityPropertyHandle
SkColor ColorPropertyValue
sk_sp< SkTypeface > fTypeface
SkPaint::Join fStrokeJoin
Shaper::Direction fDirection
bool operator!=(const TextPropertyValue &other) const
bool operator==(const TextPropertyValue &other) const
Shaper::LinebreakPolicy fLineBreak
sk_sp< GlyphDecorator > fDecorator
TextPaintOrder fPaintOrder
Shaper::Capitalization fCapitalization
Shaper::ResizePolicy fResize
SkTextUtils::Align fHAlign