MCPcopy Create free account
hub / github.com/ccMSC/ckb / lightIndicator

Method lightIndicator

src/ckb/kbperf.cpp:425–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423}
424
425void KbPerf::lightIndicator(const char* name, QRgb rgba){
426 int a = round(qAlpha(rgba) * _iOpacity);
427 if(a <= 0)
428 return;
429 light()->setIndicator(name, qRgba(qRed(rgba), qGreen(rgba), qBlue(rgba), a));
430}
431
432void KbPerf::applyIndicators(int modeIndex, const bool indicatorState[]){
433 light()->resetIndicators();

Callers

nothing calls this directly

Calls 1

setIndicatorMethod · 0.45

Tested by

no test coverage detected