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

  1. #pragma once
  2. #include "app/common.hpp"
  3. #include "widgets/OpaqueWidget.hpp"
  4. #include "ui/Tooltip.hpp"
  5. #include "ui/Quantity.hpp"
  6. namespace rack {
  7. struct ParamWidget : OpaqueWidget {
  8. Quantity *quantity = NULL;
  9. float dirtyValue = NAN;
  10. Tooltip *tooltip = NULL;
  11. ~ParamWidget();
  12. void step() override;
  13. /** For legacy patch loading */
  14. void fromJson(json_t *rootJ);
  15. void onButton(const event::Button &e) override;
  16. void onEnter(const event::Enter &e) override;
  17. void onLeave(const event::Leave &e) override;
  18. };
  19. } // namespace rack