MCPcopy Create free account
hub / github.com/christophhart/HISE / getOutlineColour

Method getOutlineColour

hi_scripting/scripting/scriptnode/ui/NodeComponent.cpp:921–940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

919}
920
921juce::Colour NodeComponent::getOutlineColour() const
922{
923 if (node->getRootNetwork()->getRootNode() == node.get())
924 return dynamic_cast<const Processor*>(node->getScriptProcessor())->getColour();
925
926 auto& exceptionHandler = node->getRootNetwork()->getExceptionHandler();
927
928 if (!exceptionHandler.isOk())
929 {
930 auto error = exceptionHandler.getErrorMessage(node.get());
931
932 if (error.isNotEmpty())
933 return JUCE_LIVE_CONSTANT_OFF(Colour(0xFFFF0000));
934 }
935
936 if (!header.colour.isTransparent())
937 return header.colour;
938
939 return header.isDragging ? Colour(0x88444444) : Colour(0xFF555555);
940}
941
942juce::Colour NodeComponent::getHeaderColour() const
943{

Callers 1

paintMethod · 0.45

Calls 10

ColourFunction · 0.85
getRootNodeMethod · 0.80
getRootNetworkMethod · 0.80
getMethod · 0.45
getColourMethod · 0.45
getScriptProcessorMethod · 0.45
isOkMethod · 0.45
getErrorMessageMethod · 0.45
isNotEmptyMethod · 0.45
isTransparentMethod · 0.45

Tested by

no test coverage detected