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.

21 lines
520B

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