VCV Rack API v2
Loading...
Searching...
No Matches
Scene.hpp
Go to the documentation of this file.
1#pragma once
2#include <app/common.hpp>
5#include <app/RackWidget.hpp>
6
7
8namespace rack {
9namespace app {
10
11
13 struct Internal;
14 Internal* internal;
15
16 // Convenience variables for accessing important widgets
21
26
30 void step() override;
31 void draw(const DrawArgs& args) override;
32 void onHover(const HoverEvent& e) override;
33 void onDragHover(const DragHoverEvent& e) override;
34 void onHoverKey(const HoverKeyEvent& e) override;
35 void onPathDrop(const PathDropEvent& e) override;
36};
37
38
39} // namespace app
40} // namespace rack
#define PRIVATE
Attribute for private functions not intended to be called by plugins.
Definition common.hpp:30
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition RackScrollWidget.hpp:12
Container for ModuleWidget and CableWidget.
Definition RackWidget.hpp:21
Definition Scene.hpp:12
widget::Widget * browser
Definition Scene.hpp:20
math::Vec mousePos
The last mouse position in the Scene.
Definition Scene.hpp:25
PRIVATE ~Scene()
math::Vec getMousePos()
Internal * internal
Definition Scene.hpp:14
void onHover(const HoverEvent &e) override
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
void step() override
Advances the module by one frame.
void onPathDrop(const PathDropEvent &e) override
RackScrollWidget * rackScroll
Definition Scene.hpp:17
widget::Widget * menuBar
Definition Scene.hpp:19
void onHoverKey(const HoverKeyEvent &e) override
void onDragHover(const DragHoverEvent &e) override
RackWidget * rack
Definition Scene.hpp:18
2-dimensional vector of floats, representing a point on the plane for graphics.
Definition math.hpp:189
A Widget that stops propagation of all recursive PositionEvents (such as ButtonEvent) but gives a cha...
Definition OpaqueWidget.hpp:12
Occurs every frame when the mouse is hovering over a Widget while another Widget (possibly the same o...
Definition Widget.hpp:391
Definition Widget.hpp:141
Occurs every frame when the mouse is hovering over a Widget.
Definition Widget.hpp:225
Occurs when a key is pressed, released, or repeated while the mouse is hovering a Widget.
Definition Widget.hpp:294
Occurs when a selection of files from the operating system is dropped onto a Widget.
Definition Widget.hpp:432
A node in the 2D scene graph.
Definition Widget.hpp:21