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