VCV Rack API v2
Loading...
Searching...
No Matches
Menu.hpp
Go to the documentation of this file.
1#pragma once
3#include <ui/common.hpp>
4#include <ui/MenuEntry.hpp>
5
6
7namespace rack {
8namespace ui {
9
10
13 Menu* childMenu = NULL;
16 BNDcornerFlags cornerFlags = BND_CORNER_NONE;
17
20 void setChildMenu(Menu* menu);
21 void step() override;
22 void draw(const DrawArgs& args) override;
23 void onHoverScroll(const HoverScrollEvent& e) override;
24};
25
26
27} // namespace ui
28} // namespace rack
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition MenuEntry.hpp:10
Definition Menu.hpp:11
BNDcornerFlags cornerFlags
Definition Menu.hpp:16
Menu * parentMenu
Definition Menu.hpp:12
void onHoverScroll(const HoverScrollEvent &e) override
MenuEntry * activeEntry
The entry which created the child menu.
Definition Menu.hpp:15
void setChildMenu(Menu *menu)
Menu * childMenu
Definition Menu.hpp:13
void step() override
Advances the module by one frame.
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
A Widget that stops propagation of all recursive PositionEvents (such as ButtonEvent) but gives a cha...
Definition OpaqueWidget.hpp:12
Definition Widget.hpp:141
Occurs when the mouse scroll wheel is moved while the mouse is hovering a Widget.
Definition Widget.hpp:315