VCV Rack API v2
Loading...
Searching...
No Matches
MenuOverlay.hpp
Go to the documentation of this file.
1#pragma once
3#include <ui/common.hpp>
4
5
6namespace rack {
7namespace ui {
8
9
12 NVGcolor bgColor;
13
15 void draw(const DrawArgs& args) override;
16 void step() override;
17 void onButton(const ButtonEvent& e) override;
18 void onHoverKey(const HoverKeyEvent& e) override;
19 void onAction(const ActionEvent& e) override;
20};
21
22
23} // namespace ui
24} // namespace rack
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Deletes itself from parent when clicked.
Definition MenuOverlay.hpp:11
void onButton(const ButtonEvent &e) override
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
NVGcolor bgColor
Definition MenuOverlay.hpp:12
void onAction(const ActionEvent &e) override
void step() override
Advances the module by one frame.
void onHoverKey(const HoverKeyEvent &e) override
A Widget that stops propagation of all recursive PositionEvents (such as ButtonEvent) but gives a cha...
Definition OpaqueWidget.hpp:12
Occurs after a certain action is triggered on a Widget.
Definition Widget.hpp:445
Occurs each mouse button press or release.
Definition Widget.hpp:237
Definition Widget.hpp:141
Occurs when a key is pressed, released, or repeated while the mouse is hovering a Widget.
Definition Widget.hpp:294