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.

ModuleLightWidget.hpp 411B

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