VCV Rack API
v2
Loading...
Searching...
No Matches
Menu.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
widget/OpaqueWidget.hpp
>
3
#include <
ui/common.hpp
>
4
#include <
ui/MenuEntry.hpp
>
5
6
7
namespace
rack
{
8
namespace
ui {
9
10
11
struct
Menu
:
widget::OpaqueWidget
{
12
Menu
*
parentMenu
= NULL;
13
Menu
*
childMenu
= NULL;
15
MenuEntry
*
activeEntry
= NULL;
16
BNDcornerFlags
cornerFlags
= BND_CORNER_NONE;
17
18
Menu
();
19
~Menu
();
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
MenuEntry.hpp
OpaqueWidget.hpp
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::ui::MenuEntry
Definition
MenuEntry.hpp:10
rack::ui::Menu
Definition
Menu.hpp:11
rack::ui::Menu::~Menu
~Menu()
rack::ui::Menu::cornerFlags
BNDcornerFlags cornerFlags
Definition
Menu.hpp:16
rack::ui::Menu::parentMenu
Menu * parentMenu
Definition
Menu.hpp:12
rack::ui::Menu::Menu
Menu()
rack::ui::Menu::onHoverScroll
void onHoverScroll(const HoverScrollEvent &e) override
rack::ui::Menu::activeEntry
MenuEntry * activeEntry
The entry which created the child menu.
Definition
Menu.hpp:15
rack::ui::Menu::setChildMenu
void setChildMenu(Menu *menu)
rack::ui::Menu::childMenu
Menu * childMenu
Definition
Menu.hpp:13
rack::ui::Menu::step
void step() override
Advances the module by one frame.
rack::ui::Menu::draw
void draw(const DrawArgs &args) override
Draws the widget to the NanoVG context.
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::DrawArgs
Definition
Widget.hpp:141
rack::widget::Widget::HoverScrollEvent
Occurs when the mouse scroll wheel is moved while the mouse is hovering a Widget.
Definition
Widget.hpp:315
common.hpp
include
ui
Menu.hpp
Generated by
1.12.0