Loading [MathJax]/extensions/tex2jax.js
VCV Rack API
v2
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
y
Typedefs
a
b
c
d
e
f
g
h
i
k
l
p
r
s
t
v
w
y
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
b
c
h
i
l
m
n
o
p
r
t
u
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
l
n
o
p
r
s
t
v
w
Functions
Macros
_
a
b
c
d
e
f
g
i
l
n
p
r
s
t
v
w
▼
VCV Rack API
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
include
►
app
►
dsp
►
engine
►
plugin
►
simd
▼
ui
►
Button.hpp
►
ChoiceButton.hpp
►
common.hpp
►
Label.hpp
►
List.hpp
►
Menu.hpp
►
MenuEntry.hpp
►
MenuItem.hpp
►
MenuLabel.hpp
►
MenuOverlay.hpp
►
MenuSeparator.hpp
►
OptionButton.hpp
►
ProgressBar.hpp
►
RadioButton.hpp
►
Scrollbar.hpp
►
ScrollWidget.hpp
►
SequentialLayout.hpp
►
Slider.hpp
►
TextField.hpp
►
Tooltip.hpp
►
TooltipOverlay.hpp
►
widget
►
window
arch.hpp
►
asset.hpp
►
audio.hpp
►
color.hpp
►
common.hpp
►
componentlibrary.hpp
►
context.hpp
►
gamepad.hpp
►
helpers.hpp
►
history.hpp
►
keyboard.hpp
►
library.hpp
►
logger.hpp
►
math.hpp
►
midi.hpp
►
midiloopback.hpp
►
mutex.hpp
►
network.hpp
►
patch.hpp
►
plugin.hpp
►
Quantity.hpp
►
rack.hpp
►
random.hpp
►
rtaudio.hpp
►
rtmidi.hpp
►
settings.hpp
►
string.hpp
►
system.hpp
►
tag.hpp
►
weakptr.hpp
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
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
};
11
struct
Menu
:
widget::OpaqueWidget
{
…
};
25
26
27
}
// namespace ui
28
}
// namespace rack
MenuEntry.hpp
OpaqueWidget.hpp
NULL
rack::ui
Common graphical user interface widgets.
Definition
Model.hpp:13
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::ui::MenuEntry
Definition
MenuEntry.hpp:10
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:321
common.hpp
include
ui
Menu.hpp
Generated by
1.13.2