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.

29 lines
596B

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