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.

TransparentWidget.hpp 670B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <widget/Widget.hpp>
  3. namespace rack {
  4. namespace widget {
  5. /** A Widget that does not respond to events and does not pass events to children */
  6. struct TransparentWidget : Widget {
  7. /** Override behavior to do nothing instead. */
  8. void onHover(const HoverEvent& e) override {}
  9. void onButton(const ButtonEvent& e) override {}
  10. void onHoverKey(const HoverKeyEvent& e) override {}
  11. void onHoverText(const HoverTextEvent& e) override {}
  12. void onHoverScroll(const HoverScrollEvent& e) override {}
  13. void onDragHover(const DragHoverEvent& e) override {}
  14. void onPathDrop(const PathDropEvent& e) override {}
  15. };
  16. } // namespace widget
  17. } // namespace rack