MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / updateRealOpacity

Method updateRealOpacity

Source/Node/Node.cpp:1263–1276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261}
1262
1263void Node::updateRealOpacity() {
1264 if (_parent && _parent->isPassOpacity()) {
1265 float parentOpacity = _parent->_realColor.getOpacity();
1266 _realColor.setOpacity(_color.getOpacity() * parentOpacity);
1267 } else {
1268 _realColor.setOpacity(_color.getOpacity());
1269 }
1270 if (_flags.isOn(Node::PassOpacity)) {
1271 ARRAY_START(Node, child, _children) {
1272 child->updateRealOpacity();
1273 }
1274 ARRAY_END
1275 }
1276}
1277
1278int Node::getActionCount() const noexcept {
1279 int count = 0;

Callers 3

addChildMethod · 0.45
ARRAY_STARTFunction · 0.45
grabMethod · 0.45

Calls 4

isPassOpacityMethod · 0.80
isOnMethod · 0.80
getOpacityMethod · 0.45
setOpacityMethod · 0.45

Tested by

no test coverage detected