MCPcopy Create free account
hub / github.com/Snapchat/Valdi / valueChanged

Method valueChanged

valdi/src/valdi/runtime/Context/ViewNode.cpp:1645–1653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1643
1644 return Size((*array)[0].toFloat(), (*array)[1].toFloat());
1645}
1646
1647bool ViewNode::isMeasurerPlaceholder() const {
1648 return _emittingViewNode != nullptr;
1649}
1650
1651void ViewNode::valueChanged(AttributeId attribute, const Value& value, bool shouldNotifySync) {
1652 _attributesApplier.updateAttributeWithoutUpdate(attribute, value);
1653
1654 auto* viewNodeTree = getViewNodeTree();
1655 if (viewNodeTree != nullptr && viewNodeTree->getContext() != nullptr) {
1656 viewNodeTree->getContext()->onAttributeChange(

Callers 2

updateAttributeStateMethod · 0.80
onProgressMethod · 0.80

Calls 5

getViewNodeTreeFunction · 0.85
getNameForIdMethod · 0.80
getContextMethod · 0.45
onAttributeChangeMethod · 0.45

Tested by

no test coverage detected