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.

24 lines
523B

  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. virtual void drawBackground(const DrawArgs& args);
  12. virtual void drawLight(const DrawArgs& args);
  13. virtual void drawHalo(const DrawArgs& args);
  14. };
  15. } // namespace app
  16. } // namespace rack