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.

27 lines
428B

  1. #pragma once
  2. #include "app/common.hpp"
  3. #include "widgets/OpaqueWidget.hpp"
  4. #include "ui/Quantity.hpp"
  5. namespace rack {
  6. struct ParamWidget : OpaqueWidget {
  7. Quantity *quantity = NULL;
  8. ~ParamWidget() {
  9. if (quantity)
  10. delete quantity;
  11. }
  12. /** For legacy patch loading */
  13. void fromJson(json_t *rootJ);
  14. virtual void reset();
  15. virtual void randomize();
  16. void onButton(event::Button &e) override;
  17. };
  18. } // namespace rack