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.

24 lines
682B

  1. #pragma once
  2. #include "widget/Widget.hpp"
  3. namespace rack {
  4. namespace widget {
  5. /** 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 event::Hover &e) override {}
  9. void onButton(const event::Button &e) override {}
  10. void onHoverKey(const event::HoverKey &e) override {}
  11. void onHoverText(const event::HoverText &e) override {}
  12. void onHoverScroll(const event::HoverScroll &e) override {}
  13. void onDragHover(const event::DragHover &e) override {}
  14. void onPathDrop(const event::PathDrop &e) override {}
  15. };
  16. } // namespace widget
  17. } // namespace rack