MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getDroppableHoveringColor

Method getDroppableHoveringColor

src/eepp/ui/uinode.cpp:1032–1048  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1030}
1031
1032Color UINode::getDroppableHoveringColor() {
1033 const PropertyDefinition* def =
1034 StyleSheetSpecification::instance()->getProperty( "droppable-hovering-color" );
1035 Color color = Color::fromString( def->getDefaultValue() );
1036 if ( isWidget() ) {
1037 UIWidget* widget = asType<UIWidget>();
1038 std::string colorString = widget->getPropertyString( def );
1039 if ( !colorString.empty() ) {
1040 color = Color::fromString( colorString );
1041 } else {
1042 colorString = mUISceneNode->getRoot()->getPropertyString( def );
1043 if ( !colorString.empty() )
1044 color = Color::fromString( colorString );
1045 }
1046 }
1047 return color;
1048}
1049
1050void UINode::nodeDraw() {
1051 if ( mVisible ) {

Callers

nothing calls this directly

Calls 5

fromStringFunction · 0.85
getPropertyMethod · 0.45
getPropertyStringMethod · 0.45
emptyMethod · 0.45
getRootMethod · 0.45

Tested by

no test coverage detected