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

  1. #include "rack.hpp"
  2. using namespace rack;
  3. namespace rack_plugin_rcm {
  4. struct ModuleDragType;
  5. struct BaseWidget : ModuleWidget {
  6. Rect colourHotZone;
  7. float backgroundHue = 1.f;
  8. float backgroundSaturation = 1.f;
  9. float backgroundLuminosity = 0.25f;
  10. ModuleDragType *currentDragType = NULL;
  11. BaseWidget(Module *module);
  12. void onDragStart(EventDragStart& e) override;
  13. void onDragMove(EventDragMove& e) override;
  14. void onDragEnd(EventDragEnd& e) override;
  15. void draw(NVGcontext* ctx) override;
  16. json_t *toJson() override;
  17. void fromJson(json_t *rootJ) override;
  18. };
  19. } // namespace rack_plugin_rcm