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.

22 lines
500B

  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 widget::DrawContext &ctx) override;
  11. virtual void drawLight(const widget::DrawContext &ctx);
  12. virtual void drawHalo(const widget::DrawContext &ctx);
  13. };
  14. } // namespace app
  15. } // namespace rack