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.

23 lines
454B

  1. #pragma once
  2. #include "app/common.hpp"
  3. #include "app/MultiLightWidget.hpp"
  4. #include "engine/Module.hpp"
  5. namespace rack {
  6. namespace app {
  7. /** A MultiLightWidget that points to a module's Light or a range of lights
  8. Will access firstLightId, firstLightId + 1, etc. for each added color
  9. */
  10. struct ModuleLightWidget : MultiLightWidget {
  11. engine::Module *module = NULL;
  12. int firstLightId;
  13. void step() override;
  14. };
  15. } // namespace app
  16. } // namespace rack