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
426B

  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. float dirtyValue = NAN;
  9. ~ParamWidget() {
  10. if (quantity)
  11. delete quantity;
  12. }
  13. void step() override;
  14. /** For legacy patch loading */
  15. void fromJson(json_t *rootJ);
  16. void onButton(event::Button &e) override;
  17. };
  18. } // namespace rack