MCPcopy Create free account
hub / github.com/Atarity/Lightpack / GetLeds

Method GetLeds

Software/src/LightpackPluginInterface.cpp:539–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537}
538
539QList<QRect> LightpackPluginInterface::GetLeds()
540{
541 QList<QRect> leds;
542 for (int i = 0; i < Settings::getNumberOfLeds(Settings::getConnectedDevice()); i++)
543 {
544 QPoint top = Settings::getLedPosition(i);
545 QSize size = Settings::getLedSize(i);
546 leds << QRect(top.x(),top.y(),size.width(),size.height());
547 }
548 return leds;
549}
550
551QList<QRgb> LightpackPluginInterface::GetColors()
552{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected