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.

43 lines
940B

  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <widget/OpaqueWidget.hpp>
  4. #include <app/RackScrollWidget.hpp>
  5. #include <app/RackWidget.hpp>
  6. #include <app/MenuBar.hpp>
  7. namespace rack {
  8. namespace app {
  9. struct Scene : widget::OpaqueWidget {
  10. struct Internal;
  11. Internal* internal;
  12. // Convenience variables for accessing important widgets
  13. RackScrollWidget* rackScroll;
  14. RackWidget* rack;
  15. MenuBar* menuBar;
  16. widget::Widget* moduleBrowser;
  17. widget::Widget* frameRateWidget;
  18. double lastAutosaveTime = 0.0;
  19. /** The last mouse position in the Scene */
  20. math::Vec mousePos;
  21. Scene();
  22. ~Scene();
  23. void step() override;
  24. void draw(const DrawArgs& args) override;
  25. void onHover(const event::Hover& e) override;
  26. void onDragHover(const event::DragHover& e) override;
  27. void onHoverKey(const event::HoverKey& e) override;
  28. void onPathDrop(const event::PathDrop& e) override;
  29. void runCheckVersion();
  30. };
  31. } // namespace app
  32. } // namespace rack