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
►
AudioDisplay.hpp
►
Browser.hpp
►
CableWidget.hpp
►
CircularShadow.hpp
►
common.hpp
►
Knob.hpp
►
LedDisplay.hpp
►
LightWidget.hpp
►
MenuBar.hpp
►
MidiDisplay.hpp
►
ModuleLightWidget.hpp
►
ModuleWidget.hpp
►
MultiLightWidget.hpp
►
ParamWidget.hpp
►
PortWidget.hpp
►
RackScrollWidget.hpp
►
RackWidget.hpp
►
RailWidget.hpp
►
Scene.hpp
►
SliderKnob.hpp
►
SvgButton.hpp
►
SvgKnob.hpp
►
SvgPanel.hpp
►
SvgPort.hpp
►
SvgScrew.hpp
►
SvgSlider.hpp
►
SvgSwitch.hpp
►
Switch.hpp
►
TipWindow.hpp
►
dsp
►
engine
►
plugin
►
simd
►
ui
►
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
MultiLightWidget.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <
app/common.hpp
>
3
#include <
app/LightWidget.hpp
>
4
5
6
namespace
rack
{
7
namespace
app
{
8
9
11
struct
MultiLightWidget
:
LightWidget
{
13
std::vector<NVGcolor>
baseColors
;
14
15
int
getNumColors
();
16
void
addBaseColor
(NVGcolor baseColor);
18
void
setBrightnesses
(
const
std::vector<float>& brightnesses);
19
};
11
struct
MultiLightWidget
:
LightWidget
{
…
};
20
21
22
}
// namespace app
23
}
// namespace rack
LightWidget.hpp
common.hpp
rack::app
Rack's custom UI widgets that control the Rack state and engine.
Definition
AudioDisplay.hpp:10
rack
Root namespace for the Rack API.
Definition
AudioDisplay.hpp:9
rack::app::LightWidget
Definition
LightWidget.hpp:10
rack::app::MultiLightWidget
Mixes a list of colors based on a list of brightness values.
Definition
MultiLightWidget.hpp:11
rack::app::MultiLightWidget::baseColors
std::vector< NVGcolor > baseColors
Colors of each value state.
Definition
MultiLightWidget.hpp:13
rack::app::MultiLightWidget::getNumColors
int getNumColors()
rack::app::MultiLightWidget::addBaseColor
void addBaseColor(NVGcolor baseColor)
rack::app::MultiLightWidget::setBrightnesses
void setBrightnesses(const std::vector< float > &brightnesses)
Sets the color to a linear combination of the baseColors with the given weights.
include
app
MultiLightWidget.hpp
Generated by
1.13.2