You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LightWidget.hpp 582B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <widget/TransparentWidget.hpp>
  4. namespace rack {
  5. namespace app {
  6. struct LightWidget : widget::TransparentWidget {
  7. NVGcolor bgColor = nvgRGBA(0, 0, 0, 0);
  8. NVGcolor color = nvgRGBA(0, 0, 0, 0);
  9. NVGcolor borderColor = nvgRGBA(0, 0, 0, 0);
  10. void draw(const DrawArgs& args) override;
  11. void drawLayer(const DrawArgs& args, int layer) override;
  12. virtual void drawBackground(const DrawArgs& args);
  13. virtual void drawLight(const DrawArgs& args);
  14. virtual void drawHalo(const DrawArgs& args);
  15. };
  16. } // namespace app
  17. } // namespace rack