#pragma once #include #include #include #include #include namespace rack { namespace app { struct Scene : widget::OpaqueWidget { struct Internal; Internal* internal; // Convenience variables for accessing important widgets RackScrollWidget* rackScroll; RackWidget* rack; MenuBar* menuBar; widget::Widget* moduleBrowser; widget::Widget* frameRateWidget; double lastAutosaveTime = 0.0; /** The last mouse position in the Scene */ math::Vec mousePos; Scene(); ~Scene(); void step() override; void draw(const DrawArgs& args) override; void onHover(const event::Hover& e) override; void onDragHover(const event::DragHover& e) override; void onHoverKey(const event::HoverKey& e) override; void onPathDrop(const event::PathDrop& e) override; void runCheckVersion(); }; } // namespace app } // namespace rack