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.

Scene.hpp 898B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <widget/OpaqueWidget.hpp>
  4. #include <app/RackScrollWidget.hpp>
  5. #include <app/RackWidget.hpp>
  6. namespace rack {
  7. namespace app {
  8. struct Scene : widget::OpaqueWidget {
  9. struct Internal;
  10. Internal* internal;
  11. // Convenience variables for accessing important widgets
  12. RackScrollWidget* rackScroll;
  13. RackWidget* rack;
  14. widget::Widget* menuBar;
  15. widget::Widget* browser;
  16. /** The last mouse position in the Scene.
  17. DEPRECATED. Use getMousePos() instead.
  18. */
  19. math::Vec mousePos;
  20. PRIVATE Scene();
  21. PRIVATE ~Scene();
  22. math::Vec getMousePos();
  23. void step() override;
  24. void draw(const DrawArgs& args) override;
  25. void onHover(const HoverEvent& e) override;
  26. void onDragHover(const DragHoverEvent& e) override;
  27. void onHoverKey(const HoverKeyEvent& e) override;
  28. void onPathDrop(const PathDropEvent& e) override;
  29. };
  30. } // namespace app
  31. } // namespace rack