MCPcopy Create free account
hub / github.com/axmolengine/axmol / setColor

Method setColor

extensions/GUI/src/GUI/ControlExtension/ControlButton.cpp:698–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698void ControlButton::setColor(const Color3B& color)
699{
700 Control::setColor(color);
701
702 for (auto iter = _backgroundSpriteDispatchTable.begin(); iter != _backgroundSpriteDispatchTable.end(); ++iter)
703 {
704 iter->second->setColor(color);
705 }
706
707 for (auto iter = _titleLabelDispatchTable.begin(); iter != _titleLabelDispatchTable.end(); ++iter)
708 {
709 iter->second->setColor(color);
710 }
711}
712
713void ControlButton::updateDisplayedColor(const Color3B& parentColor)
714{

Callers 14

initWithSpritesMethod · 0.45
onTouchBeganMethod · 0.45
onTouchEndedMethod · 0.45
onTouchCancelledMethod · 0.45
setWrapsMethod · 0.45
onTouchMovedMethod · 0.45
onTouchEndedMethod · 0.45
updateWithHSVMethod · 0.45
potentiometerBeganMethod · 0.45

Calls 3

setColorFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected