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

123456789101112131415161718192021
  1. #pragma once
  2. #include "widgets/Widget.hpp"
  3. namespace rack {
  4. /** Widget that does not respond to events and does not pass events to children */
  5. struct TransparentWidget : virtual Widget {
  6. /** Override behavior to do nothing instead. */
  7. void onHover(const event::Hover &e) override {}
  8. void onButton(const event::Button &e) override {}
  9. void onHoverKey(const event::HoverKey &e) override {}
  10. void onHoverText(const event::HoverText &e) override {}
  11. void onHoverScroll(const event::HoverScroll &e) override {}
  12. void onDragHover(const event::DragHover &e) override {}
  13. void onPathDrop(const event::PathDrop &e) override {}
  14. };
  15. } // namespace rack