Loading [MathJax]/extensions/tex2jax.js
VCV Rack API v2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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
Common graphical user interface widgets.
Definition Model.hpp:13
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
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:451
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:300