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.

25 lines
378B

  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. void onButton(event::Button &e) override;
  15. };
  16. } // namespace rack