MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetColorAttribute

Function GetColorAttribute

cpp/test/src/gtest.cc:2888–2895  ·  view source on GitHub ↗

Returns the character attribute for the given color.

Source from the content-addressed store, hash-verified

2886
2887// Returns the character attribute for the given color.
2888WORD GetColorAttribute(GTestColor color) {
2889 switch (color) {
2890 case COLOR_RED: return FOREGROUND_RED;
2891 case COLOR_GREEN: return FOREGROUND_GREEN;
2892 case COLOR_YELLOW: return FOREGROUND_RED | FOREGROUND_GREEN;
2893 default: return 0;
2894 }
2895}
2896
2897#else
2898

Callers 1

ColoredPrintfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected