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.

ParamHandle.hpp 444B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <common.hpp>
  3. #include <engine/Module.hpp>
  4. #include <engine/Param.hpp>
  5. #include <color.hpp>
  6. namespace rack {
  7. namespace engine {
  8. /** A weak handle to a Param. Managed by Engine */
  9. struct ParamHandle {
  10. /** Do not set these directly.
  11. Use Engine ParamHandle methods.
  12. */
  13. int64_t moduleId = -1;
  14. int paramId = 0;
  15. Module* module = NULL;
  16. std::string text;
  17. NVGcolor color;
  18. };
  19. } // namespace engine
  20. } // namespace rack